Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exponential distribution parameter #822

Open
nathoze opened this issue Oct 16, 2024 · 2 comments
Open

Exponential distribution parameter #822

nathoze opened this issue Oct 16, 2024 · 2 comments

Comments

@nathoze
Copy link

nathoze commented Oct 16, 2024

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

@bob-carpenter
Copy link
Contributor

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.

@nathoze
Copy link
Author

nathoze commented Oct 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants