In observational research, a researcher who wants to estimate the causal effect of a treatment X on an outcome Y usually “controls for” other variables by putting them into a regression or by stratifying on them. But more control is not always better. Some variables must be controlled; otherwise confounding makes correlation look like causation. Other variables, once controlled, create associations that did not exist before, or cut away the very effect being estimated. Directed acyclic graphs (DAGs), combined with the back-door criterion, give a set of rules for making this call. First, draw the causal arrows among the variables. Then ask which paths between X and Y carry spurious association, and whether controlling a given variable closes those paths or opens them.
A directed acyclic graph consists of nodes and directed arrows. Each letter stands for a variable, and X → Y means that X may directly affect Y. “Acyclic” means that following the arrows never leads back to the starting point: no variable can be a direct or indirect cause of itself. A DAG encodes only qualitative causal structure. It requires no functional form and no assumption that variables follow a particular distribution. In this article, “controlling for”, “adjusting for” and “conditioning on” a variable mean the same thing. This can be done by adding the variable to a regression, by stratifying on it, or by analysing only the part of the sample where it takes a certain value. For example, using data only on hospitalised patients or only on army recruits conditions on the variable “hospitalised or not” or “enlisted or not”.
Three basic structures
Any path connecting X and Y can be broken down into three local structures. Deciding whether to control a variable means checking which kind of structure has that variable in the middle, path by path.
- Chain (mediation) X → M → Y: M passes the influence of X on to Y. If M is not controlled, the path is open; controlling M cuts it.
- Fork (common cause) X ← Z → Y: Z affects both X and Y and creates a non-causal association between them. If Z is not controlled, the path is open; controlling Z cuts it.
- Collider (common effect) X → C ← Y: the two arrowheads “collide” at C. By default this path transmits no association. Once C, or any descendant of C, is controlled, the path is opened.
The rules for the first two structures match intuition. The third works the other way round, and most cases of well-meant control producing bad results come from it. The DAGitty tutorial on d-separation explains colliders through “explaining away”. Two independent causes jointly produce some outcome. Once we know the outcome has occurred, learning that one cause is present makes the other cause less likely, so the two causes become associated under that condition.

