Negative Binomial Distribution: Trials Until the r-th Success

The negative binomial distribution describes the number of independent Bernoulli trials, XX, that must be performed to obtain a fixed number rr of successes, where each trial has the same probability of success pp. Unlike the binomial distribution, the number of trials here is random, it is the count of successes that is fixed in advance.

Negative Binomial PMF for r = 3 successes, p = 0.4

Negative Binomial PMF for r = 3 successes, p = 0.4

Probability Mass Function

If XX is the trial number on which the rr-th success occurs, then

A possible outcome sequence while waiting for the 2nd success (r = 2, p = 0.5). The 2nd success occurs on trial x = 7, so seven trials in total were needed.

A possible outcome sequence while waiting for the 2nd success (r = 2, p = 0.5). The 2nd success occurs on trial x = 7, so seven trials in total were needed.


P(X=x)=(x−1r−1) pr(1−p)x−r,x=r,r+1,r+2,…P(X = x) = \binom{x-1}{r-1}\,p^{r}(1-p)^{x-r}, \qquad x = r, r+1, r+2, \ldots


The factor (x−1r−1)\binom{x-1}{r-1} counts the ways to arrange the first r−1r-1 successes among the first x−1x-1 trials. The very last trial, trial xx, must be a success, so its probability pp is written outside the combination, never inside it.

Mean and Variance

E(X)=rp,Var⁡(X)=r(1−p)p2E(X) = \frac{r}{p}, \qquad \operatorname{Var}(X) = \frac{r(1-p)}{p^{2}}

Worked Example

A basketball player makes free throws independently with probability p=0.7p = 0.7. What is the probability that her 3rd made shot happens on her 5th attempt?


Here r=3r = 3, x=5x = 5:


P(X=5)=(42)(0.7)3(0.3)2=6(0.343)(0.09)≈0.185P(X=5) = \binom{4}{2}(0.7)^{3}(0.3)^{2} = 6(0.343)(0.09) \approx 0.185



A call-centre manager records whether each incoming call is resolved on the first attempt. Each call is independently a success (resolved) with probability p=0.35p = 0.35. She wants the probability that the 5th successfully resolved call is exactly the 12th call taken overall. Which distribution should she use to model the number of calls needed to reach the 5th success?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A dart player hits the bullseye independently on each throw with probability p=0.25p = 0.25. Let XX be the number of throws required to hit the bullseye for the 4th time. Find E(X)E(X), the expected number of throws.

Give your answer in throws.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

The figure shows a possible outcome sequence while waiting for the 2nd success (r=2r = 2) when trials succeed independently with probability p=0.5p = 0.5. Using the negative binomial formula (not the specific sequence shown), what is P(X=7)P(X = 7), the probability that exactly 7 trials are needed to obtain the 2nd success under these conditions?

A possible outcome sequence while waiting for the 2nd success (r = 2, p = 0.5). The 2nd success occurs on trial x = 7, so seven trials in total were needed.

A possible outcome sequence while waiting for the 2nd success (r = 2, p = 0.5). The 2nd success occurs on trial x = 7, so seven trials in total were needed.

Negative Binomial PMF for r = 3 successes, p = 0.4

Negative Binomial PMF for r = 3 successes, p = 0.4

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors