Skip to main content

Introductory Statistics

Section 4.4 Negative binomial distribution

The geometric distribution describes the probability of observing the first success on the \(n^{th}\) trial. The negative binomial distribution is more general: it describes the probability of observing the \(k^{th}\) success on the \(n^{th}\) trial.

Example 4.4.1. Field goal attempts.

Each day a high school football coach tells his star kicker, Brian, that he can go home after he successfully kicks four 35 yard field goals. Suppose we say each kick has a probability \(p\) of being successful. If \(p\) is small β€” e.g. close to 0.1 β€” would we expect Brian to need many attempts before he successfully kicks his fourth field goal?
Solution.
We are waiting for the fourth success (\(k=4\)). If the probability of a success (\(p\)) is small, then the number of attempts (\(n\)) will probably be large. This means that Brian is more likely to need many attempts before he gets \(k=4\) successes. To put this another way, the probability of \(n\) being small is low.
To identify a negative binomial case, we check 4 conditions. The first three are common to the binomial distribution.
Is it negative binomial? Four conditions to check
  1. The trials are independent.
  2. Each trial outcome can be classified as a success or failure.
  3. The probability of a success (\(p\)) is the same for each trial.
  4. The last trial must be a success.

Checkpoint 4.4.2.

Suppose Brian is very diligent in his attempts and he makes each 35 yard field goal with probability \(p=0.8\text{.}\) Take a guess at how many attempts he would need before making his fourth kick.
Solution.
One possible answer: since he is likely to make each field goal attempt, it will take him at least 4 attempts but probably not more than 6 or 7.

Example 4.4.3. Sequences of successes and failures.

In yesterday’s practice, it took Brian only 6 tries to get his fourth field goal. Write out each of the possible sequences of kicks.
Solution.
Because it took Brian six tries to get the fourth success, we know the last kick must have been a success. That leaves three successful kicks and two unsuccessful kicks (we label these as failures) that make up the first five attempts. There are ten possible sequences of these first five kicks, which are shown in FigureΒ 4.4.4. If Brian achieved his fourth success (\(k=4\)) on his sixth attempt (\(n=6\)), then his order of successes and failures must be one of these ten possible sequences.
Kick Attempt
1 2 3 4 5 6
1 \(F\) \(F\) \(S_1\) \(S_2\) \(S_3\) \(S_4\)
2 \(F\) \(S_1\) \(F\) \(S_2\) \(S_3\) \(S_4\)
3 \(F\) \(S_1\) \(S_2\) \(F\) \(S_3\) \(S_4\)
4 \(F\) \(S_1\) \(S_2\) \(S_3\) \(F\) \(S_4\)
5 \(S_1\) \(F\) \(F\) \(S_2\) \(S_3\) \(S_4\)
6 \(S_1\) \(F\) \(S_2\) \(F\) \(S_3\) \(S_4\)
7 \(S_1\) \(F\) \(S_2\) \(S_3\) \(F\) \(S_4\)
8 \(S_1\) \(S_2\) \(F\) \(F\) \(S_3\) \(S_4\)
9 \(S_1\) \(S_2\) \(F\) \(S_3\) \(F\) \(S_4\)
10 \(S_1\) \(S_2\) \(S_3\) \(F\) \(F\) \(S_4\)
Figure 4.4.4. The ten possible sequences when the fourth successful kick is on the sixth attempt. S denotes a success and F denotes a failure.

Checkpoint 4.4.5.

Each sequence in FigureΒ 4.4.4 has exactly two failures and four successes with the last attempt always being a success. If the probability of a success is \(p=0.8\text{,}\) find the probability of the first sequence.
Solution.
The first sequence: \(0.2 \times 0.2 \times 0.8 \times 0.8 \times 0.8 \times 0.8 = 0.0164\text{.}\)
If the probability Brian kicks a 35 yard field goal is \(p=0.8\text{,}\) what is the probability it takes Brian exactly six tries to get his fourth successful kick? We can write this as
\begin{align*} \amp P(\text{it takes Brian six tries to make four field goals})\\ \amp \quad = P(\text{Brian makes three of his first five field goals, and he makes the sixth one})\\ \amp \quad = P(\text{$1^{st}$ sequence OR $2^{nd}$ sequence OR } \cdots \text{ OR $10^{th}$ sequence}) \end{align*}
where the sequences are from FigureΒ 4.4.4. We can break down this last probability into the sum of ten disjoint possibilities:
\begin{align*} \amp P(\text{$1^{st}$ sequence OR $2^{nd}$ sequence OR } \cdots \text{ OR $10^{th}$ sequence})\\ \amp \quad = P(\text{$1^{st}$ sequence}) + P(\text{$2^{nd}$ sequence}) + \cdots + P(\text{$10^{th}$ sequence}) \end{align*}
The probability of the first sequence was identified in CheckpointΒ 4.4.5 as 0.0164, and each of the other sequences have the same probability. Since each of the ten sequences has the same probability, the total probability is ten times that of any individual sequence.
The way to compute this negative binomial probability is similar to how the binomial problems were solved in SectionΒ 4.3. The probability is broken into two pieces:
\begin{align*} \amp P(\text{it takes Brian six tries to make four field goals})\\ \amp \quad = [\text{Number of possible sequences}] \times P(\text{Single sequence}) \end{align*}
Each part is examined separately, then we multiply to get the final result.
We first identify the probability of a single sequence. One particular case is to first observe all the failures (\(n-k\) of them) followed by the \(k\) successes:
\begin{align*} P(\text{Single sequence}) \amp = P(\text{$n-k$ failures and then $k$ successes})\\ \amp = (1-p)^{n-k} p^{k} \end{align*}
We must also identify the number of sequences for the general case. Above, ten sequences were identified where the fourth success came on the sixth attempt. These sequences were identified by fixing the last observation as a success and looking for all the ways to arrange the other observations. In other words, how many ways could we arrange \(k-1\) successes in \(n-1\) trials? This can be found using the \(n\) choose \(k\) coefficient but for \(n-1\) and \(k-1\) instead:
\begin{equation*} {n-1 \choose k-1} = \frac{(n-1)!}{(k-1)! \left((n-1) - (k-1)\right)!} = \frac{(n-1)!}{(k-1)! \left(n - k\right)!} \end{equation*}
This is the number of different ways we can order \(k-1\) successes and \(n-k\) failures in \(n-1\) trials.
Negative binomial distribution
The negative binomial distribution describes the probability of observing the \(k^{th}\) success on the \(n^{th}\) trial, where all trials are independent:
\begin{equation*} P(\text{the $k^{th}$ success on the $n^{th}$ trial}) = {n-1 \choose k-1} p^{k}(1-p)^{n-k} \end{equation*}
The value \(p\) represents the probability that an individual trial is a success.

Example 4.4.6. Using the negative binomial formula.

Show using the formula for the negative binomial distribution that the probability Brian kicks his fourth successful field goal on the sixth attempt is 0.164.
Solution.
The probability of a single success is \(p=0.8\text{,}\) the number of successes is \(k=4\text{,}\) and the number of necessary attempts under this scenario is \(n=6\text{.}\)
\begin{align*} {n-1 \choose k-1}p^k(1-p)^{n-k} \amp = \frac{5!}{3!2!} (0.8)^4 (0.2)^2\\ \amp = 10\times 0.0164\\ \amp = 0.164 \end{align*}

Checkpoint 4.4.7.

The negative binomial distribution requires that each kick attempt by Brian is independent. Do you think it is reasonable to suggest that each of Brian’s kick attempts are independent?
Solution.
Answers may vary. We cannot conclusively say they are or are not independent. However, many statistical reviews of athletic performance suggest such attempts are very nearly independent.

Checkpoint 4.4.8.

