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.

Not startedJump to quiz

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 ).

020406000.20.40.60.8R²ⱼ (how well the other predictors explain Xⱼ)VIF0.5 → 20.9 → 100.98 → 50worry zone: 5–10+
VIF explodes as a predictor becomes predictable from the others. The variance of its coefficient is inflated by this factor.

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 doesIt does not necessarily
Inflate standard errors (predictors look insignificant)Harm predictions on similar data
Make coefficients unstable, sometimes wrongly signedReduce overall
Make interpretation unreliableMean 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

, from on other predictors. Worry > 5–10.

Multicollinearity effects

Inflated SEs, unstable/wrong-sign coefficients. Predictions often fine. Fix: drop/combine, more data, ridge.

See every cheatsheet by category →

Check your understanding

Score 75% or more to master this lesson and earn XP. Answer first, then check.

Q1calculateRegressed on the other predictors, predictor has . What is its VIF?
Q2calculateA predictor's VIF is 16. By roughly how much is its coefficient's standard error inflated?
Q3interpretTwo sensors measure almost the same pollutant (). In a regression with both, one has a large p-value, though on its own it predicts the response well. Why?
Q4conceptWhy can a model with severe multicollinearity still predict well on new data from the same source?
Q5applyWhich of these is NOT a sensible way to deal with strongly correlated predictors?