= Solution
This is the covariate-conditional <front-door adjustment>. The paths from $A$ to $M$ have no unblocked backdoor path after conditioning on $X$, and all backdoor paths from $M$ to $Y$ are blocked by $(A,X)$. Therefore
$$
\mathbb P(Y(a)=y)
=\sum_{x,m}\mathbb P(x)\mathbb P(m\mid a,x)
\sum_{a'}\mathbb P(y\mid m,a',x)\mathbb P(a'\mid x).
$$
The inner sum identifies the effect of setting $M=m$ at covariate value $x$ by adjusting for $A$; the outer sum transports this through the mediator distribution generated by setting $A=a$ and then averages over $X$.
Back to article page