Tutorials › Generalized Linear Models › What Overdispersion Means in a Fitted GLM

Detecting Overdispersion · Tutorial 655 of 981

What Overdispersion Means in a Fitted GLM

Learn how to tell excess conditional variation from a mean-model problem when assessing a fitted binomial or Poisson GLM.

Intermediate 10 min read

What You'll Learn

  • Define overdispersion relative to the binomial or Poisson variance benchmark
  • Distinguish a change in conditional variance from a change in conditional mean
  • Derive the extra variance created by variation in a binomial success probability
  • Interpret a dispersion multiplier without treating it as a new mean model
  • Recognize why individual binary outcomes cannot be overdispersed at a fixed mean

What Overdispersion Is Relative To

A count response can vary more from case to case than a Poisson model allows, and a grouped binary response can vary more than a binomial model allows. That comparison is the starting point for overdispersion. It is not a claim that the observed responses are “too variable” in isolation: it is a claim about variation relative to the variance the chosen model assigns at its conditional mean.

Let \(x_i\) denote the predictors for observation \(i\), and let \(\mu_i\) be the conditional mean specified by a fitted mean model. The Poisson benchmark is \(V(\mu_i)=\mu_i\). For a grouped binomial count \(Y_i\) from \(m_i\) trials, with success probability \(p_i\) and mean \(\mu_i=m_i p_i\), the benchmark is \(V(\mu_i)=m_i p_i(1-p_i)\). The meaning of “extra” variation depends on both this benchmark and the conditional mean being used.

Definition: Relative to a specified conditional mean model, overdispersion means that the response has more conditional variation than the model’s binomial or Poisson variance benchmark. In the common scalar-dispersion representation, \(\operatorname{Var}(Y_i\mid x_i)=\phi V(\mu_i)\), where \(V(\mu_i)\) is the reference variance and \(\phi>1\). This representation is a variance statement; it does not, by itself, specify a new probability distribution.

The mean and variance are separate parts of the model. A Poisson GLM, for example, specifies both a conditional mean and the Poisson variance at that mean. Overdispersion means the mean can still be correctly described while the conditional variance is greater than the Poisson benchmark. If the mean model is wrong, residuals can also look too spread out; that is a different problem, not overdispersion as defined relative to a correct conditional mean.

Two Reference Variances

For a Poisson response, if \(Y_i\mid x_i\sim\operatorname{Poisson}(\mu_i)\), then \(\operatorname{Var}(Y_i\mid x_i)=\mu_i\). For a grouped binomial response, if \(Y_i\mid x_i\sim\operatorname{Binomial}(m_i,p_i)\), then \(\operatorname{Var}(Y_i\mid x_i)=m_i p_i(1-p_i)\). These formulas are the benchmarks, not general laws that every count or success count must obey.

A dispersion multiplier is often useful as a compact description: \(\phi=1\) matches the benchmark, \(\phi>1\) indicates greater variance, and \(\phi<1\) indicates less. A single multiplier is an approximation if the amount of extra variation differs across observations or does not follow the reference variance’s pattern. Thus “overdispersed” should always be understood as relative to a stated mean and variance benchmark.

The binomial case has an important boundary. For one binary response \(Y_i\in\{0,1\}\), its conditional mean \(p_i\) determines its conditional variance exactly: \(\operatorname{Var}(Y_i\mid x_i)=p_i(1-p_i)\). A binary response cannot have a larger variance at the same conditional mean while remaining binary. Extra variation relative to a binomial benchmark becomes possible for grouped counts, or when the assumed conditional structure is inadequate.

Worked Example: A Poisson Mean With Extra Variance

Suppose the conditional mean model assigns a count a mean of \(4\), and the response distribution at that predictor value is negative binomial with \(r=4\) and success probability \(q=1/2\). Use the convention that this negative-binomial variable counts failures before \(r\) successes. Its mean and variance are \[ E[Y]=\frac{r(1-q)}{q}, \qquad \operatorname{Var}(Y)=\frac{r(1-q)}{q^2}. \]

