Why is \( D_A + D_B + D_C = 1 \) a Problem?
The problem with having \( D_A + D_B + D_C = 1 \) in a regression model is that it
introduces **perfect multicollinearity**, which violates a key assumption of ordinary least
squares (OLS) regression: that the independent variables must not be linearly dependent.
Let me explain this step by step.
What Does \( D_A + D_B + D_C = 1 \) Mean?
This equation implies that the three dummy variables \( D_A \), \( D_B \), and \( D_C \) are
perfectly dependent on one another. If any two dummy variables are known, the third can
be determined using:
D_C = 1 - (D_A + D_B)
Why is This a Problem?
1. Perfect Multicollinearity:
- When one variable can be perfectly predicted from others, it creates a linear dependence
among the independent variables.
- In matrix terms, this makes the design matrix \(X\) (which includes the dummy variables
and other predictors) **singular**, meaning it cannot be inverted.
The OLS estimator:
\(\hat{\beta} = (X'X)^{-1} X'Y\)
cannot be computed because \((X'X)\) is non-invertible.
2. No Unique Coefficients:
- Multicollinearity prevents the model from distinguishing the separate effects of each
dummy variable.
- For instance, if \( D_A \), \( D_B \), and \( D_C \) are included, the model cannot uniquely
assign coefficients to \( \beta_A \), \( \beta_B \), and \( \beta_C \), because changes in one
dummy variable are always mirrored by the others.
Practical Consequences
- The regression software or algorithm will fail to run or produce coefficients with infinite
standard errors.
- The results will not be interpretable because the regression cannot identify the unique
effect of each category.
Solution: Drop One Dummy Variable
To resolve this issue:
- Use only \( k-1 \) dummy variables for a categorical variable with \( k \) categories.
- The omitted category becomes the **reference category**, and the intercept in the
regression represents the effect of the reference category.
Example:
For \( D_A + D_B + D_C = 1 \), drop \( D_C \):
Y = \beta_0 + \beta_A D_A + \beta_B D_B + \epsilon
Here:
- \( \beta_0 \): The mean of \( Y \) for category \( C \) (the reference category).
- \( \beta_A \): The difference in \( Y \) between category \( A \) and \( C \).
- \( \beta_B \): The difference in \( Y \) between category \( B \) and \( C \).
Why Does Dropping a Dummy Solve the Problem?
When you omit one dummy variable:
- You no longer have the equation \( D_A + D_B + D_C = 1 \) in the model.
- The included dummy variables \( D_A \) and \( D_B \) are independent of each other,
making the design matrix \( X \) full rank (invertible).
Conclusion
The equation \( D_A + D_B + D_C = 1 \) creates perfect multicollinearity, preventing the
regression model from estimating coefficients. To avoid this, always use \( k-1 \) dummy
variables for a categorical variable with \( k \) levels, treating one category as the reference.
This ensures the model is statistically valid and the coefficients are interpretable.