Testing Mediation
Under full mediation, treatment can change an outcome only by changing the mediator. Individuals whose mediator is unchanged must therefore have unchanged outcomes. Random assignment identifies the outcome-mediator distribution in each treatment arm, and restrictions on mediator movements determine how much of the difference between those distributions can come from movers. The exposition below is based on Section 3 of Kwon and Roth (2024).
1. Potential variables and maintained assumptions
Let \(D\in\{0,1\}\) denote treatment. The potential mediator \(M(d)\) takes values in the finite set \(\mathcal M=\{m_0,\ldots,m_{K-1}\}\), and the potential outcome \(Y(d,m)\) is real-valued. The mediator values may be scalars or vectors. All potential variables are defined on one probability space. Write
Assumption A1 (Consistency). The observed variables satisfy \(M=M(D)\) and \(Y=Y_D\). Treatment and mediator values refer to well-defined interventions, with no dependence on other individuals’ assignments in this model.
Assumption A2 (Random assignment and overlap).
The identification arguments concern the population law of one individual. Independence across sampled individuals is a separate assumption used for inference in the companion post.
The sharp null of full mediation is
Because \(\mathcal M\) is finite, the equalities can be imposed on one event of probability one. The full-mediation equalities do not require \(Y_1=Y_0\): changing the mediator can change the outcome under \(H_0\). For a vector-valued mediator, the null concerns mediation through the entire vector.
Define the principal strata and their probabilities by
Individuals in \(S_{kk}\) are stayers. Individuals in \(S_{lk}\) with \(l\ne k\) move from state \(l\) to state \(k\). The paper calls these groups \(k\)-always-takers and \(lk\)-compliers, respectively; the latter terminology includes downward movements when they are allowed.
Assumption A3 (Restrictions on mediator movements). The matrix \(\theta\) belongs to a specified nonempty closed subset \(R\) of
The mediator may depend on the potential outcomes. Closedness of \(R\) makes the feasible sets below compact; a representation by linear constraints permits linear programming.
2. Identified margins and feasible principal strata
Let
Under A1–A2, \(\mu_{dk}(A)=P(Y_d\in A,M(d)=m_k)\). Thus \(\mu_{dk}\) is an identified subprobability measure with total mass \(p_{dk}\). If \(p_{dk}>0\), the conditional outcome distribution in the cell is \(\mu_{dk}/p_{dk}\). Keeping the original mass is necessary for the bounds below.
The feasible set of principal-stratum shares is
Here \(\theta\) denotes the true shares and \(\vartheta\) a matrix over which feasibility is assessed. Assume \(\Theta_I\ne\varnothing\) unless stated otherwise; emptiness means that the mediator margins already contradict the movement restrictions.
Several choices of \(R\) are useful:
- For an ordered scalar mediator, \(M(1)\geq M(0)\) imposes \(\vartheta_{lk}=0\) whenever \(l>k\).
- Allowing a fraction at most \(\bar d\) to violate this ordering imposes \(\sum_{l>k}\vartheta_{lk}\leq\bar d\).
- For vector-valued \(m_k\), elementwise monotonicity imposes \(\vartheta_{lk}=0\) unless \(m_l\preceq m_k\). A bound on violations replaces these zeros by \(\sum_{m_l\not\preceq m_k}\vartheta_{lk}\leq\bar d\).
- A bound on the frequency of large mediator changes takes the form \(\sum_{\|m_k-m_l\|>\kappa}\vartheta_{lk}\leq\bar d\) for specified \(\kappa\geq0\).
- Without restrictions on movements, take \(R=\Delta_{K^2-1}\).
All these sets are polyhedral. Their parameters must be treated as maintained restrictions or explicit sensitivity parameters.
3. A lower bound on affected stayers
Define
The unconditional mass of affected stayers is
When \(\theta_{kk}>0\), the corresponding conditional fraction is \(\nu_k=r_k/\theta_{kk}\). If \(\theta_{kk}=0\), then \(r_k=0\) and the conditional fraction is undefined. Formulating the basic result in terms of \(r_k\) covers both cases without a convention for conditioning on a null event.
Proposition 1. Affected-stayer bound. Under A1–A2,
where \(x_+=\max\{x,0\}\). Consequently, A1–A3 and \(H_0\) require a single \(\vartheta\in\Theta_I\) satisfying
Proof. Partition the treated cell into stayers and entrants and the control cell into stayers and leavers. Random assignment and consistency give, for every Borel set \(A\),
The stayer term is at most \(r_k\), since
Each entrant term is at most \(\theta_{lk}\), and the leaver terms are nonnegative and subtracted. Hence \(\Delta_k(A)\leq r_k+\sum_{l\ne k}\theta_{lk}\). Taking the supremum over \(A\) and using \(r_k\geq0\) proves the bound. The column-margin identity gives the second expression. Under \(H_0\), \(Y_1=Y_0\) on every \(S_{kk}\), so \(r_k=0\). The true matrix \(\theta\in\Theta_I\) then satisfies all the displayed restrictions simultaneously. \(\square\)
The inequality allocates each observed increase between entrants and affected stayers. Testing it assesses full mediation jointly with A1–A3.
4. Overlap of the observed subdistributions
The supremum over sets has an explicit measure-theoretic representation. Let
This finite measure has total mass two and dominates every \(\mu_{dk}\). By the Radon–Nikodym theorem, write \(f_{dk}=d\mu_{dk}/d\lambda\). These densities integrate to \(p_{dk}\), not to one. Define
Lemma 2. Subdistribution overlap. For every \(k\),
Thus Proposition 1 is equivalently \(r_k\geq(\theta_{kk}-O_k)_+\), and the null restrictions are \(\vartheta_{kk}\leq O_k\) for every \(k\).
Proof. Set \(g=f_{1k}-f_{0k}\). For every \(A\), \(\int_A g\,d\lambda\leq\int g_+\,d\lambda\), with equality for \(A=\{g>0\}\). The identities \(g_+=f_{1k}-\min(f_{0k},f_{1k})\) and \(2g_+=|g|+g\) give the two expressions. Subtracting \(p_{1k}-\theta_{kk}\) proves the last assertion. \(\square\)
The common measure \(H_k\) is intrinsic: any measure dominated by both \(\mu_{0k}\) and \(\mu_{1k}\) has a \(\lambda\)-density bounded by \(h_k\). Therefore \(O_k\) is the largest mass that can be assigned the same outcome in both cells. This interpretation also proves that the overlap does not depend on the chosen dominating measure.
For a discrete outcome with distinct support points \(y_1,\ldots,y_J\), put \(q_{dkj}=\mu_{dk}(\{y_j\})\). Then
The maximizing set contains every positive-difference cell. Restricting attention to lower intervals \((-\infty,y]\) need not recover this set.
5. Binary mediators and observable violations
Suppose \(\mathcal M=\{0,1\}\) and \(M(1)\geq M(0)\). Let \(a_d=P(M=1\mid D=d)\). Feasibility requires \(a_1\geq a_0\), and the shares are identified:
There are no entrants into state zero, so full mediation requires \(\mu_{10}\leq\mu_{00}\) as measures. For state one, the restriction is \(b_1\leq a_1-a_0\). Since
the restriction for mediator state one is equivalent to \(\mu_{01}\leq\mu_{11}\). These two measure inequalities are the binary monotonicity restrictions associated with instrument-validity testing when treatment is viewed as an instrument for the mediator.
6. Minimum stayer shares under ordered monotonicity
For a general nonempty \(\Theta_I\), define \(t_k^{\min}=\min_{\vartheta\in\Theta_I}\vartheta_{kk}\). Compactness ensures attainment for each coordinate. Separate minimizers need not form one feasible matrix. Ordered monotonicity alone has the stronger property below.
Proposition 3. Simultaneous minimum stayer shares. Suppose \(m_0<\cdots<m_{K-1}\) and \(R\) imposes only \(\vartheta_{lk}=0\) for \(l>k\). Define
The set \(\Theta_I\) is nonempty if and only if \(F_0(k)\geq F_1(k)\) for every \(k\). When it is nonempty,
and one feasible matrix attains these minima for every \(k\) simultaneously.
The crossing mass from states below \(k\) to states at or above \(k\) is
It bounds the entrants into \(k\), giving \(\vartheta_{kk}\geq(p_{1k}-c_k)_+\). Joint attainment follows by filling destination columns in order, using earlier origin rows before the diagonal row. At step \(k\), those earlier rows have exactly \(c_k\) unused mass. The complete construction is in the appendix.
Combining this proposition with the sharpness theorem in the companion post, full mediation is compatible with the observed distributions under ordered monotonicity if and only if the cumulative inequalities hold and \(t_k^{\min}\leq O_k\) for all \(k\). Additional restrictions on \(R\) can invalidate the simultaneous-minimizer construction; in that case the original joint feasibility problem must be used.
7. Discretization and within-bin movements
Let \(\{B_j\}_{j=1}^J\) be a fixed measurable partition of the outcome space. After replacing \(Y\) by its cell label, the discrepancy becomes
Indeed, the maximizing discretized set corresponds to a union of the original cells and is among the Borel sets allowed in \(b_k\). Equivalently, merging two cells replaces \(u_++v_+\) by \((u+v)_+\leq u_++v_+\). Outcome coarsening therefore preserves necessary null restrictions but can remove identifying information.
Coarsening the mediator changes the principal strata. Let \(b(M)\) be a bin label and \(\widetilde S_{kk}=\{b(M(0))=b(M(1))=k\}\). A member of this group can have \(M(0)\ne M(1)\). Under full mediation,
which need not vanish on \(\widetilde S_{kk}\). Equality of \(Y(d,m)\) across all mediator values in a bin is sufficient to remove this problem.
A weaker sensitivity analysis can instead impose, for each bin with positive stayer probability,
This assumption concerns the realized pair of potential mediator values. Under \(H_0\), it implies that the affected mass among bin-stayers is at most \(\varepsilon_k\widetilde\theta_{kk}\). Applying Proposition 1 to the binned mediator gives the necessary restrictions
for one feasible matrix of bin-stratum shares. A bound stated only for each fixed pair \((m,m')\) does not automatically supply this bound for the endogenous pair \((M(0),M(1))\). The within-bin assumption and any movement restrictions must be justified for the binned mediator being analyzed.
8. Appendix: simultaneous minimum stayer shares
Proof. Under monotonicity, every unit with \(M(1)\leq m_k\) also has \(M(0)\leq m_k\), proving the necessary cumulative inequalities. Moreover,
All entrants into state \(k\) belong to this crossing mass. Thus \(\vartheta_{kk}=p_{1k}-\sum_{l<k}\vartheta_{lk}\geq p_{1k}-c_k\), and nonnegativity gives the lower bound.
To prove feasibility and joint attainment, fill destination columns \(k=0,\ldots,K-1\) in order. Before filling column \(k\), keep the unused supplies from origin rows \(0,\ldots,k-1\) in a pool, retaining each supply’s origin label. Its total is \(c_k\): these rows supplied \(F_0(k-1)\) and the previous columns consumed \(F_1(k-1)\). Allocate \(\min(c_k,p_{1k})\) from the pool to column \(k\), and supply the deficit \((p_{1k}-c_k)_+\) from row \(k\). This is feasible because
Add the unused supply of row \(k\) to the pool. The new total is \(c_k+p_{0k}-p_{1k}=c_{k+1}\). This proves the induction, starting with \(c_0=0\). After the last column, \(c_K=F_0(K-1)-F_1(K-1)=0\), so all row supplies have been used. Every allocation has origin at most its destination, preserves both margins, and assigns exactly \((p_{1k}-c_k)_+\) to diagonal cell \(k\). The survival-function expression follows from \(P(M\geq m_k\mid D=d)=1-F_d(k-1)\). \(\square\)