The Negative Binomial Distribution

Defines the negative binomial distribution as the number of independent Bernoulli trials required to obtain a fixed number r of successes. Covers the PMF, cumulative probabilities, expected value, variance, and applied problems.

Step 1 of 157%

Tutorial

The Negative Binomial PMF

Suppose we perform independent Bernoulli trials, each with success probability pp, and we keep going until we have observed exactly rr successes. Let XX denote the number of trials required to obtain the rr-th success. Then XX follows a negative binomial distribution with parameters rr and pp, written XNB(r,p)X \sim \text{NB}(r, p).

For XX to equal kk, two conditions must hold simultaneously:

  1. Trial kk is a success (so the rr-th success lands exactly on trial kk).
  2. Exactly r1r-1 of the first k1k-1 trials are successes.

The number of ways to arrange r1r-1 successes among the first k1k-1 trials is (k1r1)\binom{k-1}{r-1}, and each such arrangement has probability pr1(1p)krp^{\,r-1}(1-p)^{k-r}. Multiplying by the probability pp that trial kk itself is a success, we obtain the PMF:

P(X=k)=(k1r1)pr(1p)kr,k=r,r+1,r+2,P(X = k) = \binom{k-1}{r-1} p^{\,r} (1-p)^{k-r}, \quad k = r,\, r+1,\, r+2,\, \ldots

When r=1r = 1, this reduces to the geometric PMF P(X=k)=p(1p)k1P(X = k) = p(1-p)^{k-1}, so the negative binomial generalizes the geometric distribution.

Quick example. With r=2r = 2 and p=12p = \dfrac{1}{2}, the probability that the 22nd success occurs on the 44th trial is

P(X=4)=(31)(12)2 ⁣(12)2=3116=316.P(X = 4) = \binom{3}{1}\left(\tfrac{1}{2}\right)^{2}\!\left(\tfrac{1}{2}\right)^{2} = 3 \cdot \tfrac{1}{16} = \tfrac{3}{16}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle