Skip to content

Commit 9b9826c

Browse files
MatthewQuennevillemichaelosthege
authored andcommitted
Fix incorrect formula in NormalMixture docstring
1 parent c6e5a92 commit 9b9826c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/distributions/mixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ class NormalMixture:
495495
======== =======================================
496496
Support :math:`x \in \mathbb{R}`
497497
Mean :math:`\sum_{i = 1}^n w_i \mu_i`
498-
Variance :math:`\sum_{i = 1}^n w_i^2 \sigma^2_i`
498+
Variance :math:`\sum_{i = 1}^n w_i (\sigma^2_i + \mu_i^2) - \left(\sum_{i = 1}^n w_i \mu_i\right)^2`
499499
======== =======================================
500500
501501
Parameters

0 commit comments

Comments
 (0)