Why an Omitted Predictor Can Leave a Residual Signature
A fitted generalized linear model can show extra residual variation even when the response follows the assumed distribution after conditioning on the predictors that actually determine its mean. One explanation is that a relevant predictor was left out. If that predictor varies among observations with the same included covariates, their response means differ even though the fitted model assigns them a common mean. If its distribution also changes across included-covariate groups, the omission can distort the fitted mean pattern as well as increase residual variation.
The key comparison is conditional. Suppose \(X\) denotes the included covariates and \(Z\) an omitted predictor. The reduced model is assessed against the response distribution given \(X\), while the more detailed response mechanism depends on both \(X\) and \(Z\). The calculations below show how to compare these two levels of conditioning. They do not, by themselves, establish that omission is the cause of an observed diagnostic signal.
The Conditional-Variance Calculation
Assume \(Y\) has a finite second moment and that, given \(X\) and \(Z\), its mean and variance are \(m(X,Z)=E[Y\mid X,Z]\) and \(v(X,Z)=\operatorname{Var}(Y\mid X,Z)\). The reduced conditional mean is \(\bar m(X)=E[m(X,Z)\mid X]\). The variance given \(X\) separates into variation remaining within \(X,Z\) strata and variation in the stratum means.
Write \(Y-E[Y\mid X]=(Y-m(X,Z))+(m(X,Z)-\bar m(X))\).
The squared expression has two square terms and a cross-product. Given \(X,Z\), the conditional expectation of \(Y-m(X,Z)\) is zero.
The first square contributes \(E[\operatorname{Var}(Y\mid X,Z)\mid X]\); the second contributes \(\operatorname{Var}(m(X,Z)\mid X)\); the cross-product contributes zero.
For completeness, the cross-product vanishes because \(m(X,Z)-\bar m(X)\) is determined by \(X,Z\), and \(E[Y-m(X,Z)\mid X,Z]=0\). Thus its conditional expectation given \(X\) is \(E[(m(X,Z)-\bar m(X))E[Y-m(X,Z)\mid X,Z]\mid X]=0\). The two remaining terms are exactly the two terms in the theorem. \(\square\)
The theorem does not say that every reduced GLM must show overdispersion. It identifies a potential contribution: variation of the omitted-predictor-specific means within \(X\). Whether the reduced model’s variance benchmark is exceeded depends on the response family and on how its variance is evaluated at the reduced mean.
Poisson and Binomial Consequences
For a Poisson response, suppose \(Y\mid X,Z\) is Poisson with mean \(\mu(X,Z)\). Its conditional variance is also \(\mu(X,Z)\). Applying the theorem gives \(E[Y\mid X]=\bar\mu(X)=E[\mu(X,Z)\mid X]\) and \(\operatorname{Var}(Y\mid X)=\bar\mu(X)+\operatorname{Var}(\mu(X,Z)\mid X)\). The first term is the Poisson variance at the reduced mean; the second is the excess caused by variation in stratum means.
For a binomial response with a fixed number \(n\) of trials, suppose \(Y\mid X,Z\) is Binomial\((n,p(X,Z))\). Put \(\bar p(X)=E[p(X,Z)\mid X]\). The mean is \(n\bar p(X)\), and the variance decomposition yields \[ \operatorname{Var}(Y\mid X) =nE[p(1-p)\mid X]+n^2\operatorname{Var}(p\mid X). \] Because \(E[p(1-p)\mid X]=\bar p(1-\bar p)-\operatorname{Var}(p\mid X)\), this becomes \[ \operatorname{Var}(Y\mid X) =n\bar p(1-\bar p)+n(n-1)\operatorname{Var}(p\mid X). \] The added term is nonnegative; for \(n=1\), it is zero. Thus this particular binomial comparison yields an excess over the Binomial\((n,\bar p)\) variance when \(n>1\) and the success probability varies with \(Z\) within \(X\) strata.
Worked Examples
Worked Example: Omitted Predictor in a Poisson Model
Let \(X\) and \(Z\) each be binary. Given \(X,Z\), suppose \(Y\) is Poisson with means \(2,8,4,16\) for \((X,Z)=(0,0),(0,1),(1,0),(1,1)\), respectively. Suppose \(P(Z=1\mid X=0)=0.2\) and \(P(Z=1\mid X=1)=0.7\).
For \(X=0\), the reduced mean is \(0.8(2)+0.2(8)=3.2\). The variance of the stratum means is \(0.8(2-3.2)^2+0.2(8-3.2)^2=0.8(1.44)+0.2(23.04)=5.76\). Therefore, \(\operatorname{Var}(Y\mid X=0)=3.2+5.76=8.96\), rather than the reduced Poisson benchmark \(3.2\).
For \(X=1\), the reduced mean is \(0.3(4)+0.7(16)=12.4\). The variance of the means is \(0.3(4-12.4)^2+0.7(16-12.4)^2=0.3(70.56)+0.7(12.96)=30.24\). Hence \(\operatorname{Var}(Y\mid X=1)=12.4+30.24=42.64\), compared with the Poisson benchmark \(12.4\).
The composition of \(Z\) changes substantially with \(X\). The reduced mean increases from \(3.2\) to \(12.4\), a ratio of \(3.875\), although at either fixed value of \(Z\) the conditional mean doubles when \(X\) changes from 0 to 1. A reduced model may therefore have both extra within-\(X\) variation and a mean relationship shaped by the changing mix of \(Z\).
Worked Example: Extra-Binomial Variance Within a Stratum
Within one \(X\) stratum, suppose each observation has \(n=10\) trials and \(P(Z=1\mid X)=P(Z=0\mid X)=0.5\). Given \(Z=0\), let the success probability be \(0.1\); given \(Z=1\), let it be \(0.5\).
The average success probability is \(\bar p=0.5(0.1)+0.5(0.5)=0.3\), so the reduced binomial mean is \(10(0.3)=3\). The variance of the probabilities is \(0.5(0.1-0.3)^2+0.5(0.5-0.3)^2=0.04\).
The reduced Binomial\((10,0.3)\) variance is \(10(0.3)(0.7)=2.1\). The additional term is \(10(9)(0.04)=3.6\), so the actual conditional variance is \(2.1+3.6=5.7\). Equivalently, averaging the within-stratum variances gives \(0.5[10(0.1)(0.9)]+0.5[10(0.5)(0.5)]=0.45+1.25=1.7\); adding \(10^2(0.04)=4\) gives \(5.7\). Both calculations agree.
The added variation arises because observations assigned the same reduced probability \(0.3\) actually come from two probability strata. If each observation had just one Bernoulli trial, the binomial variance formula’s added term would be zero; the calculation here concerns a binomial response with ten trials.
Worked Example: Reading Residuals by Omitted-Predictor Stratum
Return to the Poisson means in the first example. Suppose a reduced model represents the two \(X\)-specific marginal means exactly, predicting \(3.2\) when \(X=0\) and \(12.4\) when \(X=1\). The conditional mean residual, observed minus fitted, in each \(X,Z\) stratum is as follows.
At \(X=0\), the residual mean is \(2-3.2=-1.2\) for \(Z=0\), and \(8-3.2=4.8\) for \(Z=1\). At \(X=1\), it is \(4-12.4=-8.4\) for \(Z=0\), and \(16-12.4=3.6\) for \(Z=1\). Each pair averages to zero using its stated \(Z\) proportions: \(0.8(-1.2)+0.2(4.8)=0\), and \(0.3(-8.4)+0.7(3.6)=0\).
For a Pearson-style scaling by the square root of the reduced fitted mean, the corresponding conditional residual means are approximately \(-1.2/\sqrt{3.2}=-0.67\) and \(4.8/\sqrt{3.2}=2.68\) at \(X=0\); at \(X=1\) they are \(-8.4/\sqrt{12.4}=-2.39\) and \(3.6/\sqrt{12.4}=1.02\). These are stratum-level expected patterns, not the exact residuals of any individual observation.
A plot or table stratifying residuals by \(Z\) within each \(X\) category could expose the opposing patterns hidden by the zero average within each \(X\) group. In real data, residuals fluctuate, so the evidence would be noisy; the example explains what pattern to look for, not a guarantee that every sample will display it clearly.
Using Stratified Residual Checks
When a plausible predictor is available but omitted from the fitted model, inspect residuals across its levels while controlling, as far as the data allow, for the included predictors. Otherwise, a residual pattern across \(Z\) might simply reflect a different distribution of \(X\) among the \(Z\) groups. Useful displays include residuals against \(Z\) with separate symbols or panels for important \(X\) groups, and tables of residual summaries within joint \(X,Z\) strata.
Look for systematic differences in residual location, spread, or both. Location patterns suggest that the reduced mean does not capture the response mean across the strata. A spread pattern may be consistent with the conditional-mean variation derived above. Check that fitted means are being compared with observations on an appropriate scale, and remember that a residual’s realized value includes sampling noise.
This is a diagnostic argument, not a causal conclusion. Residual patterns can also reflect an incorrectly specified mean function, influential observations, or other departures from the working model. If \(Z\) is unmeasured, a residual plot alone cannot identify it as the missing cause. If \(Z\) is measured, fitting or evaluating an expanded model can help assess whether its inclusion is substantively defensible and improves the conditional description.
Common Pitfall
Wrong reasoning: “The reduced model’s average residual within each \(X\) group is near zero, so no omitted predictor can be responsible for extra variation.” This confuses a group average with the pattern within the group. In the Poisson example, positive and negative conditional residual means cancel within each \(X\) group, even though the variance exceeds the Poisson benchmark.
Correction: A zero average residual does not imply that every subgroup has the same response mean. Examine residuals within meaningful \(Z\) strata, preferably also within levels or ranges of \(X\). Conversely, a visible subgroup pattern is evidence to investigate, not proof that the omitted predictor is the sole source of extra variation.
Check Your Understanding
Use the conditional-variance argument and distinguish a mathematical consequence from a diagnostic conclusion.
- State the two terms in the conditional-variance decomposition given \(X\), and explain which term represents variation in stratum means.
- For a Poisson response with conditional mean \(\mu(X,Z)\), what is the reduced conditional variance, and when does it equal the reduced conditional mean?
- Why can a reduced model have near-zero average residuals within an \(X\) group while residuals still show a pattern across \(Z\)?
- For a binomial response with \(n=1\), what does the formula for the added variance term imply?
- Why should residuals be examined across \(Z\) within, or adjusted for, relevant levels of \(X\)?
- Does a residual pattern by a measured omitted predictor prove that omission caused all observed extra variation? Explain.