In the second causal directed acyclic graph, depends on but not on , whereas depends on and the two latent roots are independent. Hence
Although conditioning on conveys information about , the assignment uses only and fresh randomization, so
These are the two sequential exchangeability conditions. Using them successively, together with consistency of potential outcomes, gives
which is the formula from part a.
Adding invalidates the argument in general. The latent variable confounds and , so need not equal the distribution of . When directly affects , that discrepancy no longer cancels after summing over . The same observed distribution can then correspond to different intervention means, so the displayed formula need not identify the effect.
Write
for the observed history just before . A sufficient condition is sequential exchangeability
for every treatment regime, together with consistency of potential outcomes and positivity in causal inference. Repeated conditioning then gives the longitudinal G-formula
Graphically, it is enough that each be D-separated from the final counterfactual under the specified regime after conditioning on its observed past. The two independences used in part b are precisely the instance.