Why the Variance Structure Matters
Two count models can make the same prediction for the conditional mean and still imply different amounts of uncertainty around that prediction. This distinction matters when counts are more variable than a Poisson model allows: a variance specification determines how the extra variation is expected to change as the fitted mean changes. Negative binomial models are often described as “NB1” or “NB2” precisely to distinguish these variance patterns.
Both specifications can use a log-linked conditional mean, such as \(\mu_i=\exp(x_i^\top\beta)\), where \(Y_i\) is a nonnegative count and \(x_i\) is a vector of observed predictors. The comparison here concerns the conditional variance given those predictors. It is not a comparison of two different mean links.
These equations define the variance restrictions, not a complete account of every distributional assumption that may be used for likelihood-based estimation. For the comparisons below, assume the conditional mean is specified as stated, the conditional variance follows the NB1 or NB2 function, and observations are conditionally independent given their predictors. A full negative binomial likelihood also specifies a probability distribution for the counts; matching a variance function alone does not establish that the entire distribution is correct.
How the Two Variance Functions Change
The clearest comparison comes from examining both the variance itself and its ratio to the conditional mean. For NB1, the extra-Poisson component is proportional to the mean. For NB2, it is proportional to the square of the mean.
This gives a compact derivation of the distinct patterns. Dividing the NB1 variance by \(\mu\) yields \((\mu+\alpha\mu)/\mu=1+\alpha\), which does not depend on \(\mu\). Dividing the NB2 variance by \(\mu\) yields \((\mu+\alpha\mu^2)/\mu=1+\alpha\mu\), which increases linearly with \(\mu\) when \(\alpha>0\). Differentiating the variance functions shows that NB1 variance increases at a constant rate, whereas the rate of increase under NB2 grows with the mean.
The ratio \(V(\mu)/\mu\) is the conditional variance-to-mean ratio, also called the Fano factor. A Poisson model has ratio 1. Under NB1 the ratio is constant and greater than 1 when \(\alpha>0\). Under NB2 it rises with the fitted mean: low-mean observations can have modest extra variation, while high-mean observations can have substantially more.
Worked Example: Comparing Variances at Three Fitted Means
Suppose hypothetical fitted conditional means are 2, 5, and 10 counts, and both variance specifications use \(\alpha=0.4\). Calculate the conditional variance and variance-to-mean ratio at each mean.
For NB1, \(V_1(\mu)=\mu(1+0.4)=1.4\mu\). Thus the variances are \(1.4(2)=2.8\), \(1.4(5)=7.0\), and \(1.4(10)=14.0\) counts squared. The corresponding ratios are \(2.8/2=1.4\), \(7.0/5=1.4\), and \(14.0/10=1.4\).
For NB2, \(V_2(\mu)=\mu+0.4\mu^2\). At mean 2, the variance is \(2+0.4(2^2)=2+1.6=3.6\). At mean 5, it is \(5+0.4(5^2)=5+10=15.0\). At mean 10, it is \(10+0.4(10^2)=10+40=50.0\). The ratios are \(3.6/2=1.8\), \(15.0/5=3.0\), and \(50.0/10=5.0\).
At the smallest mean, the two variances are relatively close; at the largest, NB2 implies much greater variance. The pattern—not simply whether the variance exceeds the mean—is the distinction: NB1 keeps the ratio at 1.4, while NB2’s ratio rises from 1.8 to 5.0 as the mean increases.
Reading Conditional Variability in Data
In principle, grouped observations with similar predictors can reveal how conditional variance changes across different fitted means. One can compare the mean and variance of counts within groups, or inspect residual variation across ranges of fitted means. The relevant question is whether the extra-Poisson variability looks roughly proportional to the mean (NB1) or grows more rapidly as the mean increases (NB2).
The following hypothetical summaries illustrate the comparison. Suppose three groups of observations have similar predictor values within each group. Their fitted means are 2, 4, and 8 counts, and their observed within-group variances are 3.2, 6.5, and 13.4 counts squared. These are sample summaries and therefore subject to sampling variation; they need not fall exactly on any theoretical variance curve.
Worked Example: A Pattern Closer to NB1
For the hypothetical group summaries above, calculate the observed variance-to-mean ratios and compare them with the extra dispersion implied by each specification.
The ratios are \(3.2/2=1.60\), \(6.5/4=1.625\), and \(13.4/8=1.675\). They are fairly similar across the three fitted means. For NB1, the implied dispersion parameter can be read from \(V_1(\mu)/\mu=1+\alpha\), so \(\alpha=V_1(\mu)/\mu-1\). The three group-specific values are \(1.60-1=0.60\), \(1.625-1=0.625\), and \(1.675-1=0.675\), which are reasonably close.
For NB2, the same ratio is \(1+\alpha\mu\), so the implied value is \(\alpha=(V_2(\mu)/\mu-1)/\mu\). The three values are \(0.60/2=0.30\), \(0.625/4=0.1563\), and \(0.675/8=0.08438\). These decline substantially rather than remaining approximately constant.
In this illustrative comparison, the roughly stable variance-to-mean ratios are more consistent with the NB1 variance pattern. This is not a formal model-selection result: small-group variance estimates can be noisy, and the comparison does not assess the conditional mean specification or the full count distribution.
The reverse pattern can point toward NB2: the variance-to-mean ratio increases with the fitted mean, while the quantity \((V(\mu)/\mu-1)/\mu\) is roughly stable. This follows directly from the formulas. Under NB1, \(V(\mu)/\mu-1=\alpha\) is constant; under NB2, dividing that excess ratio by \(\mu\) gives \(\alpha\).
Worked Example: A Pattern Closer to NB2
Now suppose a second hypothetical set of groups has fitted means 1, 3, and 6 counts and observed within-group variances 1.5, 6.4, and 21.0 counts squared. Compare the implied dispersion values.
For NB2, calculate \((V(\mu)-\mu)/\mu^2\) in each group. The results are \((1.5-1)/1^2=0.50\), \((6.4-3)/3^2=3.4/9=0.3778\), and \((21.0-6)/6^2=15/36=0.4167\). These values are in the same general range, as might occur when the summaries are noisy observations around an NB2 variance function with a common \(\alpha\).
For NB1, calculate \(V(\mu)/\mu-1\). The results are \(1.5/1-1=0.50\), \(6.4/3-1=1.133\), and \(21.0/6-1=2.50\). These ratios rise markedly with the mean rather than staying approximately constant.
The summaries therefore look more compatible with NB2’s mean-dependent variance-to-mean ratio. The conclusion is about the variance pattern suggested by these hypothetical summaries, not proof that the NB2 likelihood or all other model assumptions are correct.
What the Comparison Can—and Cannot—Tell You
NB1 and NB2 are useful alternatives because overdispersion need not behave identically across the range of fitted means. NB1 imposes a constant multiplicative inflation of the Poisson variance: \(V_1(\mu)=(1+\alpha)\mu\). NB2 allows the inflation to increase with the mean: \(V_2(\mu)=\mu(1+\alpha\mu)\). Consequently, evidence of overdispersion at one mean does not by itself determine which structure is more suitable.
It is important to compare variability conditional on predictors or fitted means. A raw variance calculated across observations with widely different expected counts combines within-group variability with differences in the group means. In particular, the law of total variance gives \(\operatorname{Var}(Y)=E[\operatorname{Var}(Y\mid X)]+\operatorname{Var}(E[Y\mid X])\). The second term reflects variation in conditional means across \(X\), not just the count variance function. A large overall variance therefore cannot, on its own, identify NB1 or NB2.
Neither variance pattern repairs a poorly specified conditional mean. If the mean model misses important predictors or has the wrong functional form, apparent residual patterns may reflect that misspecification rather than the choice between NB1 and NB2. Likewise, matching a variance function is not evidence that the data have a particular pattern of zeros or that every aspect of a negative binomial distribution is appropriate.
Common Mistake
- Wrong reasoning: “Both models allow overdispersion, so they are interchangeable once the variance exceeds the mean.”
- Correction: They impose different changes in overdispersion across the mean range. Under NB1, \(V(\mu)/\mu=1+\alpha\) is constant; under NB2, \(V(\mu)/\mu=1+\alpha\mu\) increases with \(\mu\). Compare conditional variability across fitted means rather than checking only whether a single variance exceeds its mean.
Check Your Understanding
Use the variance functions and their ratios to answer these questions.
- For NB1 with \(\alpha=0.25\) and fitted mean \(\mu=8\), calculate the variance and variance-to-mean ratio.
- For NB2 with \(\alpha=0.10\) and fitted mean \(\mu=8\), calculate the variance and variance-to-mean ratio.
- Which specification has a constant variance-to-mean ratio as the fitted mean changes? State the ratio.
- Suppose group-specific variance-to-mean ratios tend to rise as fitted means rise. Which variance pattern does that suggest, and what other quantity could be checked for approximate constancy?
- Why can the overall sample variance across observations with different fitted means be misleading when comparing NB1 and NB2?