Substituting the values gives \(E[Y]=4(1/2)/(1/2)=4\), so the mean agrees with the fitted Poisson mean. The variance is \(4(1/2)/(1/2)^2=2/(1/4)=8\). The Poisson benchmark at mean \(4\) is \(4\), so the conditional variance is twice the benchmark: \(\phi=8/4=2\) at this mean.

This is an example of excess conditional variation without a change in the stated mean. It does not imply that every response with mean \(4\) and variance \(8\) must be negative binomial; the calculation establishes the property for this specified distribution.

Variation in Success Probabilities Can Inflate Binomial Variance

One mechanism for extra variation in grouped binomial data is that the success probability varies across groups, even when the groups share the same predictors in the fitted mean model. The following identity makes the distinction precise.

Theorem: Let \(P\) be a random success probability with \(E[P]=\bar p\) and finite variance. Conditional on \(P\), let \(Y\mid P\sim\operatorname{Binomial}(m,P)\), for fixed positive integer \(m\). Then \[ E[Y]=m\bar p,\qquad \operatorname{Var}(Y)=m\bar p(1-\bar p)+m(m-1)\operatorname{Var}(P). \] Consequently, if \(m>1\) and \(\operatorname{Var}(P)>0\), the variance exceeds the binomial benchmark at the same marginal mean.

Proof. By iterated expectation, \(E[Y]=E[E[Y\mid P]]=E[mP]=m\bar p\). By the law of total variance, \[ \operatorname{Var}(Y)=E[\operatorname{Var}(Y\mid P)]+\operatorname{Var}(E[Y\mid P]). \] Given \(P\), the binomial variance is \(mP(1-P)\) and the conditional mean is \(mP\). Therefore \[ \operatorname{Var}(Y)=mE[P-P^2]+m^2\operatorname{Var}(P). \] Since \(E[P^2]=\bar p^2+\operatorname{Var}(P)\), this becomes \[ m\bar p-m\bar p^2-m\operatorname{Var}(P)+m^2\operatorname{Var}(P) =m\bar p(1-\bar p)+m(m-1)\operatorname{Var}(P). \] The second term is positive when \(m>1\) and \(\operatorname{Var}(P)>0\), proving the claim. \(\square\)

Worked Example: A Grouped Binomial Count With the Same Mean

Take groups of \(m=10\) trials. Suppose each group has a latent success probability \(P\) that equals \(0.2\) or \(0.6\), each with probability \(1/2\), and conditional on \(P\), the count is \(\operatorname{Binomial}(10,P)\).

The average probability is \(\bar p=(0.2+0.6)/2=0.4\). The marginal mean count is therefore \(10(0.4)=4\). The reference binomial variance at that mean is \(10(0.4)(0.6)=2.4\).

The variance of \(P\) is \[ \operatorname{Var}(P)=\frac{(0.2-0.4)^2+(0.6-0.4)^2}{2} =\frac{0.04+0.04}{2}=0.04. \] The theorem gives \[ \operatorname{Var}(Y)=2.4+10(9)(0.04)=2.4+3.6=6. \] Thus the mean remains \(4\), while the variance is \(6\), rather than the binomial benchmark \(2.4\). Here the variance ratio is \(6/2.4=2.5\). The extra variation comes from the variation in \(P\) across groups, not from changing the marginal mean.

Why a Wrong Mean Can Look Like Extra Variation

Overdispersion is defined relative to a conditional mean model. If that model assigns the wrong mean to some predictor values, deviations around its fitted means include both ordinary response variation and systematic mean error. The following identity shows exactly how the two enter.

Result: Let the true conditional mean be \(\mu(x)=E[Y\mid X=x]\), with finite conditional variance, and let \(a(x)\) be any proposed mean value. Then \[ E[(Y-a(x))^2\mid X=x] =\operatorname{Var}(Y\mid X=x)+(\mu(x)-a(x))^2. \]

Proof. Write \(Y-a(x)=(Y-\mu(x))+(\mu(x)-a(x))\). Squaring and taking the conditional expectation gives \[ E[(Y-a(x))^2\mid X=x] =E[(Y-\mu(x))^2\mid X=x] +2(\mu(x)-a(x))E[Y-\mu(x)\mid X=x] +(\mu(x)-a(x))^2. \] The middle term is zero because \(E[Y-\mu(x)\mid X=x]=0\), and the first term is the conditional variance. This proves the identity. \(\square\)

The squared mean error is nonnegative. A large average squared residual around an inadequate mean function can therefore occur even if the conditional variance at each predictor value exactly matches the Poisson or binomial benchmark. This identity concerns deviations around a proposed mean value; it does not say that every residual-based diagnostic has this simple expectation after estimating model parameters.

Worked Example: A Poisson Mean Model That Pools Two Groups

Suppose two equally common groups have true Poisson means \(2\) and \(8\), respectively. The conditional variance equals the conditional mean in each group, so the variance benchmark is satisfied within each group. Now suppose a proposed mean model assigns both groups the pooled mean \(a=5\), which is the average of \(2\) and \(8\).

For the group with mean \(2\), the expected squared deviation from \(5\) is \[ \operatorname{Var}(Y\mid X)+(\mu-a)^2=2+(2-5)^2=2+9=11. \] For the group with mean \(8\), it is \[ 8+(8-5)^2=8+9=17. \] Averaging over the two equally common groups gives \((11+17)/2=14\). The pooled Poisson benchmark at mean \(5\) is \(5\), so deviations around the pooled fitted mean are much larger than that benchmark.

However, neither group has excess conditional variance: each has variance equal to its own mean. The apparent excess around \(5\) comes from fitting one mean where two different conditional means are needed. It is therefore a mean-structure problem, not evidence that either group’s response varies more than its correct Poisson benchmark.

Common Mistakes and Practical Meaning

A dispersion statement is meaningful only when its reference is explicit. In a fitted GLM, the intended comparison is usually between conditional variation and the binomial or Poisson variance evaluated at the fitted mean, under the assumption that this mean adequately describes the response given its predictors. Estimation uncertainty in the fitted coefficients is not itself the definition of overdispersion.

  • Wrong reasoning: “The residuals are large, so the response is overdispersed.” Correction: Large residuals can reflect a wrong conditional mean, as the two-group example shows. Overdispersion concerns variation beyond the benchmark at an adequate conditional mean.
  • Wrong reasoning: “A dispersion multiplier changes the fitted mean.” Correction: A multiplier \(\phi\) in \(\operatorname{Var}(Y_i\mid x_i)=\phi V(\mu_i)\) describes variance relative to the benchmark. It does not alter \(\mu_i\) by definition.
  • Wrong reasoning: “Any binary response can have extra binomial variance at the same probability.” Correction: For a single binary outcome with conditional mean \(p\), the variance must be \(p(1-p)\). Extra binomial variation is relevant to grouped counts or to structures beyond a single Bernoulli model.

The distinction matters because a variance adjustment cannot repair a misspecified mean function. Conversely, changing the mean model is not automatically a solution when conditional variation truly exceeds its benchmark. A sound interpretation first states the mean being conditioned on, then names the binomial or Poisson reference variance, and only then describes variation relative to it.

Check Your Understanding

Answer each question by identifying both the conditional mean and the variance benchmark involved.

  1. A Poisson mean model assigns a count mean \(6\), but its conditional variance is \(9\). What is the variance ratio, and what does it say?
  2. For grouped binomial data with \(m=8\) and \(p=0.25\), calculate the binomial variance benchmark.
  3. In the latent-probability theorem, what happens to the extra variance term when \(m=1\), and why is that consistent with the binary-response boundary?
  4. Two groups have correct Poisson variances but different means, while a fitted model assigns them one pooled mean. Explain why residuals around that pooled mean may suggest excess variation.
  5. Does specifying \(\phi>1\) by itself determine a full probability distribution? Explain.
Clinical Biostats