The regression that refuses to run: the dummy variable trap
Your stocks fall into four sectors. You create four 0/1 dummy variables, one per sector, and include all four plus an intercept in the regression. The software either errors out on a singular matrix or silently drops a column.
Explain why this happens and how to fix it.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Both a male and a female dummy, plus an interceptThe dummy variable trap: when collinearity is perfectFour quarterly seasonal dummies plus a constantThe same variable in two units: percent and decimalA regressor that is the sum of two othersDiagnose the sign flip and the huge standard errors
All questions →