Let \(X\) = number of failures preceding the \(r\)-th success in a sequence of independent Bernoulli\((p)\) trials. \(X\) follows the Negative Binomial distribution NB\((r, p)\) with PMF
\[ P(X = x) \;=\; \binom{x + r - 1}{x} p^r q^x, \quad x = 0, 1, 2, \ldots \]where \(q = 1 - p\). Some textbooks define \(Y = X + r\) = total number of trials; the two forms differ only by a shift.
Validity: \(\sum_{x=0}^{\infty} \binom{x+r-1}{x} q^x = (1-q)^{-r} = p^{-r}\), hence \(\sum P(X=x) = p^r \cdot p^{-r} = 1\) ✓.
When \(r = 1\), NB\((1, p)\) reduces to the Geometric distribution (Unit 4).
Differentiating once and setting \(t=0\):
\(M'_X(0) = \dfrac{rq}{p} = E(X)\).
Differentiating again: \(E(X^2) = \dfrac{rq(1+rq)}{p^2}\).
Note that Var \(=\) Mean / \(p\), so variance > mean (over-dispersed compared to Poisson).
If \(X_1 \sim \text{NB}(r_1, p)\) and \(X_2 \sim \text{NB}(r_2, p)\) are independent (same \(p\)),
\[ X_1 + X_2 \;\sim\; \text{NB}(r_1 + r_2,\; p). \]Proof. Again we work with the moment generating function.
Always positively skewed and leptokurtic; both decrease toward 0 as \(r\) grows.
A salesman closes a deal with probability \(p = 0.4\) each call. Find probability that the third sale (\(r=3\)) comes on the 7th call (i.e., 4 failures before).
\(X = 4\). \(P(X=4) = \binom{6}{4}(0.4)^3(0.6)^4 = 15 \times 0.064 \times 0.1296 = 0.1244\).
A coin (head probability 0.5) is tossed until 5 heads appear. What is the expected number of tails?
\(r = 5,\; p = 0.5,\; q = 0.5\). \(E(X) = rq/p = 5\). Variance = \(rq/p^2 = 10\).
For large \(r\), the standardized variable
\[ Z \;=\; \dfrac{X - rq/p}{\sqrt{rq/p^2}} \;\xrightarrow{d}\; N(0, 1). \]This follows from the Central Limit Theorem since \(X\) can be expressed as a sum of \(r\) i.i.d. geometric variables.
Let \(X \sim\) NB\((r, p)\) (number of failures before the \(r\)-th success). As \(r \to \infty\) and \(p \to 1\) (so that \(q = 1 - p \to 0\)) in such a way that \(rq \to \lambda\), a finite constant, the distribution of \(X\) tends to the Poisson distribution with mean \(\lambda\):
\[ P(X = x) \;\longrightarrow\; \dfrac{e^{-\lambda}\lambda^{x}}{x!}, \qquad x = 0, 1, 2, \dots \](Since \(p \to 1\), the mean \(rq/p \to \lambda\) as well.)
The probability generating function of NB\((r, p)\) is
\[ G_X(s) = \left(\dfrac{p}{1 - qs}\right)^{r} = \left(\dfrac{1 - q}{1 - qs}\right)^{r}. \]Taking logarithms and expanding for small \(q\),
\[ \ln G_X(s) = r\big[\ln(1 - q) - \ln(1 - qs)\big] = r\big[(-q) - (-qs)\big] + O(rq^{2}) = rq(s - 1) + O(rq^{2}). \]As \(r \to \infty,\ q \to 0\) with \(rq \to \lambda\) (hence \(rq^{2} \to 0\)),
\[ \ln G_X(s) \to \lambda(s - 1), \qquad\text{so}\qquad G_X(s) \to e^{\lambda(s - 1)}, \]which is the PGF of Poisson\((\lambda)\). By the uniqueness of generating functions, \(X \xrightarrow{d} \text{Poisson}(\lambda)\). \(\blacksquare\)
For \(r = 200,\ p = 0.985\ (q = 0.015,\ rq = 3)\), the NB probabilities for \(x = 0, 1, 2, 3, 4\) are \(0.049, 0.146, 0.220, 0.222, 0.169\) — matching the Poisson\((3)\) values \(0.050, 0.149, 0.224, 0.224, 0.168\) very closely.