Skip to content

Commit 7ea3056

Browse files
authored
Merge pull request #144 from jtimonen/master
correct y to n in NegBinomial2 density
2 parents 29c649f + 90bdf10 commit 7ea3056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions-reference/unbounded_discrete_distributions.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ alternative parameterization directly in terms of the log mean.
9393

9494
The first parameterization is for $\mu \in \mathbb{R}^+$ and $\phi \in
9595
\mathbb{R}^+$, which for $n \in \mathbb{N}$ is defined as \[
96-
\text{NegBinomial2}(n \, | \, \mu, \phi) = \binom{n + \phi - 1}{y} \,
97-
\left( \frac{\mu}{\mu+\phi} \right)^{\!y} \, \left(
96+
\text{NegBinomial2}(n \, | \, \mu, \phi) = \binom{n + \phi - 1}{n} \,
97+
\left( \frac{\mu}{\mu+\phi} \right)^{\!n} \, \left(
9898
\frac{\phi}{\mu+\phi} \right)^{\!\phi} \!. \]
9999

100100
The mean and variance of a random variable $n \sim

0 commit comments

Comments
 (0)