Skip to content

Commit a772a79

Browse files
Add expression for NegativeBinomial variance
Co-authored-by: lucianopaz <[email protected]>
1 parent 827918b commit a772a79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymc/distributions/discrete.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,11 @@ def NegBinom(a, m, x):
628628
plt.legend(loc=1)
629629
plt.show()
630630
631-
======== ==========================
631+
======== ==================================
632632
Support :math:`x \in \mathbb{N}_0`
633633
Mean :math:`\mu`
634-
======== ==========================
634+
Variance :math:`\frac{\mu^2}{\alpha} + \mu`
635+
======== ==================================
635636
636637
The negative binomial distribution can be parametrized either in terms of mu or p,
637638
and either in terms of alpha or n. The link between the parametrizations is given by

0 commit comments

Comments
 (0)