Algorithm Search⌘K

Theoremadvanced

Front-door criterion

Also called front-door adjustment.

If a mediator set intercepts all directed paths from X to Y and has no unblocked back-door paths, the effect of X on Y is identified even with unmeasured confounding of X and Y.

The front-door criterion gives a way to find the causal effect of a treatment XX on an outcome YY when a hidden variable affects both and no set of measured variables closes the back doors. It uses a set MM of mediators through which all of the effect passes. If nothing hidden links XX to MM, and XX itself closes the back doors from MM to YY, then the effect of XX on MM and the effect of MM on YY can each be found from data, and their combination is the effect of XX on YY. The theorem is a short consequence of the three rules of the do-calculus, and it is the standard example of an effect that is identifiable although the back-door criterion fails.

Statement

Let GG be the directed acyclic graph of a structural causal model with independent noises. Some nodes of GG can be hidden. Let XX, YY and MM be disjoint sets of observed nodes with discrete values. A back-door path from a set AA to a set BB is a path from a node of AA to a node of BB whose first arrow points into the node of AA. Blocking is in the sense of d-separation.

Definition (front-door criterion). The set MM satisfies the front-door criterion relative to (X,Y)(X, Y) if

  1. every directed path from a node of XX to a node of YY goes through a node of MM;
  2. every back-door path from XX to MM is blocked by the empty set (it has a collider);
  3. every back-door path from MM to YY is blocked by XX.

Theorem (front-door adjustment). If MM satisfies the front-door criterion relative to (X,Y)(X, Y) and P(x,m)>0P(x, m) > 0 for all values xx of XX and mm of MM, then for all xx and yy

