Skip to content

Commit 2d98474

Browse files
eigenfooaseyboldt
authored andcommitted
Typo in exponential survival function (#3174)
1 parent a4f8bd7 commit 2d98474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/prob_dists.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ An exponential survival function is defined by:
5050

5151
.. math::
5252
53-
f(c, t) = \left\{ \begin{array}{l} \exp(\lambda t), \text{if c=1} \\
54-
\lambda \exp(\lambda t), \text{if c=0} \end{array} \right.
53+
f(c, t) = \left\{ \begin{array}{l} \exp(-\lambda t), \text{if c=1} \\
54+
\lambda \exp(-\lambda t), \text{if c=0} \end{array} \right.
5555
5656
Such a function can be implemented as a PyMC3 distribution by writing a function that specifies the log-probability, then passing that function as an argument to the ``DensityDist`` function, which creates an instance of a PyMC3 distribution with the custom function as its log-probability.
5757

0 commit comments

Comments
 (0)