Multicollinearity › Perfect Multicollinearity: The Extreme Case
Machine Learning from ScratchAll chapters Multicollinearity › Perfect Multicollinearity: The Extreme CaseOne section · Sections in this chapter3 / 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
Perfect multicollinearity occurs when one variable is a perfect linear combination of others. This is the most extreme form of multicollinearity, where the regression matrix becomes singular and cannot find unique solutions. The system cannot distinguish between variables that provide identical information.
In our health example, BMI is perfectly calculated from Height and Weight using the formula: BMI = weight/(height/100)². This creates perfect multicollinearity because BMI contains no information beyond what Height and Weight already provide.
Let's examine this extreme case:


Perfect Multicollinearity Analysis:
========================================
Correlation Matrix:
Height Weight BMI Age
Height 1.000 NaN -0.994 0.180
Weight NaN NaN NaN NaN
BMI -0.994 NaN 1.000 -0.187
Age 0.180 NaN -0.187 1.000
VIF values:
Height: 90.9
Weight: 75175.8
BMI: 91.2
Age: 1.0
Note: Perfect multicollinearity makes regression analysis impossible
because X2 = 2*X1 + 3, creating a perfect linear relationship.