docs icon indicating copy to clipboard operation
docs copied to clipboard

Exponential distribution parameter

Open nathoze opened this issue 1 year ago • 2 comments

In the definition of the exponential distribution with the scale parameter beta, the probability density function should be \begin{equation*} \text{Exponential}(y|\beta) = \frac{1}{\beta} , \exp ( -\frac{y}{\beta} ) . \end{equation*}

https://mc-stan.org/docs/functions-reference/positive_continuous_distributions.html#exponential-distribution

Current Version:

v2.18.0

nathoze avatar Oct 16 '24 14:10 nathoze

Like on the Wikipedia page, Stan's parameterized using the inverse scale parameter. See the same link.

Is \beta typically used for scale and \lambda for inverse scale? If so, we should change the name of the parameter to avoid confusion.

bob-carpenter avatar Oct 16 '24 15:10 bob-carpenter

My bad, I thought that the parameterization was with the scale, and not the inverse scale, and that there was a mistake in the pdf definition. Yes, the parameter should be \lambda everywhere. Maybe it's worth writing that it is also the rate parameter to avoid confusion.

nathoze avatar Oct 16 '24 16:10 nathoze