Skip to content

Commit c54dcee

Browse files
WarrenWeckessertwiecki
authored andcommitted
DOC: Fixed Gumbel pdf formula.
The description said the formula was the pdf, but the actual formula was for the log of the pdf. To be consistent with the other distributions, I changed the formula to be the pdf.
1 parent f0003ed commit c54dcee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pymc3/distributions/continuous.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3387,7 +3387,13 @@ class Gumbel(Continuous):
33873387
33883388
.. math::
33893389
3390-
f(x \mid \mu, \beta) = -\frac{x - \mu}{\beta} - \exp \left(-\frac{x - \mu}{\beta} \right) - \log(\beta)
3390+
f(x \mid \mu, \beta) = \frac{1}{\beta}e^{-(z + e^{-z})}
3391+
3392+
where
3393+
3394+
.. math::
3395+
3396+
z = \frac{x - \mu}{\beta}.
33913397
33923398
.. plot::
33933399

0 commit comments

Comments
 (0)