Why Diagnose Overdispersion?
Poisson regression is often used for a count outcome \(Y_i\) conditional on covariates \(x_i\). Its conditional mean is typically written \(\mu_i=\exp(x_i'\beta)\). The Poisson model also imposes a variance restriction: conditional on the covariates, the variance equals the mean. If the observed counts vary more than this restriction allows, standard Poisson likelihood-based uncertainty estimates can be too small. But a diagnostic suggesting extra variation does not, by itself, identify its cause.
A key distinction is between excess conditional variance and a misspecified conditional mean. A fitted mean that systematically misses different parts of the data can create large residuals, even when the actual variance around the true conditional mean is Poisson. This tutorial uses dispersion summaries, residual patterns, and a score diagnostic to assess the issue without treating any single statistic as a definitive verdict.
For the usual diagnostic formulas, assume observations are conditionally independent, counts are nonnegative integers, and fitted means \(\hat{\mu}_i\) are positive. Let \(k\) be the number of estimated regression parameters, including an intercept if present. The residual degrees of freedom are commonly approximated by \(n-k\). This approximation does not automatically account for clustering, complex sampling, or other dependence.
Pearson Dispersion and Deviance
The Pearson residual for observation \(i\) is the observed-minus-fitted count scaled by its Poisson standard deviation. Squaring and summing these residuals gives the Pearson statistic. Dividing by residual degrees of freedom produces a dispersion ratio: values appreciably above one are a warning that the fitted residual variation exceeds the Poisson benchmark. Values below one can occur, especially in small samples or with a flexible fitted model; they do not establish that the model is correct.
A second summary is the Poisson deviance. It compares the fitted model with a saturated model, which assigns a separate fitted mean to each observation. The convention \(Y_i\log(Y_i/\hat{\mu}_i)=0\) when \(Y_i=0\) makes the formula defined at zero counts. The deviance ratio \(D/(n-k)\) is another rough dispersion check. Neither ratio has a universal cutoff: their reference behavior depends on adequate mean specification, sample size, and the design.
Worked Example: Pearson and Deviance Ratios
In a hypothetical data set, six counts are \(0,1,2,3,4,6\). A fitted Poisson model gives means \(0.7,1.3,2,3,4,5\). Suppose the model has \(k=2\) estimated parameters, so \(n-k=4\). The observed and fitted totals are both 16, consistent with the intercept score equation when an intercept is fitted.
The Pearson contributions \((Y_i-\hat{\mu}_i)^2/\hat{\mu}_i\) are, in order, \(0.7\), \(0.09/1.3=0.06923\), \(0\), \(0\), \(0\), and \(1/5=0.2\). Therefore,
For the deviance, the nonzero contributions are \(1.4\) for \(Y=0,\hat{\mu}=0.7\), \(2[\log(1/1.3)+0.3]=0.0753\) for \(Y=1,\hat{\mu}=1.3\), and \(2[6\log(6/5)-1]=0.1879\) for \(Y=6,\hat{\mu}=5\). The other three contributions are zero because the fitted mean equals the count. Thus \(D\approx1.6631\) and \(\hat{\phi}_D=D/4\approx0.4158\). Neither ratio suggests excess dispersion in this small example. The small sample makes both ratios imprecise; they are diagnostics, not proof of an exactly correct Poisson variance.
Residual Patterns and the Conditional Mean
A single dispersion ratio discards information about where the discrepancies occur. Inspect Pearson residuals against fitted means and important covariates. A systematic curve, trend, or grouping of positive and negative residuals can indicate that \(\hat{\mu}_i\) is wrong for part of the covariate space. Residuals that are unusually large across otherwise well-fitted regions may instead be consistent with excess conditional variation, although these explanations can coexist.
The reason mean misspecification can inflate a dispersion diagnostic follows from a conditional variance identity. Write the true conditional mean as \(m_i=E[Y_i\mid x_i]\), while the fitted mean is \(\mu_i^*\). Then
The second term is nonnegative. Consequently, squared residuals around the wrong mean can be large even if \(\operatorname{Var}(Y_i\mid x_i)=m_i\), the Poisson variance relation at the true mean. A dispersion ratio alone cannot separate this mean-error contribution from excess variance.
Worked Example: A Residual Trend Can Mimic Overdispersion
Consider four hypothetical counts at covariate values \(x=0,0,1,1\): \(0,2,2,4\). Suppose a constant-mean Poisson model is fitted, omitting \(x\). Its maximum-likelihood fitted mean is the sample average, \(\hat{\mu}=8/4=2\). With one estimated parameter, \(n-k=3\).
The Pearson contributions are \((0-2)^2/2=2\), \((2-2)^2/2=0\), \((2-2)^2/2=0\), and \((4-2)^2/2=2\). Hence \(X_P^2=4\) and \(\hat{\phi}_P=4/3=1.333\). This value is not compelling evidence of overdispersion with only four observations. More importantly, the residuals in their stated order are \(-2,0,0,2\): their average is \(-1\) at \(x=0\) and \(1\) at \(x=1\). That pattern suggests the omitted covariate may be related to the mean. The example illustrates why the residuals should be examined before interpreting an elevated ratio as a variance problem.
For independent Poisson observations with a correctly specified mean and suitable regularity conditions, deviance and Pearson residual summaries are often compared with their residual degrees of freedom as approximate reference benchmarks. The approximation can be poor in small samples, with sparse counts, or when some fitted means are very small. Inference also needs adjustment when observations are dependent; treating clustered counts as independent can make the diagnostic and its apparent precision misleading.
A Score-Based Check Under an Explicit Alternative
A score diagnostic asks whether the likelihood would increase, to first order, by moving away from the Poisson model in a specified direction. It must specify a probability model for that alternative: a mean and variance alone do not determine a likelihood score. One common choice is the NB2 family, parameterized by conditional mean \(\mu_i\) and \(\alpha\geq 0\), with variance \(\mu_i+\alpha\mu_i^2\). At \(\alpha=0\), its limiting distribution is Poisson. Here the purpose of the family is to define the score check, not to claim that it is the only explanation for extra variation.
The resulting observation-level score at the null is \(q_i=[(Y_i-\mu_i)^2-Y_i]/2\), and its null information is \(\mu_i^2/2\). These formulas are specific to the NB2 likelihood. To see the score, expand the log likelihood near \(\alpha=0\). The gamma-function ratio contributes \(y\log(1/\alpha)+\alpha y(y-1)/2+O(\alpha^2)\); the term \(y\log(\alpha\mu)\) cancels the first part. Expanding \(-(y+1/\alpha)\log(1+\alpha\mu)\) gives \(-\mu+\alpha(\mu^2/2-y\mu)+O(\alpha^2)\). Combining this with the gamma-ratio and \(y\log(\alpha\mu)\) terms gives the coefficient \(y(y-1)/2-y\mu+\mu^2/2=[(y-\mu)^2-y]/2\). Equivalently, differentiating the full NB2 log likelihood and taking its limit at zero yields this coefficient.
Under the Poisson null, the score has expectation zero. Its variance, equal to the expected information for this scalar parameter, is \(\mu_i^2/2\). For example, this follows by taking the variance of \(q_i\) under a Poisson distribution; the Poisson central moments give \(\operatorname{Var}(q_i)=\mu_i^2/2\). The expected cross-information between \(\alpha\) and the mean parameters is zero at the null, since the covariance of \(q_i\) with the Poisson mean score \(Y_i-\mu_i\) is zero. This supports evaluating the score and information at the fitted Poisson means under the usual regularity conditions.
Because the alternative allows \(\alpha>0\), evidence for overdispersion is in the positive direction: a one-sided score test uses the upper tail of the standard normal reference distribution, with approximate p-value \(1-\Phi(Z_{\text{score}})\). A negative score is not evidence for this positive-dispersion alternative. The approximation is asymptotic, so a large score from a tiny or highly influential sample should not be treated as reliable merely because the calculation is possible.
Worked Example: Computing the NB2 Score Diagnostic
For arithmetic illustration, take eight hypothetical counts \(0,0,0,0,0,0,0,20\), with fitted Poisson means \(1,1,2,2,3,3,4,4\). Both totals equal 20. The example is intentionally extreme, and its small sample is unsuitable for relying on an asymptotic p-value.
For each zero count, \(q_i=\hat{\mu}_i^2/2\), so the first seven contributions are \(0.5,0.5,2,2,4.5,4.5,8\). For the final observation, \(q_8=[(20-4)^2-20]/2=(256-20)/2=118\). Thus \(Q=140\). The information is
The positive score points strongly in the NB2 overdispersion direction. Under a suitable large-sample approximation, its one-sided p-value would be essentially zero. But with only eight observations and a single extreme count, that tail approximation should not be trusted as calibrated inference. The calculation demonstrates the statistic, not a substitute for checking the design, mean fit, and influence of individual observations.
Putting the Diagnostics Together
Dispersion diagnostics matter because a Poisson variance restriction affects more than a descriptive fit: it underlies conventional likelihood-based uncertainty calculations. However, detecting a discrepancy is different from establishing its source. A practical assessment combines the scale summaries with the structure of the residuals and a clear account of the assumptions behind any test.
Inspect residuals against fitted means and important covariates. Systematic patterns suggest the conditional mean may need attention before attributing the discrepancy to variance.
Calculate the Pearson and deviance ratios, state the residual degrees of freedom, and note whether small counts or small fitted means make their approximations fragile.
If applying the score check, specify the NB2 alternative and its one-sided direction. Assess whether independence and large-sample approximations are plausible.
Common mistake: “The Pearson ratio is above one, so the Poisson conditional variance must be too small.” This conclusion does not follow. A misspecified conditional mean contributes the nonnegative squared-bias term \((m_i-\mu_i^*)^2\) to expected squared residuals, and dependence can also distort the usual benchmark. The correction is to describe an elevated ratio as a warning, examine residual patterns and model structure, and state the assumptions required to interpret a formal test.
Check Your Understanding
Answer each question using the definitions and assumptions stated above.
- What does a Pearson dispersion ratio appreciably above one suggest, and why is it not proof of overdispersion?
- In the conditional squared-residual identity, what does the term \((m_i-\mu_i^*)^2\) represent?
- Why must a score test for overdispersion specify an alternative probability distribution rather than only a variance formula?
- Under the NB2 score diagnostic, which direction of \(Z_{\text{score}}\) supports the alternative \(\alpha>0\)?
- Name two conditions that can make ordinary Poisson dispersion diagnostics misleading or poorly calibrated.