Qm

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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. 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 →