Skip to content

Commit 30d00fe

Browse files
aloctavodiaricardoV94
authored andcommitted
Fix expression for the variance in ZINB docstring
1 parent a06081e commit 30d00fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymc/distributions/mixture.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,9 @@ def ZeroInfNegBinom(a, m, psi, x):
764764
======== ==========================
765765
Support :math:`x \in \mathbb{N}_0`
766766
Mean :math:`\psi\mu`
767-
Var :math:`\psi\mu + \left (1 + \frac{\mu}{\alpha} + \frac{1-\psi}{\mu} \right)`
767+
Var .. math::
768+
\psi \left(\frac{{\mu^2}}{{\alpha}}\right) +\
769+
\psi \mu + \psi \mu^2 - \psi^2 \mu^2
768770
======== ==========================
769771
770772
The zero inflated negative binomial distribution can be parametrized

0 commit comments

Comments
 (0)