Tutorials › Causal Inference › Nested Counterfactuals and Cross-World Quantities

Mediation and Path-Specific Effects · Tutorial 782 of 972

Nested Counterfactuals and Cross-World Quantities

Learn how structural equations define nested counterfactuals and why their cross-world nature is not resolved by observed-data consistency alone.

Advanced 12 min read

What You'll Learn

  • Derive a nested outcome counterfactual from mediator and outcome structural equations
  • Distinguish observed-data consistency from composing counterfactuals across interventions
  • Identify which treatment worlds supply each part of a nested quantity
  • Check structural implications when the two treatment values are equal
  • Interpret numerical examples without treating cross-world quantities as observed outcomes

Why Nested Counterfactuals Need Care

A mediation question can ask what an outcome would be under one treatment value if the mediator were set to the value that same person would have had under another treatment value. The notation \(Y(a,M(a'))\) represents this construction. It combines an outcome response under treatment \(a\) with a mediator value generated under treatment \(a'\).

This combination is useful for defining natural effects, but it is not an ordinary observed outcome. For a given person, only one treatment and one resulting mediator are observed. The nested quantity instead joins features of multiple intervention scenarios for that person. Understanding how the quantity is defined is therefore distinct from asking whether its distribution can be learned from observed data.

Definition: A nested counterfactual \(Y(a,M(a'))\) is the outcome that would result if treatment were set to \(a\) in the outcome-generating process and the mediator were set to the value \(M(a')\) that would arise for the same unit under treatment \(a'\). When \(a\ne a'\), it combines counterfactual information from different treatment worlds and is called a cross-world quantity.

Deriving the Nested Quantity From Structural Equations

Consider a structural causal model with treatment \(A\), mediator \(M\), and outcome \(Y\). For simplicity, write its mediator and outcome equations as

$$ M=f_M(A,U_M), \qquad Y=f_Y(A,M,U_Y). $$

Here \(U_M\) and \(U_Y\) represent the unit-specific inputs to the mediator and outcome equations. They may include unmeasured attributes; the equations are not claims that these inputs are observed or independent. To define counterfactuals, retain the same unit-specific inputs while changing the intervention values. Setting \(A=a'\) in the mediator equation gives \(M(a')=f_M(a',U_M)\). Setting treatment to \(a\) and mediator to \(m\) in the outcome equation gives \(Y(a,m)=f_Y(a,m,U_Y)\).

The nested quantity follows by substituting the mediator value generated under \(a'\) into the outcome equation under \(a\):

$$ Y(a,M(a'))=f_Y\bigl(a,f_M(a',U_M),U_Y\bigr). $$

The same \(U_M\) and \(U_Y\) belong to the same unit in both parts of this expression. That shared unit-level background is what makes the mediator value and outcome response parts of one person's counterfactual construction. The formula does not say that the mediator value under \(a'\) is observed alongside the outcome under \(a\), or that the two counterfactual components are statistically independent.

Worked Example: Substituting Across Treatment Worlds

Suppose a hypothetical unit follows these structural equations, where \(A\) is binary and \(U_M=2\), \(U_Y=5\):

$$ M=2A+U_M, \qquad Y=3A+4M+U_Y. $$

First find the mediator under \(a'=0\):

$$ M(0)=2(0)+2=2. $$

Now evaluate the outcome equation at treatment \(a=1\) and mediator \(m=2\):

$$ Y(1,2)=3(1)+4(2)+5=16. $$

Therefore \(Y(1,M(0))=16\). Its treatment input in the outcome equation is 1, while its mediator input is the value 2 generated under treatment 0. For comparison, \(M(1)=2(1)+2=4\), so the observed-world counterfactual \(Y(1)=Y(1,M(1))\) is \(3+4(4)+5=24\). The value 16 is not the outcome observed under treatment 1 for this unit in this model; it is the nested value using the mediator from the other treatment world.

Structural Composition and Observed-Data Consistency

Consistency connects observed values with potential outcomes under the treatment and mediator values actually received. In the usual notation, if a unit receives \(A=a\), then its observed mediator equals \(M(a)\), and its observed outcome equals \(Y(a)\). If the outcome counterfactual is indexed by both treatment and mediator, then a unit observed with \(A=a\) and \(M=m\) has observed outcome \(Y(a,m)\). These statements presuppose that treatment and mediator interventions are sufficiently well-defined for the counterfactual labels to have a clear meaning.

Nested counterfactuals require a different operation: compose the mediator response under \(a'\) with the outcome response under \(a\), holding the unit's structural inputs fixed. The structural equations make that operation precise. Observed-data consistency alone does not provide the joint values of \(M(a')\) and \(Y(a,m)\) for different treatment worlds. For example, observing \(A=1\), \(M=4\), and \(Y=24\) in the preceding example is consistent with the observed-world counterfactuals under \(A=1\); it does not reveal that unit's \(M(0)\) or \(Y(1,M(0))\).

This distinction is important: defining the nested counterfactual is not the same as identifying its average from observed data. Identification requires additional assumptions, which concern how observed distributions relate to counterfactuals across treatment worlds. The structural substitution above defines the target; it does not establish that the target can be recovered from data.

Worked Example: What Observed-Data Consistency Does and Does Not Say

Consider a hypothetical person with observed treatment \(A=1\), mediator \(M=4\), and outcome \(Y=24\). Suppose the structural equations in the previous example describe this person's responses. Since \(M(1)=4\), the observed mediator agrees with the counterfactual mediator under the received treatment. Also,

$$ Y(1,4)=3(1)+4(4)+5=24, $$

so the observed outcome agrees with the outcome counterfactual at the treatment and mediator values actually received. These are consistency checks for the observed world.

The nested quantity instead requires the mediator under treatment 0:

$$ M(0)=2(0)+2=2, \qquad Y(1,M(0))=Y(1,2)=3+8+5=16. $$

The observed record contains no mediator value of 2 for this person under \(A=1\), and the observed outcome of 24 is not the nested value of 16. Consistency is not violated: it equates observed values with counterfactuals corresponding to the values actually received. It does not equate an observed outcome with a counterfactual that combines treatment values from different scenarios.

Useful Checks on the Definition

The structural definition gives a basic check when the treatment values match. If \(a'=a\), then the mediator supplied to the outcome equation is exactly the mediator generated under that same treatment. Thus,

$$ Y(a,M(a)) =f_Y\bigl(a,f_M(a,U_M),U_Y\bigr) =Y(a). $$

This is a consequence of the structural definitions: the nested expression reduces to the ordinary total outcome counterfactual under \(a\). It is not a claim that \(Y(a,M(a'))\) equals \(Y(a)\) when \(a'\ne a\). When the treatment values differ, the mediator inserted into the outcome equation may differ from \(M(a)\).

A second check is that the nested expression must use the same unit throughout. Combining one person's \(M(a')\) with another person's \(Y(a,m)\) would describe a different construction, not \(Y(a,M(a'))\) for a single unit. Individual-level response functions and their unit-specific inputs must be kept aligned.

Worked Example: A Continuous Mediator and a Cross-World Value

Suppose a hypothetical unit has \(U_M=1.5\), \(U_Y=2\), and follows

$$ M=1+A+U_M, \qquad Y=2A+3M+U_Y. $$

For \(a'=0\), the mediator value is

$$ M(0)=1+0+1.5=2.5. $$

Insert this value into the outcome equation with \(a=1\):

$$ Y(1,M(0))=2(1)+3(2.5)+2=2+7.5+2=11.5. $$

For comparison, the mediator under treatment 1 is \(M(1)=1+1+1.5=3.5\), and the outcome under that same treatment world is

$$ Y(1)=Y(1,M(1))=2(1)+3(3.5)+2=14.5. $$

The two values differ because the nested quantity uses \(M(0)=2.5\), whereas \(Y(1)\) uses \(M(1)=3.5\). The arithmetic illustrates the definition for a continuous mediator; it does not show that either counterfactual is observed for this person or that the nested value is identified in a population.

Where Cross-World Quantities Arise

Any expression that combines a mediator counterfactual from one treatment setting with an outcome counterfactual under another can involve cross-world information. In \(Y(a,M(a'))\), the mediator's treatment input is \(a'\), but the outcome's treatment input is \(a\). When \(a\ne a'\), both pieces cannot generally be read off the same observed record: the record has one realized treatment, one realized mediator, and one realized outcome.

The term “cross-world” describes this combination of counterfactual scenarios. It does not mean that the quantity is incoherent. In a structural model with well-defined intervention equations, it is defined by substitution using the same unit-level inputs. Nor does the term, by itself, imply that the quantity is identifiable or unidentifiable. Those are separate questions about assumptions and observed data.

This distinction matters because mediation contrasts built from nested outcomes can have a clear causal definition while still requiring assumptions to connect them to data. The definition tells us exactly what response is being compared. It cannot, on its own, tell us whether the relevant counterfactuals have been observed or whether their distribution can be estimated.

Common Mistakes

  • Treating a nested value as an observed outcome. Seeing \(Y(a,M(a'))\) does not mean a person received treatment \(a\) and was observed with mediator \(M(a')\). The expression is a counterfactual construction.
  • Using observed-data consistency as a cross-world bridge. Consistency relates observed values to counterfactuals at the values actually received. It does not reveal a person's mediator under a different treatment or the outcome at a mediator value from another world.
  • Changing the unit between components. \(M(a')\) and \(Y(a,m)\) in a nested quantity refer to the same unit. Pairing counterfactuals from different units does not define that person's nested outcome.
  • Assuming every nested quantity is automatically identified. Structural equations can define the counterfactual, but defining it is not a proof that observed data determine its distribution.
Key takeaway: Under mediator and outcome structural equations, \(Y(a,M(a'))\) is obtained by generating the same unit's mediator under \(a'\) and substituting it into that unit's outcome equation under \(a\). Observed-data consistency governs the realized treatment and mediator values; it does not by itself supply the cross-world information in a nested quantity.

Check Your Understanding

Use the structural definition and the distinction between counterfactual composition and observed-data consistency.

  1. If \(M=f_M(A,U_M)\) and \(Y=f_Y(A,M,U_Y)\), write \(Y(a,M(a'))\) in terms of the structural functions and unit-level inputs.
  2. In what sense does \(Y(a,M(a'))\) combine different treatment worlds when \(a\ne a'\)?
  3. State what observed-data consistency says for a unit observed with \(A=a\) and \(M=m\), and name one counterfactual quantity it does not reveal.
  4. Explain why \(Y(a,M(a))=Y(a)\) under the structural definitions.
  5. Does defining \(Y(a,M(a'))\) from structural equations establish that it is identifiable from observed data? Explain briefly.
Clinical Biostats