Diagram comparing a mediator and a confounder. Top: a mediator, which lies on the causal chain. Bottom: a confounder, which affects both variables and gives a false impression of causation. Image: Cmglee, Wikimedia Commons, CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0).
When is a path blocked?
Pearl summarises these local rules in the definition of d-separation. A path is blocked by a set of variables S if either of two conditions holds. First, the path contains a non-collider (the middle node of a chain or a fork) that is in S. Second, the path contains a collider that is not in S and has no descendant in S. If S blocks every path between X and Y, S is said to d-separate X and Y, and the model then implies that X and Y are conditionally independent given S.
A “path” here ignores the direction of the arrows: any sequence of adjacent nodes joined by edges counts. Direction matters only when we decide whether the path is blocked, by looking at how the arrows meet at each intermediate node. One blocking point is enough to close an entire path, so controlling a single suitable node on a path is sufficient. Conversely, a path that contains a collider starts out closed. If the collider is controlled, another non-collider on the same path must also be controlled to close it again.
The back-door criterion
Paths connecting X and Y fall into two groups. A path that starts at X and follows the arrows all the way to Y (X → … → Y) is a causal path. It carries the effect we want to estimate. All other paths are non-causal. Among them, a path that begins with an arrow pointing into X (X ← …) is called a back-door path. It enters X through the “back door”, which means that causes of X, or factors associated with those causes, are also connected to Y.
Pearl introduced the back-door criterion in 1993. As stated in his 2009 overview, a set of variables S is “admissible”, that is, a sufficient adjustment set for estimating the effect of X on Y, if it meets both of the following conditions:
- No element of S is a descendant of X: S contains no variable affected by X and no variable downstream of such variables;
- S blocks every back-door path between X and Y.
Intuitively, the second condition shuts every channel that carries spurious association. The first ensures that the adjustment itself leaves the causal channel alone and does not quietly open new channels through descendants of X. When both hold, comparing treated and untreated units within each stratum of S gives the causal effect in that stratum. Averaging these effects over the distribution of S gives the overall effect, which is the back-door adjustment formula. The Wikipedia article on confounding puts it the same way. In DAG terms, confounding means that an open back-door path exists between X and Y. A set of variables that blocks all back-door paths is a sufficient adjustment set, and if removing any one of its members would reopen some back-door path, the set is minimally sufficient.
Step by step
- Define the question: identify the treatment X and the outcome Y, and confirm that the target is the total effect of X on Y.
- Draw the graph: include every variable the researcher considers relevant, including unmeasured factors (usually written U), and draw the causal arrows among them. Every arrow left out of the graph is an added assumption that the two variables have no direct effect on each other.
- Mark the descendants of X: under the classic back-door criterion, every variable that can be reached from X by following the arrows is first set aside from the adjustment set. This is a sufficient screening rule of the classic back-door criterion, not a claim that descendants of X can never be adjusted for. Not every post-treatment variable is a bad control, and controlling some descendants of X does not open any confounding path between X and Y.
- List all back-door paths: starting from X, take the first step against an arrow pointing into X, and enumerate every path that reaches Y.
- Check each path: a path without a collider is open and needs an observable non-collider on it to be controlled. A path with a collider starts out closed and stays closed as long as neither the collider nor any of its descendants is controlled.
- Recheck for newly opened paths: each time a variable is added, check whether it is a collider, or a descendant of a collider, on some path. If it is, add another blocking point on the path it opens.
- Settle on an adjustment set: there is often more than one valid set, and the choice can be guided by which variables are measured. If no combination of observable variables closes all back-door paths, the effect cannot be identified by covariate adjustment alone.
A worked example: Pearl's Figure 4, an eight-variable graph
Pearl's 2009 overview illustrates the back-door criterion with an eight-variable graph (Figure 4 in the original). X is the treatment and Y the outcome. Z1 and Z2 are upstream background factors. Z3 is affected by both Z1 and Z2 and in turn affects both X and Y. W1 lies between Z1 and X, W2 between Z2 and Y, and W3 between X and Y. The arrows are:
- Z1 → W1 → X
- Z2 → W2 → Y
- Z1 → Z3 ← Z2
- Z3 → X, Z3 → Y
- X → W3 → Y
W3 is a descendant of X and is excluded under the first condition. There are four paths that start from X with an arrow pointing into X: (a) X ← Z3 → Y; (b) X ← W1 ← Z1 → Z3 → Y; (c) X ← Z3 ← Z2 → W2 → Y; (d) X ← W1 ← Z1 → Z3 ← Z2 → W2 → Y. Path (a) has Z3 as its only intermediate node, so Z3 must be controlled. Controlling Z3 also blocks (b) and (c). On path (d), however, Z3 is a collider (Z1 → Z3 ← Z2), so this initially closed path is opened by controlling Z3. Controlling Z3 alone is therefore not enough, and another blocking point is needed on (d). The sufficient sets Pearl lists are {Z1, Z2, Z3}, {Z1, Z3}, {W1, Z3} and {W2, Z3}. By the same logic, {Z2, Z3} also qualifies.
The lesson is that after controlling the most obvious confounder, you still need to check whether it is a collider on some other path. The example also shows that the rule of thumb “control anything associated with both X and Y” is unreliable. Pearl points out that a sufficient set as a whole is associated with both X and Y, but its individual members need not be. In this graph Z3 belongs to every sufficient set, yet it can be associated with neither X nor Y. Conversely, a pre-treatment variable associated with both X and Y may have to be kept out of the adjustment set.
Common bad controls
In “A Crash Course in Good and Bad Controls”, Cinelli, Forney and Pearl use a series of small graphs to sort the consequences of adding a variable Z into three types: good controls (which reduce bias), bad controls (which increase bias) and neutral controls (which leave asymptotic bias unchanged). Every good-control case comes down to blocking some back-door path. Even when Z is not itself a common cause of X and Y, it counts as a good control as long as it sits on a back-door path and can block it. Bad controls fall mainly into the following types.
Controlling a mediator: cutting away the effect you want
In X → Z → Y, Z is a mediator. If the target is the total effect, controlling Z cuts the causal path itself. This is called overcontrol bias. Controlling a descendant of the mediator causes the same problem, because controlling a descendant of a variable amounts to partly controlling that variable. The first condition of the classic back-door criterion, which keeps descendants of X out of the adjustment set, rules out exactly these variables.
Controlling a collider: creating association out of nothing
In X → Z ← U → Y, Z is affected both by the treatment X and by an unobserved factor U that affects the outcome. If Z is not controlled, the collider blocks this path. Once we stratify on Z, an association appears between X and U and is passed on to Y through U. Cinelli et al. use this structure to explain the “birth-weight paradox”. Babies born to mothers who smoke have higher mortality, yet among low-birth-weight babies the relationship reverses. One possible explanation is that stratifying on birth weight opens the collider path. Low-birth-weight babies of non-smoking mothers often have some other cause of low birth weight, such as a birth defect or malnutrition, and those causes also raise the risk of death.
Selecting a sample is also a form of control. The Wikipedia article on Berkson's paradox gives a worked example. A collector owns 1,000 stamps: 300 are pretty, 100 are rare, and 30 are both. Across the whole collection, prettiness and rarity are unrelated: 10% of the pretty stamps are rare, and 10% of all stamps are rare. The collector puts on display only the 370 stamps that are pretty or rare. Among the displayed stamps, about 27% are rare (100/370). Among the pretty ones on display, still only 10% are rare (30/300), while all 70 displayed stamps that are not pretty are rare. Someone who sees only the display would conclude that “the less pretty, the rarer”, because they are conditioning on the collider “on display or not”.
Pre-treatment variables can be colliders too: M-bias
The claim that “controlling only pre-treatment variables is safe” does not hold. In X ← U1 → Z ← U2 → Y, Z occurs before the treatment and is associated with both X and Y, but it is a common effect of two unobserved factors. If Z is not controlled, the path is closed and the unadjusted estimate is unbiased; controlling Z opens it. Because the graph is shaped like the letter M, the resulting bias is called M-bias. Cinelli et al. cite a social-network example from Elwert and Winship. Suppose we study whether individual 1's civic engagement leads to later civic engagement by individual 2. Whether the two are friends may be just such a collider, and computing the association only among pairs of friends biases the estimate of the interpersonal effect. If Z also directly affects Y, then an open back-door path remains whether or not Z is controlled, and the effect cannot be identified by adjustment alone.
Controlling a descendant of the outcome
If Z is an effect of Y (X → Y → Z), controlling Z introduces bias even when there is no arrow between X and Z. Cinelli et al. explain that the outcome Y is itself a collider and Z is its descendant. Their example is the “antebellum puzzle” in economic history. In 19th-century Britain and the United States, economic conditions and child nutrition were improving, yet the average height of adult men fell. One possible explanation is that the studies relied on military enlistment records, and shorter men were more likely to enlist because taller men had better opportunities in the civilian labour market. Restricting the sample to enlistees amounts to controlling for a descendant of height.
Controlling a variable that only affects treatment: bias amplification
Suppose Z affects only X and has no other route to Y, which is the position an instrumental variable occupies, and X and Y also share unobserved confounding. Controlling Z then does not remove the confounding, and in linear models it amplifies the existing bias. Even without unobserved confounding, controlling such a variable leaves the bias unchanged but reduces the variation in X, which can lower the precision of the estimate.
Back to “should I control for it?”
Condensing the rules above, a candidate variable Z can be screened in this order. First, ask whether Z is a descendant of X. If it is, the classic back-door criterion keeps it out of the adjustment set. This is a conservative sufficient screening rule rather than a universal ban. Cinelli et al. point out that not all post-treatment variables are bad controls, and that the adjustment criterion proposed after the classic back-door criterion (Shpitser et al., 2012) was designed precisely for cases where the adjustment set may contain descendants of X. When the target is the total effect, however, mediators, descendants of mediators, and colliders affected by X remain bad controls. Second, ask whether controlling Z would close some open back-door path; if so, it is a candidate. Third, ask whether Z is a collider, or a descendant of a collider, on some path. If it is, find another blocking point on the path it opens; if none can be found, Z cannot be controlled. A variable that neither blocks nor opens any path is neutral as far as bias goes. Variables that affect only Y tend to improve precision, while variables that affect only X tend to reduce it. The point of a DAG is not to control as many variables as possible. Its value is that every control decision can be traced to a specific path in the graph.