Back to Classic ML Mind Map
中文·English
📊 Classic MLID: vif-multicollinearity

VIF Multicollinearity

VIF 多重共线性
🎯Core Definition
multicollinearity means features are nearly linearly dependent, making XTXX^TX close to singular. VIF (Variance Inflation Factor) diagnoses it quantitatively: regress xjx_j on the other p1p-1 features to obtain Rj2R_j^2, then VIFj=11Rj2VIF_j = \frac{1}{1 - R_j^2}. As Rj21R_j^2 \to 1, VIF blows up; rule of thumb: VIFj>10VIF_j > 10 (i.e. Rj2>0.9R_j^2 > 0.9) is severe, 5105 \sim 10 moderate.
💡Use Cases
a routine pre-modeling diagnostic, especially for interpretable models (tree models are naturally immune); follow-up questions include deriving the link between VIFjVIF_j and coefficient variance, distinguishing VIF from pairwise correlation / condition number, and why predictions can still be fine under collinearity.
Key Problems Solved
collinearity inflates coefficient variance by exactly VIFjVIF_j — in OLS Var(w^j)=σ2(1Rj2)i(xijxˉj)2Var(\hat{w}_j) = \frac{\sigma^2}{(1 - R_j^2)\sum_i (x_{ij} - \bar{x}_j)^2}, so a small 1Rj21-R_j^2 explodes the variance, producing sign flips, huge standard errors and broken t-tests, while R2R^2 and predictions barely change — a prediction-only view misses it. Fixes: drop high-VIF features, PCA / factor analysis, ridge regression (adding λI\lambda I forces full rank), or collect more orthogonal data.
🎯5 High-Frequency Exam Points
1
Derive VIF: why VIFj=11Rj2VIF_j = \frac{1}{1-R_j^2}? Where does Rj2R_j^2 come from, and what Rj2R_j^2 does the threshold 10 correspond to?
2
Derive Var(w^j)=σ2(1Rj2)i(xijxˉj)2Var(\hat{w}_j) = \frac{\sigma^2}{(1-R_j^2)\sum_i (x_{ij}-\bar{x}_j)^2} and explain how collinearity inflates variance.
3
Why do predictions stay good under multicollinearity? What exactly does it hurt (coefficients, standard errors, t-tests, feature importance)?
4
Compare remedies for collinearity: dropping features vs PCA vs ridge regression — cost and suitability of each.
5
Relationship between VIF, pairwise feature correlation and the condition number κ(X)=λmaxλmin\kappa(X) = \frac{\lambda_{max}}{\lambda_{min}}; why are tree models immune?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "VIF Multicollinearity"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardLinear Regression OLSNext CardLogistic Regression

🔗 More Classic ML Knowledge Cards

AdaBoost DerivationBagging & Random ForestBaum-Welch (HMM EM)GBDT Negative Gradient