Tutorials › Exam FAM - Fundamentals of Actuarial Mathematics › Negative Binomial Mean, Variance, And Dispersion

Exam FAM · Frequency Probabilities and Approximations · Tutorial 540 of 988

Negative Binomial Mean, Variance, And Dispersion

Learn to calculate negative binomial moments across common parameterizations and interpret their dispersion compared with a Poisson model.

Intermediate 10 min read

What You'll Learn

  • Calculate the mean and variance when the negative binomial counts failures before a fixed number of successes
  • Convert between success-probability and mean-size parameterizations
  • Adjust the mean when a negative binomial variable counts trials rather than failures
  • Measure extra variance and the variance-to-mean ratio relative to a Poisson count
  • Recover negative binomial parameters from a specified mean and variance

Why the Negative Binomial Has Extra Variance

A Poisson frequency model has equal mean and variance. A negative binomial model can have a larger variance than its mean, allowing claim counts to vary more widely than a same-mean Poisson count. To calculate and interpret that difference correctly, first identify exactly what the random variable counts. In particular, “failures before a fixed number of successes” and “trials until a fixed number of successes” differ by a constant, so they do not have the same mean.

The formulas below assume independent Bernoulli trials, each with the same success probability \(p\), where \(0<p<1\). For the failures-count version, the number of required successes \(r\) is a positive integer. A mean-size parameterization also permits positive noninteger \(r\).

Definition: Let \(K\) be the number of failures observed before the \(r\)th success. Write \(q=1-p\). Then \(K\) has a negative binomial distribution with parameters \(r\) and \(p\), and $$ P(K=k)=\binom{k+r-1}{k}p^r q^k,\qquad k=0,1,2,\ldots. $$ In this convention, \(p\) is the probability of success on each trial, and \(K\) counts failures, not total trials.

Mean and Variance for Failures Before \(r\) Successes

One way to derive the moments is to split the waiting process into \(r\) stages. Let \(W_j\) be the number of failures after the \((j-1)\)th success and before the \(j\)th success. Each stage has the geometric distribution \(P(W_j=k)=pq^k\), and the stages are independent because the trials are independent and have the same success probability. The total failures are \(K=W_1+\cdots+W_r\).

For one stage, the geometric-series identities \(\sum_{k=0}^{\infty}q^k=1/(1-q)\), \(\sum_{k=0}^{\infty}kq^k=q/(1-q)^2\), and \(\sum_{k=0}^{\infty}k^2q^k=q(1+q)/(1-q)^3\) give its first two moments. Since \(1-q=p\),

$$ E[W_j]=p\sum_{k=0}^{\infty}kq^k=\frac{q}{p}, \qquad E[W_j^2]=p\sum_{k=0}^{\infty}k^2q^k=\frac{q(1+q)}{p^2}. $$

Subtracting the square of the mean gives \(\operatorname{Var}(W_j)=q(1+q)/p^2-q^2/p^2=q/p^2\). Independence lets us add the stage means and variances. Thus,

$$ E[K]=\frac{rq}{p}, \qquad \operatorname{Var}(K)=\frac{rq}{p^2}. $$

This derivation relies on a fixed number of independent trials’ successes being sought and a constant \(p\). If the trial probabilities vary, or the stopping rule is different, these formulas do not automatically apply.

Worked Example: Moments and Excess Variance from \(r\) and \(p\)

In a hypothetical portfolio, suppose the number \(K\) of qualifying events before the fifth non-event follows the failures-before-successes negative binomial model, with \(r=5\) and probability \(p=0.8\) of a non-event on each independent trial. Find the mean and variance of \(K\), then compare its variance with that of a Poisson count having the same mean.

Method. Use the failures-count convention, so \(q=1-p=1-0.8=0.2\). The mean is $$ E[K]=\frac{rq}{p}=\frac{5(0.2)}{0.8}=\frac{1}{0.8}=1.25. $$

The variance is $$ \operatorname{Var}(K)=\frac{rq}{p^2} =\frac{5(0.2)}{(0.8)^2} =\frac{1}{0.64} =1.5625. $$

A Poisson count with mean \(1.25\) has variance \(1.25\). The negative binomial variance exceeds it by \(1.5625-1.25=0.3125\), and the variance-to-mean ratio is \(1.5625/1.25=1.25\). As a check, \(\operatorname{Var}(K)=E[K]/p=1.25/0.8=1.5625\), agreeing with the direct calculation. The common mistake avoided here is using \(p\) in place of \(q\) in the numerator.

Mean-Size Parameterization and Poisson Comparison

Sometimes the model is specified by its mean \(\mu\) and size parameter \(r\), rather than by \(r\) and \(p\). Solving \(\mu=rq/p\), together with \(p+q=1\), gives \(p=r/(r+\mu)\) and \(q=\mu/(r+\mu)\). Substitution into the variance formula yields a convenient form.

Theorem: For a failures-count negative binomial model with mean \(\mu\) and size \(r>0\), $$ p=\frac{r}{r+\mu},\qquad q=\frac{\mu}{r+\mu},\qquad \operatorname{Var}(K)=\mu+\frac{\mu^2}{r}. $$ The variance exceeds the mean by \(\mu^2/r\). For \(\mu>0\), the variance-to-mean ratio is \(1+\mu/r\).

The result follows directly: \(rq/p^2=r[\mu/(r+\mu)]/ [r/(r+\mu)]^2=\mu(r+\mu)/r=\mu+\mu^2/r\). A Poisson random variable with the same mean \(\mu\) has variance \(\mu\), so the difference \(\mu^2/r\) measures the negative binomial’s additional variance under this parameterization. The size \(r\) controls that difference: for fixed \(\mu\), a smaller \(r\) means a larger excess variance.

