Should a control variable be uncorrelated with X?
A common claim in empirical research is that a control variable should not be correlated with the explanatory variable. The concern is usually multicollinearity. But if a variable affects both the explanatory variable and the outcome, leaving it out may introduce bias.
Consider the effect of education on earnings. Let X denote years of schooling, Y earnings, and β the effect of an additional year of schooling. Adding a control variable Z changes the comparison: we compare people with different levels of schooling but similar values of Z.
Why change the comparison? People from more advantaged families may receive more education and earn more because of their family resources. Without accounting for family background, the regression may attribute some of the earnings difference to education when it is actually due to family background. Such a common cause is called a confounder. The path X ← Z → Y is a back-door path: family background can create an association between education and earnings even if education has no effect on earnings. Controlling for Z blocks this path while leaving the causal path from education to earnings open. Use the buttons below to see how the paths change.
A good control variable: a confounder
- Causal path
- Open back door
- Blocked path
- Fixed
Without controlling for Z, the back-door path X ← Z → Y remains open. A common cause such as family background may create an association between X and Y and bias the estimate of β.
In this example, the association between family background and schooling is precisely one reason to control for family background. Of course, if the two are highly correlated, the regression may struggle to distinguish their effects, and the standard error may increase. That is a loss of precision due to multicollinearity. When deciding whether to include a control, the first question is whether it helps identify the causal effect, not how large its correlation with X is.
In a simple linear regression, adding a variable uncorrelated with X generally leaves the coefficient on X unchanged. If it explains some of the variation in Y, it may improve precision. Conversely, if a variable is associated with X but provides no further information about Y conditional on X, controlling for it does not remove omitted-variable bias and may reduce the variation available to estimate β.
Now suppose X affects Z, which in turn affects Y. Z is a mediator, a type of post-treatment variable. Occupation is one possible mediator in a study of the effect of college education on earnings. College can change a person's occupation, and earnings differ across occupations. Controlling for occupation excludes the part of the effect that operates through occupational choice. Even if college admission were randomized, a comparison within occupations would no longer be a direct comparison of the original randomized groups. Angrist and Pischke refer to variables that should not be controlled in this way as bad controls.
A bad control variable: a mediator
- Causal path
- Blocked path
- Fixed
Without controlling for Z, both the direct path X → Y and the mediated path X → Z → Y remain open. The total effect includes both channels.
Whether to control for a mediator depends on the research question. To estimate the total effect of education on earnings, the effect through occupation must be included. If the question concerns the direct effect of education while occupation is held fixed, controlling for occupation may make sense. But additional identifying assumptions are needed even if education is randomized. For example, if unobserved factors affect both occupation and earnings, occupation may also be a collider, and controlling for it can introduce bias. The education coefficient after adding occupation is therefore not necessarily a direct causal effect.
A collider is another type of potentially bad control: it is a common effect of the variables at either end of a path. Consider movie stardom. Suppose talent and looks are initially independent, but both increase the chance of becoming a star. Among people who have become stars, talent and looks may appear negatively correlated: someone with less talent may have needed more striking looks to succeed. The association arises from selection into the sample, not from a pre-existing relationship between talent and looks. Comparisons that condition on stardom can create a similar problem.
A bad control variable: a collider
- Causal path
- Spurious path
- Fixed
Both talent and looks affect the chance of becoming a star, but the path is blocked at the collider. Talent and looks can remain independent.
Colliders need not arise after treatment. Some variables exist before X is determined but can still be colliders on a relevant path. The timing of a variable is informative, but it cannot substitute for an analysis of the causal relationships.
Two problems are worth distinguishing. One is omitted-variable bias when a relevant common cause is unobserved. The other is bias introduced by controlling for a variable that should have been left out. Under suitable identifying assumptions, research designs such as randomized experiments, instrumental variables and difference-in-differences can address the former; the previous essay discusses instrumental variables. The latter cannot be solved simply by adding more controls. Additional controls may introduce or amplify bias.
Return to the original question: correlation with X is not a reason by itself to exclude a control, and correlation with both X and Y is not a reason by itself to include it. When comparing regressions with different controls, ask why the coefficient changes. Has confounding been reduced, has a causal path been blocked, or has a new noncausal path been opened? Understanding those relationships is what helps us judge which estimate is closer to the effect we want.