Changing location of positive continuous distributions

Hi everyone, quick question.

In scipy.stats, the distributions have the option to change the location of distributions that are only defined on a positive scale (like lognormal). I use this to create a distribution that starts at negative values but is highly skewed to the right.

How would one approach this in Numpyro? Should I simply add some negative value, e.g. -0.1, to all the parameters? Or is there a neater way to do this within the distribution functions?

I think you can use TransformedDistribution(your_prior, AffineTransform(-0.1).

1 Like

Thanks! That worked indeed!
For future reference, I had to make it: AffineTransform(loc=-0.1, scale=1) to make the only transformation be a shift of 0.1 to the left.

1 Like