Some texts instead use a dispersion parameter \(\alpha=1/r\). In that notation, the same relationship is \(\operatorname{Var}(K)=\mu+\alpha\mu^2\). Check which parameter is being supplied before substituting: a size parameter \(r\) and a dispersion parameter \(\alpha\) are reciprocals, not interchangeable values.

Worked Example: Using Mean and Size

Suppose a hypothetical frequency model for a one-year count has negative binomial mean \(\mu=12\) and size \(r=6\). Find the success probability \(p\), variance, excess over the same-mean Poisson variance, and variance-to-mean ratio.

Method. For the failures-count model, convert the mean-size parameters to the success probability: $$ p=\frac{r}{r+\mu}=\frac{6}{6+12}=\frac{1}{3}, \qquad q=1-p=\frac{2}{3}. $$

The variance from the mean-size formula is $$ \operatorname{Var}(K)=\mu+\frac{\mu^2}{r} =12+\frac{12^2}{6} =12+\frac{144}{6} =36. $$

The same-mean Poisson variance is \(12\), so the excess is \(36-12=24\). The variance-to-mean ratio is \(36/12=3\), also \(1+\mu/r=1+12/6=3\). As a check using \(r,p,q\), \(rq/p^2=6(2/3)/(1/3)^2=4/(1/9)=36\). The common mistake avoided is treating \(r\) as the mean: here the mean is \(12\), not \(6\).

When the Variable Counts Trials Instead

A second common convention counts the total number of trials \(T\) needed to obtain \(r\) successes. Every such sequence contains exactly \(r\) successes, so \(T=K+r\), where \(K\) counts failures before the \(r\)th success. Adding a constant increases the mean by that constant but leaves the variance unchanged.

Key relationship: If \(T\) is the number of trials through the \(r\)th success, then $$ E[T]=\frac{r}{p},\qquad \operatorname{Var}(T)=\frac{rq}{p^2}. $$ These are the moments of \(T=K+r\), not of the failures count \(K\). The variance is unchanged, while \(E[T]=E[K]+r\).

Worked Example: Avoiding the Trials-versus-Failures Shift

A hypothetical monitoring process ends when four successful checks have occurred. Each independent check succeeds with probability \(p=0.5\). Let \(T\) be the total number of checks and \(K\) the number of unsuccessful checks before the fourth success. Find the mean and variance of each variable.

Method. Here \(r=4\), \(p=0.5\), and \(q=0.5\). For the failures count, $$ E[K]=\frac{rq}{p}=\frac{4(0.5)}{0.5}=4, \qquad \operatorname{Var}(K)=\frac{rq}{p^2} =\frac{4(0.5)}{(0.5)^2} =\frac{2}{0.25}=8. $$

Since \(T=K+4\), its mean is \(E[T]=4+4=8\), while its variance remains \(\operatorname{Var}(T)=8\). Direct substitution gives the same results: \(E[T]=r/p=4/0.5=8\), and \(\operatorname{Var}(T)=4(0.5)/(0.5)^2=8\).

The check is that the number of trials cannot be less than four, whereas the failures count can be zero. The common mistake avoided is reporting \(r/p=8\) as the mean number of failures; it is the mean number of trials. The failures-count mean is \(8-4=4\).

Common Exam Traps

  • Confusing \(p\) and \(q\). With \(p\) defined as success probability, the failures-count mean is \(rq/p\), not \(rp/q\). Define \(q=1-p\) before calculating.
  • Using the trials mean for a failures count. \(r/p\) is the expected number of trials to obtain \(r\) successes. The expected number of failures is \(rq/p\).
  • Assuming the variance equals the mean. That equality belongs to the Poisson model. For the failures-count negative binomial model, the variance is \(\mu+\mu^2/r\).
  • Confusing size with dispersion. If the parameter is \(\alpha\) in \(\mu+\alpha\mu^2\), then \(r=1/\alpha\); substituting \(\alpha\) as though it were \(r\) reverses the effect.

The dispersion comparison is meaningful only when the two models refer to counts on the same scale and have the same mean. In particular, compare the failures count \(K\) with a Poisson count of mean \(E[K]\); do not compare \(K\) with a Poisson variable whose mean is \(E[T]\).

Key takeaway: For the negative binomial failures count with mean \(\mu\) and size \(r\), the variance is \(\mu+\mu^2/r\). The excess over a same-mean Poisson variance is \(\mu^2/r\), and the variance-to-mean ratio is \(1+\mu/r\). Confirm first whether the variable counts failures or total trials.

Check Your Understanding

For each problem, identify the parameterization before applying a moment formula.

  1. A failures-count negative binomial variable has \(r=3\) and success probability \(p=0.6\). Find its mean, variance, and variance-to-mean ratio. (Answer: mean \(2\), variance \(10/3\), ratio \(5/3\).)
  2. A failures-count model has mean \(\mu=8\) and size \(r=4\). Find \(p\), the variance, and the excess variance over a same-mean Poisson model. (Answer: \(p=1/3\), variance \(24\), excess \(16\).)
  3. The number of trials through the fifth success has success probability \(p=0.4\). Find the mean and variance of the total trials \(T\), and the mean of the failures count \(K\). (Answer: \(E[T]=12.5\), \(\operatorname{Var}(T)=18.75\), \(E[K]=7.5\).)
  4. A failures-count negative binomial model has mean \(10\) and variance \(35\). Find its size \(r\), success probability \(p\), and excess variance over a same-mean Poisson model. (Answer: \(r=4\), \(p=2/7\), excess variance \(25\).)
  5. A negative binomial failures count has mean \(20\), and its variance-to-mean ratio is \(1.5\). Find its size, variance, and success probability. (Answer: \(r=40\), variance \(30\), \(p=2/3\).)
Clinical Biostats