Tutorials › Causal Inference › Nonidentification From Unmeasured Mediator-Outcome Confounding

Mediation and Path-Specific Effects · Tutorial 794 of 972

Nonidentification From Unmeasured Mediator-Outcome Confounding

See why observed data alone may not identify natural effects when an unmeasured variable confounds the mediator–outcome relationship.

Advanced 10 min read

What You'll Learn

  • Define point identification by comparing causal models compatible with the same observed distribution.
  • Construct two models with randomized treatment and an unmeasured mediator–outcome confounder.
  • Verify that the models generate identical observed treatment, mediator, and outcome probabilities.
  • Calculate the natural direct and indirect effects under each model.
  • Explain why a mediation formula can fail even when treatment and mediator positivity hold.

Why Observed Mediation Data May Not Determine Natural Effects

A treatment may change a mediator, and the mediator may in turn affect an outcome. But an observed association between mediator and outcome does not by itself establish how changing the mediator would change the outcome. An unmeasured variable can affect both: it can help determine which mediator value a person receives and also predict that person’s outcome. In that case, the observed mediator–outcome relationship can mix causal effects with confounding.

The central issue here is point identification. A causal quantity is point identified from observed data under specified assumptions if every causal model satisfying those assumptions and producing the observed data gives the same value for that quantity. To show nonidentification, it is enough to construct two compatible models that agree on the observed distribution but disagree on the target effect.

Definition: A natural effect is not point identified from the observed distribution if there exist two causal models that produce the same distribution of observed variables, satisfy the maintained assumptions, and assign different values to that natural effect.

We will use binary treatment \(A\), binary mediator \(M\), binary outcome \(Y\), and an unmeasured binary variable \(U\). Potential outcomes \(M(a)\) and \(Y(a,m)\) denote, respectively, the mediator under treatment \(a\) and the outcome under treatment \(a\) with the mediator set to \(m\). The nested counterfactual \(Y(a,M(a'))\) combines the outcome treatment setting \(a\) with the mediator value that would occur under \(a'\).

For a concrete decomposition, define \(\mu(a,a')=E[Y(a,M(a'))]\). We use the natural direct effect at the mediator value under control, \(\mu(1,0)-\mu(0,0)\), and the natural indirect effect at treatment level 1, \(\mu(1,1)-\mu(1,0)\). Their sum is the total effect \(\mu(1,1)-\mu(0,0)\). The counterexample below shows that these means need not be determined by the observed distribution.

A Shared Treatment and Mediator Model

In both causal models, let \(A\) be randomized and independent of \(U\). Set \(P(A=1)=0.5\) and \(P(U=1)=0.25\). The mediator is determined by

$$ M=A\mathbin{\mathrm{xor}}U, $$

where “xor” is 1 when its two binary inputs differ and 0 when they agree. Thus \(U\) affects the mediator, and treatment also affects the mediator. The two models differ only in the outcome response to treatment, mediator, and \(U\).

Worked Example: Finding the Observed Distribution

First enumerate the four possible \((A,U)\) combinations. Since \(A\) and \(U\) are independent, their probabilities are the products of their marginal probabilities.

\(A\)\(U\)Probability\(M=A\mathbin{\mathrm{xor}}U\)
00\(0.5(0.75)=0.375\)0
01\(0.5(0.25)=0.125\)1
10\(0.5(0.75)=0.375\)1
11\(0.5(0.25)=0.125\)0

Both outcome models will give \(Y=U\) whenever \(M=A\mathbin{\mathrm{xor}}U\), which is always true for the observed mediator. Consequently, the observed joint distribution in either model is:

\(A\)\(M\)\(Y\)Probability
0000.375
0110.125
1100.375
1010.125

All other \((A,M,Y)\) combinations have probability zero. This table describes the same observed data in both models; it does not reveal which outcome response holds when the mediator is set to a value different from its natural value.

Two Outcome Models, Two Sets of Natural Effects

In Model 1, define the outcome under interventions by \(Y(a,m)=U\). The unmeasured variable causes both \(M\) and \(Y\), so it is a mediator–outcome confounder. The outcome does not respond causally to treatment or to an intervention on the mediator in this particular model.

In Model 2, define the outcome by the structural equation

$$ Y(a,m,u)=u\,\mathbf{1}\{m=a\mathbin{\mathrm{xor}}u\}, $$

where \(\mathbf{1}\{\cdot\}\) equals 1 when the stated condition holds and 0 otherwise. Here \(U\) affects the outcome as well as the mediator. For example, at \(a=0,m=1\), setting \(u=0\) gives \(Y=0\), whereas setting \(u=1\) gives \(Y=1\). Thus \(U\) is a common cause of mediator and outcome in this model too.

Worked Example: Natural Effects in Model 1

Under Model 1, \(Y(a,m)=U\) for every treatment and mediator intervention. Therefore,

