In: Statistics and Probability
The Negative Binomial Distribution is a discrete probability distribution of the number of successes in a sequence of independent and identically distributed Bernoulli trials before a specified (non-random) number of failures (denoted r) occurs. For example, if we define a 1 as failure, all non-1s as successes, and we throw a die repeatedly until 1 appears the third time (r = three failures), then the probability distribution of the number of non-1s that appeared will be a negative binomial distribution.
The probability mass function of the negative binomial distribution is
where k is the number of successes, r is the number of failures, and p is the probability of success.
Therefore here
p=0.7, r=9
When counting the number k of successes before r failures, the expected number of successes is rp/(1 − p).
Therefore mean is 9*(0.7)/(1-0.7)=21
When counting the number k of successes given the number r of failures, the variance is rp/(1 − p)2.
Therefore variance is 9*0.7/(0.3)^2 = 70.