Multicollinearity › Detecting Multicollinearity: Correlation and VIF Analysis
Machine Learning from ScratchAll chapters Multicollinearity › Detecting Multicollinearity: Correlation and VIF AnalysisOne section · Sections in this chapter2 / 13 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The first step in understanding multicollinearity is learning to detect it. Multicollinearity reveals itself through the correlation matrix of predictor variables, which shows how strongly each pair of variables is related. The variance inflation factor (VIF) is our primary diagnostic tool for measuring multicollinearity severity.
The VIF is calculated using the coefficient of determination (R²):
Here, represents how well variable can be predicted by other variables. When a variable can be perfectly predicted by others (R² = 1), the VIF becomes infinite, signaling perfect multicollinearity.
Understanding VIF values requires practical guidelines:
- VIF < 5: Minimal multicollinearity (acceptable)
- VIF 5-10: Moderate multicollinearity (warrants attention)
- VIF > 10: High multicollinearity (requires action)
Let's see these concepts in action with a health dataset that demonstrates strong multicollinearity:


Multicollinearity Analysis Results: ======================================== Maximum correlation: 0.416 Minimum correlation: -0.985 Maximum VIF: 14198.9 Variables with high VIF (>10): 6 Variables with moderate VIF (5-10): 0 Variables with low VIF (<5): 1