What is the 'Dummy Variable Trap,' and how do you avoid it when encoding categorical features?
Role: Data Scientist
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Explain the dummy variable trap in one-hot encoding and how to avoid it in a regression with an intercept. Tests understanding of perfect multicollinearity, reference categories, coefficient interpretation, and which models are affected.