Tutorials › Causal Inference › Conditional Versus Marginal Mediator Distributions

Interventional Mediation and Mechanisms · Tutorial 808 of 972

Conditional Versus Marginal Mediator Distributions

Learn how conditional and marginal mediator reference distributions define different stochastic interventions, how to identify their mean outcomes, and when their estimands coincide.

Advanced 11 min read

What You'll Learn

  • Define conditional and marginal mediator reference distributions for a target population.
  • Distinguish the interventions each distribution represents for an individual with given baseline covariates.
  • Write the corresponding standardized mean-outcome estimands.
  • Calculate both estimands in discrete examples and interpret their difference.
  • Identify conditions under which the two choices produce the same estimand.
  • Avoid treating the observed mediator distribution in a reference-treatment group as automatically marginal for the target population.

Two Ways to Draw a Reference Mediator

A stochastic mediator intervention replaces an individual's mediator value with a draw from a specified distribution. The reference distribution matters: should the draw reflect the mediator distribution among people with the individual's baseline covariates, or the distribution across a target population as a whole? These choices can assign different mediator values to the same person and can therefore produce different mean outcomes.

Let \(A\) denote treatment, \(L\) baseline covariates measured before treatment, \(M\) a mediator, and \(Y\) the outcome. Fix a target population with covariate distribution \(F_L\). For a reference treatment level \(a^*\), write \(f(m\mid A=a^*,L=l)\) for the mediator distribution among people with covariates \(l\) at that treatment level. The target population must be specified because it determines how covariate-specific mediator distributions are combined.

Definition: A conditional reference mediator distribution draws \(M\) for a recipient with covariates \(L=l\) from \(f(m\mid A=a^*,L=l)\). A marginal reference mediator distribution draws \(M\) from the target-standardized distribution \(g_{a^*}(m)=\int f(m\mid A=a^*,L=l')\,dF_L(l')\), without conditioning the draw on that recipient's \(L\). The marginal distribution is a mixture of the conditional distributions, mixed over the target population's covariate distribution.

The conditional intervention retains a link between a recipient's baseline covariates and the mediator draw: people with different \(L\) can receive draws from different distributions. The marginal intervention instead uses the same distribution for every recipient. In particular, the draw is not tailored to the recipient's \(L\), even though \(L\) can still predict the outcome.

The marginal reference distribution here is standardized to \(F_L\). It is not necessarily the crude distribution of \(M\) among observed people with \(A=a^*\). If treatment groups have different covariate distributions, that crude distribution mixes the conditional mediator distributions using the treatment group's covariate mix, not necessarily the target population's mix.

Mean-Outcome Estimands

Before interpreting either quantity causally, assume that \(L\) is pre-treatment, treatment and mediator interventions are well defined, and consistency holds. For identification from observational data, assume adequate control of treatment-outcome and treatment-mediator confounding by \(L\), and adequate control of mediator-outcome confounding by \(A,L\). In particular, there must be no unmeasured common causes of \(M\) and \(Y\) after conditioning on \(A,L\), including no treatment-induced mediator-outcome confounder left uncontrolled. The relevant treatment and mediator probabilities or densities must also be positive in the covariate strata used. These are identification requirements, not consequences of choosing a conditional or marginal distribution.

Let \(\mu(a,m,l)=E[Y\mid A=a,M=m,L=l]\). Under those assumptions, the mean outcome under treatment level \(a\) and the conditional reference intervention is

$$ \psi_C(a,a^*)= \int\!\!\int \mu(a,m,l) f(m\mid A=a^*,L=l)\,dm\,dF_L(l). $$

For the marginal reference intervention, the corresponding mean is

$$ \psi_M(a,a^*)= \int\!\!\int \mu(a,m,l) g_{a^*}(m)\,dm\,dF_L(l). $$

Both estimands average outcomes over the target population's \(L\) distribution and use the outcome response under treatment \(a\). Their distinction is the mediator draw: the first uses the recipient's \(L\), whereas the second uses the target-standardized marginal distribution. Neither formula pairs a person's outcome under one treatment with that same person's mediator value under a different treatment. Thus, these stochastic-intervention estimands do not require the cross-world independence assumption used for natural effects.

For either choice of reference distribution, a contrast such as \(\psi(a,a_1)-\psi(a,a_0)\) compares two mediator interventions while holding the outcome treatment at \(a\). A contrast such as \(\psi(a_1,a^*)-\psi(a_0,a^*)\) compares outcome treatment levels while holding the mediator intervention fixed. The choice between \(\psi_C\) and \(\psi_M\) is part of the estimand: it is not just a choice of how to calculate the same quantity.

Worked Example: Different Distributions, Different Mean Outcomes

Consider a hypothetical target population with half its members in each of two baseline strata, \(L=0\) and \(L=1\). Under reference treatment \(a^*=0\), suppose \(P(M=1\mid A=0,L=0)=0.2\) and \(P(M=1\mid A=0,L=1)=0.8\). For outcome treatment \(a=1\), suppose the conditional outcome means are \(\mu(1,m,0)=10+2m\) and \(\mu(1,m,1)=20+8m\). All outcome values are in hypothetical outcome units.

Under the conditional intervention, the mean in stratum \(L=0\) is \(10+2(0.2)=10.4\). In stratum \(L=1\), it is \(20+8(0.8)=26.4\). Averaging over the two equally sized strata gives

$$ \psi_C(1,0)=0.5(10.4)+0.5(26.4)=18.4. $$

The target-standardized marginal probability of \(M=1\) is \(0.5(0.2)+0.5(0.8)=0.5\). Under the marginal intervention, the mean is \(10+2(0.5)=11\) in stratum \(L=0\), and \(20+8(0.5)=24\) in stratum \(L=1\). Therefore,

$$ \psi_M(1,0)=0.5(11)+0.5(24)=17.5. $$

The marginal-intervention mean is \(17.5-18.4=-0.9\) outcome units lower. The intervention differs, even though both use the same reference treatment and target population: the conditional version assigns \(M\) draws at rates \(0.2\) and \(0.8\) in the respective strata; the marginal version assigns draws at rate \(0.5\) in both.

Why the Difference Arises

A short derivation makes the source of the difference precise. For a binary mediator, define \(q(l)=P(M=1\mid A=a^*,L=l)\), and suppose the outcome mean under treatment \(a\) is linear in \(M\) within each stratum: \(\mu(a,m,l)=\alpha(l)+\beta(l)m\). Let \(\bar q=\int q(l)\,dF_L(l)\). Under the conditional intervention, the mean is the target average of \(\alpha(l)+\beta(l)q(l)\). Under the marginal intervention, \(M\) has probability \(\bar q\) in every stratum, so the mean is the target average of \(\alpha(l)+\beta(l)\bar q\). Subtracting yields

$$ \begin{aligned} \psi_M(a,a^*)-\psi_C(a,a^*) &=\bar q\,E_L[\beta(L)]-E_L[\beta(L)q(L)]\\ &=-\operatorname{Cov}_L\!\bigl(\beta(L),q(L)\bigr). \end{aligned} $$

Here the covariance is over the target distribution of \(L\). Thus, under this outcome model, the two means agree if the mediator effect \(\beta(L)\) is constant across strata or if the reference probability \(q(L)\) is constant. More generally, they may also agree through cancellation. In other settings, equality depends on the full outcome response and mediator distributions; it should not be presumed just because both interventions use the same reference treatment.

Worked Example: Standardizing to the Target Population

Suppose a hypothetical target population has \(P(L=0)=0.8\) and \(P(L=1)=0.2\). At reference treatment \(a^*=0\), let the probabilities of \(M=1\) be \(0.2\) and \(0.8\) in the two strata. Suppose \(\mu(1,m,0)=5+2m\) and \(\mu(1,m,1)=15+8m\).

The target-standardized marginal mediator probability is \(0.8(0.2)+0.2(0.8)=0.32\). The conditional-intervention stratum means are \(5+2(0.2)=5.4\) and \(15+8(0.8)=21.4\). Thus,

$$ \psi_C(1,0)=0.8(5.4)+0.2(21.4)=8.60. $$

Under the marginal intervention, the stratum means are \(5+2(0.32)=5.64\) and \(15+8(0.32)=17.56\). Therefore,

$$ \psi_M(1,0)=0.8(5.64)+0.2(17.56)=8.024. $$

For contrast, suppose the observed reference-treatment group has 70% with \(L=0\) and 30% with \(L=1\). Its crude mediator probability would be \(0.7(0.2)+0.3(0.8)=0.38\), not \(0.32\). Using \(0.38\) as the marginal draw probability would define a different intervention and target estimand. The \(0.32\) calculation uses the specified target population, not the observed reference group's covariate composition.

Worked Example: Different Draws, Equal Mean Outcome

Consider a hypothetical target population with \(P(L=0)=0.25\) and \(P(L=1)=0.75\). Under reference treatment \(a^*=0\), let \(P(M=1\mid L=0,A=0)=0.2\) and \(P(M=1\mid L=1,A=0)=0.6\). Suppose the outcome mean under treatment \(a=1\) is \(\mu(1,m,l)=4+10l+3m\).

The conditional intervention gives mean mediator values \(0.2\) and \(0.6\) in the two strata. The outcome means are \(4+3(0.2)=4.6\) and \(14+3(0.6)=15.8\); hence

$$ \psi_C(1,0)=0.25(4.6)+0.75(15.8)=13.0. $$

The marginal probability of \(M=1\) is \(0.25(0.2)+0.75(0.6)=0.5\). The marginal-intervention stratum means are \(4+3(0.5)=5.5\) and \(14+3(0.5)=15.5\), giving

$$ \psi_M(1,0)=0.25(5.5)+0.75(15.5)=13.0. $$

These interventions assign different mediator distributions within each stratum, but their mean outcomes agree because the mediator effect is \(3\) outcome units in both strata. This is a special equality condition, not evidence that the interventions are identical.

Choosing and Reporting the Intervention

Neither choice is universally preferable. A conditional reference distribution asks what mean outcome would result if each person received a mediator draw like those of reference-treatment individuals with the same baseline covariates. A marginal reference distribution asks what would result if everyone received a draw from the target population's overall reference mediator distribution, regardless of their own covariates. The substantive question determines which intervention is relevant.

State the target population, reference treatment, and whether the mediator draw is conditional on recipient covariates. Report the resulting contrast in outcome units and avoid describing one intervention as a mere adjustment to the other. In particular, a marginal draw can break the association between \(L\) and \(M\) that the conditional intervention preserves. That change can matter when covariates modify the effect of the mediator on the outcome.

  • Pitfall: “Both interventions use the mediator distribution under \(a^*\), so they estimate the same effect.” This overlooks whether the draw is tailored to each recipient's \(L\).
  • Correction: Write down the distribution used to draw \(M\), including how it is averaged over covariates. Then evaluate the corresponding mean-outcome functional. Equality requires conditions on the distributions and outcome response, not just a shared reference treatment.
  • Pitfall: Calling the crude mediator distribution in the observed \(A=a^*\) group the target marginal distribution without checking its covariate mix.
  • Correction: Standardize the conditional mediator distributions over the intended target \(F_L\), unless the observed reference group itself is explicitly the target population.
Key takeaway: Conditional and marginal mediator reference distributions are distinct stochastic interventions. The conditional version preserves covariate-specific mediator draws; the marginal version gives everyone draws from a target-standardized mixture. Their mean-outcome estimands can differ, even when they use the same reference treatment.

Check Your Understanding

Answer each question by identifying the intervention and the target population explicitly.

  1. In one sentence, distinguish a conditional mediator draw from a marginal mediator draw for a recipient with \(L=l\).
  2. Why might \(f(M\mid A=a^*)\) in the observed reference-treatment group differ from the target-standardized marginal distribution?
  3. In the first worked example, what feature of the outcome response helps explain why the two intervention means differ?
  4. Under the binary-mediator outcome model in the derivation, give two conditions that make the conditional and marginal mean outcomes equal.
  5. What additional information should be reported so that a reader can tell which marginal mediator intervention an analysis represents?
Clinical Biostats