P(y∣do(x))=∑mP(m∣x)∑x′P(y∣x′,m) P(x′).P(y \mid \mathrm{do}(x)) = \sum_m P(m \mid x) \sum_{x'} P(y \mid x', m)\, P(x').

So the interventional distribution of YY is a function of the observed distribution of (X,M,Y)(X, M, Y). For continuous variables the sums become integrals over densities.

In plain words

A hidden cause can push both the treatment and the outcome, so treated and untreated units differ in more than the treatment. Sometimes the treatment acts only through a measured step in between, such as smoking acting through tar in the lungs. If nothing hidden pushes both the treatment and that step, then the link between treatment and step is causal. If the treatment itself carries all the hidden news about the outcome, then comparing units with the same treatment shows how the step moves the outcome. Chain the two parts and you get the effect of the treatment, although the hidden cause was never measured. If the effect has a second route that skips the measured step, or a hidden cause touches the step, the chain gives a wrong answer.

Proof

The proof applies the three rules of the do-calculus as they are stated on the do-calculus page. For a set AA, GA‾G_{\overline A} is GG without the arrows into AA, and GA‾G_{\underline A} is GG without the arrows out of AA. A path is open given a set SS when each of its colliders is in SS or has a descendant in SS, and none of its non-colliders is in SS. Two sets are d-separated given SS when no path between them is open given SS.

Lemma 1 (deleting arrows). Let HH be GG with some arrows deleted. A path that is open given SS in HH is open given SS in GG. So d-separation in GG implies d-separation in HH.

Proof. The path uses only arrows of GG, with the same directions, so its colliders and non-colliders are the same in GG. A descendant in HH is a descendant in GG. So each collider still has itself or a descendant in SS, and no non-collider is in SS. □\square

Lemma 2 (a subpath). If a path is open given SS, then each subpath between two of its nodes is open given SS. Its inner nodes keep their role.

Proof. The inner nodes of the subpath have the same two neighbors on it. □\square

Lemma 3. Condition 2 gives (a) (M⊥X)GX‾(M \perp X)_{G_{\underline X}}, (b) no node of XX is a descendant of a node of MM, and (c) (M⊥X)GM‾(M \perp X)_{G_{\overline M}}.

Proof. (a) Suppose a path between XX and MM is open given the empty set in GX‾G_{\underline X}. By Lemma 2, take the subpath from its last node in XX to the next node in MM. It has no collider. Its first arrow is an arrow of GX‾G_{\underline X} at a node of XX, so it points into that node. By Lemma 1 it is a back-door path from XX to MM in GG with no collider, against condition 2.

(b) Suppose m0→⋯→x0m_0 \to \cdots \to x_0 is a directed path with m0∈Mm_0 \in M and x0∈Xx_0 \in X. Let x∗x^* be its first node in XX and let m∗m^* be the last node of MM before x∗x^*. The part from m∗m^* to x∗x^*, read from x∗x^*, is a back-door path from XX to MM, and as a directed path it has no collider, against condition 2.

(c) In GM‾G_{\overline M} no arrow points into MM. A path from a node of MM that is open given the empty set has no collider, and it starts with an arrow out of its first node, so it is a directed path. A directed path from MM to XX in GM‾G_{\overline M} is one in GG, which (b) excludes. □\square

Lemma 4. Condition 3 gives (Y⊥M∣X)GM‾(Y \perp M \mid X)_{G_{\underline M}} and (Y⊥M∣X)GX‾M‾(Y \perp M \mid X)_{G_{\overline X \underline M}}.

Proof. Suppose a path between MM and YY is open given XX in GM‾G_{\underline M}. By Lemma 2, take the subpath from its last node in MM to the next node in YY. No arrow leaves MM in GM‾G_{\underline M}, so its first arrow points into its node of MM. By Lemma 1 it is open given XX in GG, and it is a back-door path from MM to YY, against condition 3. The graph GX‾M‾G_{\overline X \underline M} is GM‾G_{\underline M} with more arrows deleted, so the second claim follows by Lemma 1. □\square

Lemma 5. Condition 1 gives (Y⊥X∣M)GX‾ M‾(Y \perp X \mid M)_{G_{\overline X\, \overline M}}.

Proof. In H=GX‾ M‾H = G_{\overline X\, \overline M} no arrow points into XX or MM. Suppose a path from a node of XX to a node of YY is open given MM in HH. A node of MM on it cannot be a collider, since no arrow enters it, and cannot be a non-collider, since it is in MM. So the path avoids MM. A collider cc on it would need a descendant in MM, but a directed path from cc into MM ends with an arrow into MM, which HH does not have. So the path has no collider. It starts with an arrow out of a node of XX, so it is a directed path. It is a directed path in GG from XX to YY that avoids MM, against condition 1. □\square

Proof of the theorem. By positivity every conditional probability below is defined. In the do-calculus, the rule 3 condition for deleting do(z)\mathrm{do}(z) given ww uses the set Z(W)Z(W) of nodes of ZZ that are not ancestors of WW. With WW empty, Z(W)=ZZ(W) = Z. We use the five steps below.

  1. By the law of total probability in the model under do(x)\mathrm{do}(x),
P(y∣do(x))=∑mP(m∣do(x)) P(y∣do(x),m).P(y \mid \mathrm{do}(x)) = \sum_m P(m \mid \mathrm{do}(x))\, P(y \mid \mathrm{do}(x), m).
  1. P(m∣do(x))=P(m∣x)P(m \mid \mathrm{do}(x)) = P(m \mid x) by rule 2 with condition (M⊥X)GX‾(M \perp X)_{G_{\underline X}}, which is Lemma 3 (a).
  2. P(y∣do(x),m)=P(y∣do(x),do(m))P(y \mid \mathrm{do}(x), m) = P(y \mid \mathrm{do}(x), \mathrm{do}(m)) by rule 2 with condition (Y⊥M∣X)GX‾M‾(Y \perp M \mid X)_{G_{\overline X \underline M}}, which is Lemma 4.
  3. P(y∣do(x),do(m))=P(y∣do(m))P(y \mid \mathrm{do}(x), \mathrm{do}(m)) = P(y \mid \mathrm{do}(m)) by rule 3 with condition (Y⊥X∣M)GM‾ X‾(Y \perp X \mid M)_{G_{\overline M\, \overline X}}, which is Lemma 5.
  4. By the law of total probability under do(m)\mathrm{do}(m),
P(y∣do(m))=∑x′P(y∣x′,do(m)) P(x′∣do(m))=∑x′P(y∣x′,m) P(x′).P(y \mid \mathrm{do}(m)) = \sum_{x'} P(y \mid x', \mathrm{do}(m))\, P(x' \mid \mathrm{do}(m)) = \sum_{x'} P(y \mid x', m)\, P(x').

The first factor uses rule 2 with condition (Y⊥M∣X)GM‾(Y \perp M \mid X)_{G_{\underline M}}, which is Lemma 4. The second uses rule 3 with condition (X⊥M)GM‾(X \perp M)_{G_{\overline M}}, which is Lemma 3 (c).

Put steps 2 to 5 into step 1 to get the formula. □\square

Step 5 is the back-door adjustment for the effect of MM on YY with the adjustment set XX. Lemma 3 (b) and condition 3 are exactly the two conditions of the back-door criterion for that pair.

An example with two mediators. Let UU be a hidden fair coin, and let all other variables be binary. Let P(X=1∣U=u)=15,45P(X = 1 \mid U = u) = \frac15, \frac45 for u=0,1u = 0, 1. Let XX act on YY through two mediators: P(M1=1∣x)=14,34P(M_1 = 1 \mid x) = \frac14, \frac34 and P(M2=1∣x)=12,910P(M_2 = 1 \mid x) = \frac12, \frac9{10} for x=0,1x = 0, 1, independently given XX, and P(Y=1∣m1,m2,u)=110+15m1+15m2+25uP(Y = 1 \mid m_1, m_2, u) = \frac1{10} + \frac15m_1 + \frac15m_2 + \frac25u. The graph has U→XU \to X, U→YU \to Y, X→M1→YX \to M_1 \to Y and X→M2→YX \to M_2 \to Y. The set M={M1,M2}M = \{M_1, M_2\} meets both directed paths. The back-door paths from XX to MM go through U→Y←MjU \to Y \leftarrow M_j, with the collider YY. The back-door paths from MjM_j to YY start Mj←XM_j \leftarrow X, so XX blocks them. The exact values, in Fractions, are as follows.

  • In the model, P(Y=1∣do(X=x))=310+15(P(M1=1∣x)+P(M2=1∣x))P(Y = 1 \mid \mathrm{do}(X = x)) = \frac3{10} + \frac15\bigl(P(M_1 = 1 \mid x) + P(M_2 = 1 \mid x)\bigr), which is 920=0.45\frac9{20} = 0.45 for x=0x = 0 and 63100=0.63\frac{63}{100} = 0.63 for x=1x = 1. The effect is 0.180.18.
  • The plain conditionals are P(Y=1∣X=0)=0.33P(Y = 1 \mid X = 0) = 0.33 and P(Y=1∣X=1)=0.75P(Y = 1 \mid X = 1) = 0.75, a difference of 0.420.42, because UU raises both XX and YY.
  • From the observed distribution, P(X=1)=12P(X = 1) = \frac12 and P(Y=1∣x′,m1,m2)P(Y = 1 \mid x', m_1, m_2) is 950,2150\frac9{50}, \frac{21}{50} for (m1,m2)=(0,0)(m_1, m_2) = (0, 0) and x′=0,1x' = 0, 1, it is 1950,3150\frac{19}{50}, \frac{31}{50} for (0,1)(0, 1) and for (1,0)(1, 0), and it is 2950,4150\frac{29}{50}, \frac{41}{50} for (1,1)(1, 1). So the inner sum ∑x′P(Y=1∣x′,m)P(x′)\sum_{x'} P(Y = 1 \mid x', m)P(x') is 310,12,12,710\frac3{10}, \frac12, \frac12, \frac7{10}.
  • The outer sum with P(m∣X=1)=140,940,340,2740P(m \mid X = 1) = \frac1{40}, \frac9{40}, \frac3{40}, \frac{27}{40} gives 3+45+15+189400=63100\frac{3 + 45 + 15 + 189}{400} = \frac{63}{100}. For X=0X = 0 it gives 920\frac9{20}. Both agree with the model.

Consequences

  • Identification without a back-door set. In the example, every back-door path from XX to YY goes through the hidden UU, and the only observed nodes are descendants of XX. No set satisfies the back-door criterion, but the effect is identified.
  • Plug-in estimation. Replace each probability in the formula by its sample frequency. The estimate is consistent when the cells (x,m)(x, m) have positive probability. With many values of MM the cells are small, and one fits models for P(m∣x)P(m \mid x) and P(y∣x,m)P(y \mid x, m) instead.
  • The linear case: a product of coefficients. Let X=U+eXX = U + e_X, M=2X+eMM = 2X + e_M and Y=3M+4U+eYY = 3M + 4U + e_Y, with UU hidden and the four noises uncorrelated with variance 1. The effect of XX on YY is 2⋅3=62 \cdot 3 = 6. The least squares slope of YY on XX is Cov⁡(X,Y)/Var⁡X=16/2=8\operatorname{Cov}(X, Y)/\operatorname{Var}X = 16/2 = 8, which is biased by UU. The front-door estimate takes the slope α=2\alpha = 2 of MM on XX (step 2) and the coefficient β=3\beta = 3 of MM in the least squares fit of YY on MM and XX (step 5), and returns αβ=6\alpha\beta = 6. With several mediators in a linear model, the estimate is ∑jαjβj\sum_j\alpha_j\beta_j, where the βj\beta_j come from one fit of YY on all of MM and XX. See ordinary least squares.
  • Relation to mediation. The formula chains the effect of XX on MM with the effect of MM on YY. Condition 1 says that there is no direct effect of XX on YY, so in the terms of mediation analysis the whole effect is indirect.
  • A special case of the do-calculus. The proof uses only the three rules. Effects that neither the back-door nor the front-door criterion covers can still be identifiable, and the do-calculus decides each case.

Tightness

Each hypothesis is needed. The three counterexamples below use the graph U→X→M→Y←UU \to X \to M \to Y \leftarrow U with one binary mediator, a hidden fair coin UU, P(X=1∣u)=15,45P(X = 1 \mid u) = \frac15, \frac45, and one change each. The values are exact.

  • Condition 1. In the two-mediator example, the set {M1}\{M_1\} misses the path X→M2→YX \to M_2 \to Y. The formula with M1M_1 alone gives 0.490.49 and 0.590.59, an effect of 0.100.10 instead of 0.180.18.
  • Condition 2. Add the arrow U→MU \to M, with P(M=1∣x,u)=110+35x+15uP(M = 1 \mid x, u) = \frac1{10} + \frac35x + \frac15u and P(Y=1∣m,u)=110+25m+25uP(Y = 1 \mid m, u) = \frac1{10} + \frac25m + \frac25u. The back-door path X←U→MX \leftarrow U \to M has no collider. The model gives P(Y=1∣do(X=x))=0.38,0.62P(Y = 1 \mid \mathrm{do}(X = x)) = 0.38, 0.62, but the formula gives 2390975250≈0.3177\frac{23909}{75250} \approx 0.3177 and 5134175250≈0.6823\frac{51341}{75250} \approx 0.6823.
  • Condition 3. Keep UU out of MM, but add a second hidden fair coin VV with V→MV \to M and V→YV \to Y: P(M=1∣x,v)=110+35x+15vP(M = 1 \mid x, v) = \frac1{10} + \frac35x + \frac15v and P(Y=1∣m,u,v)=110+25m+15u+15vP(Y = 1 \mid m, u, v) = \frac1{10} + \frac25m + \frac15u + \frac15v. The back-door path M←V→YM \leftarrow V \to Y does not pass through XX. The model gives 0.380.38 and 0.620.62, but the formula gives 0.361250.36125 and 0.638750.63875.
  • Positivity. If M=XM = X always, then P(y∣x′,m)P(y \mid x', m) is undefined for x′≠mx' \ne m, and the graph is in effect X→YX \to Y with the hidden UU on both, where the effect is not identifiable.

With all three conditions and P(M=1∣x)=110+35xP(M = 1 \mid x) = \frac1{10} + \frac35x, P(Y=1∣m,u)=110+25m+25uP(Y = 1 \mid m, u) = \frac1{10} + \frac25m + \frac25u, the model and the formula both give 0.340.34 and 0.580.58.

The criterion is sufficient, not necessary, for identification. Other graphs with hidden confounding of XX and YY have identifiable effects that need other sequences of the rules.

History

Pearl introduced the front-door condition in "Causal diagrams for empirical research" (Biometrika, 1995), together with the rules of the do-calculus from which he derived it. His motivating example asks for the effect of smoking on lung cancer when an unmeasured genotype might cause both, with the tar deposit in the lungs as the mediator. Chapter 3 of Causality (2000, second edition 2009) states the criterion and the adjustment formula and proves them by the do-calculus. The primer by Pearl, Glymour and Jewell (2016) gives a textbook account next to the back-door criterion.

References

  1. Judea Pearl, Causal diagrams for empirical research, Biometrika 82(4), 1995, pages 669 to 688, Section 3: the front-door condition and its adjustment formula, derived from the rules of the do-calculus
  2. Judea Pearl, Causality, Models, Reasoning, and Inference, 2nd edition, Cambridge University Press, 2009, Section 3.3: the front-door criterion, its adjustment formula and the smoking, tar and cancer example; Section 3.4 for the proof by the do-calculus
  3. Judea Pearl, Madelyn Glymour and Nicholas P. Jewell, Causal Inference in Statistics, A Primer, Wiley, 2016, Chapter 3, Section 3.4 (the front-door criterion)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/23G7RV/text.yaml