Assume Brian’s kick attempts are independent. What is the probability that Brian will kick his fourth field goal within 5 attempts?
Solution.
If his fourth field goal (\(k=4\)) is within five attempts, it either took him four or five tries (\(n=4\) or \(n=5\)). We have \(p=0.8\) from earlier. Use the negative binomial distribution to compute the probability of \(n = 4\) tries and \(n=5\) tries, then add those probabilities together:
\begin{align*} P(n=4\text{ OR }n=5) \amp = P(n=4) + P(n=5)\\ \amp = {4-1 \choose 4-1} 0.8^4 + {5-1 \choose 4-1} (0.8)^4(1-0.8)\\ \amp = 1\times 0.41 + 4\times 0.082\\ \amp = 0.41 + 0.33 = 0.74 \end{align*}
Binomial versus negative binomial
In the binomial case, we typically have a fixed number of trials and instead consider the number of successes. In the negative binomial case, we examine how many trials it takes to observe a fixed number of successes and require that the last observation be a success.

Checkpoint 4.4.9.

On 70% of days, a hospital admits at least one heart attack patient. On 30% of the days, no heart attack patients are admitted. Identify each case below as a binomial or negative binomial case, and compute the probability.
  1. What is the probability the hospital will admit a heart attack patient on exactly three days this week?
  2. What is the probability the second day with a heart attack patient will be the fourth day of the week?
  3. What is the probability the fifth day of next month will be the first day with a heart attack patient?
Solution.
In each part, \(p=0.7\text{.}\)
  1. The number of days is fixed, so this is binomial. The parameters are \(k=3\) and \(n=7\text{:}\) 0.097.
  2. The last β€œsuccess” (admitting a heart attack patient) is fixed to the last day, so we should apply the negative binomial distribution. The parameters are \(k=2\text{,}\) \(n=4\text{:}\) 0.132.
  3. This problem is negative binomial with \(k=1\) and \(n=5\text{:}\) 0.006. Note that the negative binomial case when \(k=1\) is the same as using the geometric distribution.

Exercises Section 4.4 Exercises

2. Playing darts.

Calculate the following probabilities and indicate which probability distribution model is appropriate in each case. A very good darts player can hit the bull’s eye (red circle in the center of the dart board) 65% of the time. What is the probability that he
  1. hits the bullseye for the \(10^{th}\) time on the \(15^{th}\) try?
  2. hits the bullseye 10 times in 15 tries?
  3. hits the first bullseye on the third try?

3. Sampling at school.

For a sociology class project you are asked to conduct a survey on 20 students at your school. You decide to stand outside of your dorm’s cafeteria and conduct the survey on a random sample of 20 students leaving the cafeteria after dinner one evening. Your dorm is comprised of 45% males and 55% females.
  1. Which probability model is most appropriate for calculating the probability that the \(4^{th}\) person you survey is the \(2^{nd}\) female? Explain.
  2. Compute the probability from part (a).
  3. The three possible scenarios that lead to \(4^{th}\) person you survey being the \(2^{nd}\) female are
    \begin{equation*} \{M, M, F, F\}, \{M, F, M, F\}, \{F, M, M, F\} \end{equation*}
    One common feature among these scenarios is that the last trial is always female. In the first three trials there are 2 males and 1 female. Use the binomial coefficient to confirm that there are 3 ways of ordering 2 males and 1 female.
  4. Use the findings presented in part (c) to explain why the formula for the coefficient for the negative binomial is \({n-1 \choose k-1}\) while the formula for the binomial coefficient is \({n \choose k}\text{.}\)

4. Serving in volleyball.

A not-so-skilled volleyball player has a 15% chance of making the serve, which involves hitting the ball so it passes over the net on a trajectory such that it will land in the opposing team’s court. Suppose that her serves are independent of each other.
  1. What is the probability that on the \(10^{th}\) try she will make her \(3^{rd}\) successful serve?
  2. Suppose she has made two successful serves in nine attempts. What is the probability that her \(10^{th}\) serve will be successful?
  3. Even though parts (a) and (b) discuss the same scenario, the probabilities you calculated should be different. Can you explain the reason for this discrepancy?