The Ghost Feature: When a Useless Predictor Inflates OLS Variance
You have a response and a design matrix with , full column rank. You fit OLS and get coefficient estimates .
Now you add a new predictor column that is completely independent of (i.e., carries zero signal: the true coefficient of is 0). You refit OLS on the augmented design .
Question: Show that the residual sum of squares (RSS) of the augmented model satisfies
with equality if and only if is orthogonal to the residual vector .
Then explain the following seeming paradox: adding a useless predictor decreases RSS (or keeps it the same), yet it increases the unbiased estimate of . How can removing signal make our noise estimate go up?
Hint for the paradox: think about what the unbiased estimator of looks like in each model.
Answer: The Ghost Feature: Useless Predictor Inflates OLS Variance
Key Idea / Intuition
Adding any new predictor to OLS can only decrease RSS โ the model now has a strictly larger column space to project onto, so the residual vector can only get shorter (or stay the same). Yet the unbiased variance estimator divides by the degrees of freedom, which drops by 1 each time we add a predictor. When the new predictor is useless, the decrease in RSS is tiny (it only absorbs noise), but we pay a full degree of freedom โ so the denominator shrinks while the numerator barely budges, inflating the estimate. This is the statistical cost of overfitting: we spend a degree of freedom to fit noise.
Formal Proof / Solution
Part 1:
Let be the hat matrix for the original model, and the residual vector, so .
The augmented model has column space , which satisfies
OLS minimizes over all , i.e., it projects onto . Since projecting onto a larger subspace can only reduce (or maintain) the distance to :
Equality condition. Equality holds iff , i.e., adding does not move the projection. This happens iff lies in or is orthogonal to (the component of outside ). More precisely, the augmented projection adds to a component along the part of orthogonal to . Let be the residual of regressing on . The extra reduction in RSS is
(by the formula for adding one predictor to OLS). This is zero iff , i.e., iff (since ).
Part 2: The Paradox โ RSS Falls but Rises
The unbiased estimator of in each model is:
When is a pure noise predictor independent of :
- The extra reduction is small โ it is the squared correlation of with the residual, which is random noise of order .
- The denominator drops from to , a fixed decrement of 1.
Concretely, one can show that if is genuinely orthogonal to the true signal:
So dividing by the correct degrees of freedom restores unbiasedness in each case. But the augmented model uses up one degree of freedom fitting noise, leaving fewer to estimate with, hence higher variance in the estimate and a numerically inflated value when the noise happens to fit in the "right" direction.
One-line summary of the paradox:
RSS measures total unexplained variation; degrees of freedom measure how many independent errors remain. Adding a noise variable steals one degree of freedom while giving back almost no reduction in RSS โ so the ratio goes up, not down.
This is precisely why adjusted and information criteria (AIC, BIC) penalize model complexity: raw RSS always decreases with more predictors, but the true noise floor estimate worsens.
Source: The Elements of Statistical Learning, Hastie, Tibshirani, Friedman (2nd ed.) โ Ch. 3