$$ Y(a,M(a'))=U \quad\text{and}\quad \mu(a,a')=E[U]=0.25 $$

for all four pairs \((a,a')\). In particular,

$$ \text{NDE}=\mu(1,0)-\mu(0,0)=0.25-0.25=0, $$
$$ \text{NIE}=\mu(1,1)-\mu(1,0)=0.25-0.25=0. $$

The total effect is also \(0.25-0.25=0\). These are differences in the probability of the binary outcome, so the effects are 0 percentage points.

Worked Example: Natural Effects in Model 2

For Model 2, substitute the mediator counterfactual \(M(a')=a'\mathbin{\mathrm{xor}}U\) into its outcome equation:

$$ Y(a,M(a'),U) = U\,\mathbf{1}\{a'\mathbin{\mathrm{xor}}U =a\mathbin{\mathrm{xor}}U\}. $$

The two xor expressions are equal exactly when \(a'=a\). Thus the nested outcome is \(U\) when \(a'=a\), and 0 when \(a'\ne a\). Since \(E[U]=0.25\), the four nested means are

$$ \mu(0,0)=0.25,\qquad \mu(1,0)=0,\qquad \mu(0,1)=0,\qquad \mu(1,1)=0.25. $$

The natural direct and indirect effects, using the stated reference levels, are therefore

$$ \text{NDE}=0-0.25=-0.25, \qquad \text{NIE}=0.25-0=0.25. $$

The direct effect is \(-25\) percentage points and the indirect effect is \(25\) percentage points. They cancel, so the total effect is \(0.25-0.25=0\), just as in Model 1. The natural direct and indirect effects differ across the models even though their observed distributions are identical.

Why the Observed Mediation Formula Does Not Resolve the Difference

Under the usual conditions for mediation identification, the nested mean can be written as an observed-data functional:

$$ \mu(a,a') = \sum_m E[Y\mid A=a,M=m]P(M=m\mid A=a'). $$

This expression combines the outcome mean at treatment level \(a\) and mediator level \(m\) with the mediator distribution under \(a'\). Its use requires conditions that rule out unmeasured mediator–outcome confounding, along with the relevant consistency and positivity conditions. Randomizing treatment alone does not ensure those conditions.

In the example, all treatment–mediator combinations have positive probability: \(P(M=0\mid A=0)=0.75\), \(P(M=1\mid A=0)=0.25\), \(P(M=0\mid A=1)=0.25\), and \(P(M=1\mid A=1)=0.75\). But \(U\) remains unmeasured and confounds the mediator–outcome relationship. Applying the displayed expression mechanically gives values that are not the natural nested means.

Worked Example: The Formula’s Plug-In Value

From the observed table, \(E[Y\mid A=1,M=0]=1\) and \(E[Y\mid A=1,M=1]=0\). The mediator distribution under \(A=0\) puts probability 0.75 on \(M=0\) and 0.25 on \(M=1\). The formula therefore gives

$$ \sum_m E[Y\mid A=1,M=m]P(M=m\mid A=0) =(1)(0.75)+(0)(0.25)=0.75. $$

This is the formula’s value for \(\mu(1,0)\), not the actual natural mean in either model: it is 0.25 in Model 1 and 0 in Model 2. The formula’s arithmetic is straightforward; the problem is that its identification conditions fail. The observed conditional outcome mean compares people with different distributions of \(U\), while the nested counterfactual requires a particular relationship between each person’s mediator under one treatment and outcome under another.

The Nonidentification Argument

The construction establishes nonidentification directly. Both models use randomized treatment, the same distribution of \(U\), and the same mediator equation. In both, the observed mediator always equals \(A\mathbin{\mathrm{xor}}U\). Model 1 has \(Y=U\); Model 2 also has \(Y=U\) on every naturally observed treatment–mediator combination. Hence they yield exactly the same probabilities for every observed \((A,M,Y)\) value.

Yet the models disagree about outcomes under mediator interventions that depart from \(M=A\mathbin{\mathrm{xor}}U\). Those unobserved responses enter \(Y(a,M(a'))\) when \(a\ne a'\). Model 1 assigns the natural direct and indirect effects the value 0. Model 2 assigns them \(-0.25\) and \(0.25\). No calculation based only on the common observed distribution can choose between these answers. Therefore the natural direct and indirect effects are not point identified from that distribution without additional assumptions or information.

1
Specify the observed distribution.
Record the joint probabilities of treatment, mediator, and outcome; the table must be the same under both proposed models.
2
Check the causal structures.
Verify treatment assignment and the mediator equation, and identify any unmeasured common cause of mediator and outcome.
3
Evaluate the target in each model.
Substitute each model’s potential outcomes into the nested counterfactuals and calculate the resulting means and contrasts.
4
Compare the answers.
If compatible models have the same observed distribution but different target values, the target is not point identified under the stated information and assumptions.

Common Mistake and Practical Implication

A common mistake is to reason: “Treatment was randomized, so mediator–outcome confounding is controlled.” Randomization makes treatment independent of pre-treatment causes, but it does not randomize the mediator. In the example, \(U\) is independent of \(A\) but affects both \(M\) and \(Y\). Conditioning on the mediator therefore does not remove the confounding by \(U\).

The correction is to distinguish treatment exchangeability from mediator–outcome exchangeability. A randomized treatment can identify a total treatment effect while leaving natural direct and indirect effects unidentified. Measuring plausible common causes of mediator and outcome, defending the required assumptions, or changing the causal estimand may be necessary. The observed-data pattern alone cannot establish that the natural effects are identified.

Key takeaway: To demonstrate nonidentification, construct two causal models with the same observed distribution and different target effects. Unmeasured mediator–outcome confounding can make the unobserved counterfactual responses needed for natural effects impossible to recover from observed treatment, mediator, and outcome data alone.

Check Your Understanding

Use the two-model construction and the identification argument to answer these questions.

  1. What condition must two models satisfy on their observed distributions for their disagreement to demonstrate nonidentification?
  2. Why does randomizing \(A\) not eliminate the mediator–outcome confounding in this example?
  3. In Model 2, why is \(Y(a,M(a'))=0\) whenever \(a\ne a'\)?
  4. Calculate the total effect in Model 2 from its nested means. How does it compare with the sum of its natural direct and indirect effects?
  5. Why does positive probability for every observed \((A,M)\) pair not, by itself, validate the mediation formula?
Clinical Biostats