The experiment requires:
- The trials be independent
- The outcome is binary (success or failure).
- The probability of success or failure is independent from trial to trial.
- The trials continue until you have \(r\) successes.
The random variable \(X\) counts the number of failures prior to having \(r\) successes.
When \(r=1\), this is the geometric distribution.
Properties
There is a generalized negative binomial distribution where the \(r\) is not an integer.
Often used as an alternative to the Poisson distribution when it’s clear that the mean and variance don’t match. As this distribution has one extra parameter, we can tweak it to match the variance.
Example
(Taken from Bruce Hajek’s lecture notes).
Problem
Suppose a fair die is repeatedly rolled until each of the numbers one through six shows at least once. What is the mean number of rolls?
Solution
Let \(R=R_{1}+\cdots+R_{6}\) where \(R_{i}\) is the number of rolls made after \(i-1\) distinct numbers have shown up, up to and including the roll such that \(i\) shows up.
Think of the sequence of numbers and insert a vertical bar after each new number shows up.
\(R{i}\) is a random variable that follows a geometric distribution with \(r=1\).
And \(\mu=\sum_{i}\mu_{i}\)