I am reading about the front door criterion and I want to make sure that I understand what is calculated in the second part of the formula, where the backdoor path between $Z$ and $Y$ is blocked by conditioning on $X.$
Graph:
Formula:
$$P(y|\operatorname{do}(X=x))=\sum_z P(z|x)\sum_{x'}P(y|x',z)\,P(x')$$
Using the graph and the formula above and assuming that all variables except $U$ are binary and $U$ is unobserved, if I am interested in the effect of $\operatorname{do}(X = 1)$ where $x$ set to $1$ on $y = 1,$ is the calculation below correct?:
- Calculate the sum of $P(z = 1 | x = 1)$ and $P(z = 0 | x = 1).$
- Calculate the sum of $P(y = 1 | z = 1, x = 1)$ and $P(y = 1 | z = 1, x = 0)$
- Multiply [result of step 1] * [result of step 2].
Is this right?