Causal inference (source code)

= Causal inference
{wiki}

<Causal inference> uses data and explicit assumptions to learn effects of specified <interventions>. For binary <treatment> $A$, a target <average treatment effect> is $\mathbb E[Y(1)-Y(0)]$, comparing <potential outcomes> for the same population. Observing only $Y=Y(A)$ leaves one of each unit's <potential outcomes> unobserved.

An observed treated-minus-control difference can include <confounding>. For a concrete model, suppose half a population is in a low-baseline stratum with $(Y(0),Y(1))=(0,1)$ and half in a high-baseline stratum with $(2,3)$. Let <treatment> <probabilities> be $1/4$ and $3/4$ in the two strata. Every unit's <causal effect> is one. The treated mean is $\tfrac14(1)+\tfrac34(3)=2.5$, while the untreated mean is $\tfrac34(0)+\tfrac14(2)=0.5$. Their observed difference is two because their stratum compositions differ.

Under <conditional exchangeability>, <positivity> and <consistency in causal inference>, <outcome standardization> identifies the effect by
$$
\mathbb E_X[\mathbb E(Y\mid A=1,X)-\mathbb E(Y\mid A=0,X)].
$$
In the example, using the same half-and-half target weights for both strategies recovers one. The substantive assumptions, rather than the arithmetic alone, justify interpreting the standardized contrast as an <intervention> effect.<Estimating causal effects from epidemiological data by Miguel A. Hernán and James M. Robins>[Standardisation and Appendix A.1: conditional exchangeability and positivity]{ref}