Variance of Negative Binomial Distribution/Second Form
Jump to navigation
Jump to search
Theorem
Let $X$ be a discrete random variable with the negative binomial distribution (second form) with parameters $n$ and $p$.
Then the variance of $X$ is given by:
- $\var X = \dfrac {n q} {p^2}$
where $q = 1 - p$.
Proof
From Variance of Discrete Random Variable from PGF:
- $\var X = \map {\Pi_X} 1 + \mu - \mu^2$
where $\mu = \expect X$ is the expectation of $X$.
From the Probability Generating Function of Negative Binomial Distribution (Second Form):
- $\map {\Pi_X} s = \dfrac {p s} {1 - q s}$
From Expectation of Negative Binomial Distribution/Second Form:
- $\mu = \dfrac n p$
From Second Derivative of PGF of Negative Binomial Distribution/Second Form:
- $\dfrac {\d^2} {\d s^2} \map {\Pi_X} s = \paren {\dfrac {p s} {1 - q s} }^{n + 2} \paren {\dfrac {n \paren {n - 1} + 2 n q s} {\paren {p s^2}^2} }$
Putting $s = 1$ and using the formula $\map {\Pi_X} 1 + \mu - \mu^2$:
\(\ds \var X\) | \(=\) | \(\ds \paren {\frac p {1 - q} }^{n + 2} \paren {\frac {n \paren {n - 1} + 2 n q} {p^2} } + \frac n p - \frac {n^2} {p^2}\) | ||||||||||||
\(\ds \) | \(=\) | \(\ds \paren {\frac p p}^{n + 2} \paren {\frac {n \paren {n - 1} + 2 n q} {p^2} } + \frac {n \paren {1 - q} } {p^2} - \frac {n^2} {p^2}\) | as $q = 1 - p$ and so $p = 1 - q$ | |||||||||||
\(\ds \) | \(=\) | \(\ds \frac {n^2 - n + 2 n q + n - n q - n^2} {p^2}\) | gathering terms and multiplying out | |||||||||||
\(\ds \) | \(=\) | \(\ds \frac {n q} {p^2}\) | simplification |
$\blacksquare$
Sources
- 1986: Geoffrey Grimmett and Dominic Welsh: Probability: An Introduction ... (previous) ... (next): $\S 4.3$: Moments: Exercise $6$
- 2014: Christopher Clapham and James Nicholson: The Concise Oxford Dictionary of Mathematics (5th ed.) ... (previous) ... (next): Appendix $13$: Probability distributions
- 2021: Richard Earl and James Nicholson: The Concise Oxford Dictionary of Mathematics (6th ed.) ... (previous) ... (next): Appendix $15$: Probability distributions