seniorLinear Regression
What is the dummy variable trap?
Updated May 16, 2026
Short answer
It occurs when dummy variables are perfectly multicollinear.
Deep explanation
Including all categories in one-hot encoding creates redundancy because one category can be inferred from others, causing rank deficiency.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro