Lesson 3.9 · 9 min read · about 50 min to master at a very slow pace
Multicollinearity and VIF
When predictors carry nearly the same information, coefficients become unstable and standard errors explode, even though predictions can stay fine. The variance inflation factor, how to compute it, and what to do.
The problem
Recall . If is nearly singular, its inverse has huge entries, so coefficient variances explode. Two causes:
- Multicollinearity: a predictor is (almost) a linear combination of others, e.g. two sensors measuring nearly the same pollutant, or height in cm and in inches.
- Over-parameterisation: the number of predictors is close to, equal to or larger than .
Two people carrying one sofa
If two predictors carry nearly the same information, the model can't tell which deserves the credit. Their combined effect is well determined, so predictions are fine, but the split between them is arbitrary and flips from sample to sample.
In a simulation with true , uncorrelated predictors give estimates clustered around 2; predictors correlated at 0.97 give estimates scattered widely, even though the signal never changed.
Variance inflation factor
VIF
is the from regressing predictor on all the other predictors (not on ).
Rule of thumb: worry above 5–10. A related diagnostic is the condition number of : huge values mean near-singularity. VIF is a diagnostic, not a decision rule.
Worked example
A predictor regressed on the others has . : its coefficient's variance is 20 times what it would be with uncorrelated predictors, so its SE is times larger.
What it does and doesn't do
| Multicollinearity does | It does not necessarily |
|---|---|
| Inflate standard errors (predictors look insignificant) | Harm predictions on similar data |
| Make coefficients unstable, sometimes wrongly signed | Reduce overall |
| Make interpretation unreliable | Mean the predictors are irrelevant |
Remedies: drop or combine redundant predictors; collect more spread-out data; or regularise. Ridge regression (5.4) shares the credit between correlated predictors instead of giving them huge opposite-sign coefficients.
How it's asked
"Two sensors correlate at 0.98. One has a large p-value although it relates to the response on its own. Why?" Given the other sensor, it adds little unique information, so its coefficient is poorly determined (inflated SE, high VIF). Insignificance here isn't irrelevance.
Cheatsheet
VIF
Multicollinearity effects
Check your understanding
Score 75% or more to master this lesson and earn XP. Answer first, then check.