Causal Inference
Causal inference is the science of drawing conclusions about cause-and-effect relationships from data. Its central result: correlation alone cannot establish causation, but with explicit causal assumptions (encoded in graphs or counterfactuals) and proper study design, causal effects can be identified and estimated. Applies wherever we ask "what if?" — medicine, economics, epidemiology, public policy, machine learning. Pioneered by Sewall Wright (1920s), formalized by Donald Rubin, Jerzy Neyman, and Judea Pearl (1970s–2000s).
Every causal question is a question about counterfactuals: comparing the outcome a unit would have had under treatment with the outcome it would have had under control. Since we can never observe both for the same unit (the fundamental problem of causal inference), causal inference is fundamentally a missing-data problem solved only by combining data with assumptions about how the data were generated. The distinction between (seeing) and (doing) is the entire subject in one symbol.
Formal Statement
For each unit in a population and a binary treatment , define two potential outcomes:
- — the outcome unit would exhibit if treated,
- — the outcome unit would exhibit if untreated.
The individual treatment effect is
Derivation hint: This is a definition — the difference of the two counterfactual outcomes for the same unit. Only one term is ever observed. The observed outcome is linked to potential outcomes by the consistency assumption:
Derivation hint: Whichever treatment is actually received "switches on" the corresponding potential outcome; the other is counterfactual and unobserved. Symbols: indexes units; is the realized treatment; is the realized outcome; is the potential outcome under treatment level .
The population-level causal estimand of primary interest is the Average Treatment Effect:
Derivation hint: Take the expectation of [1] over the population and use linearity of expectation. Related estimands: the Average Treatment effect on the Treated (ATT) , and the Conditional ATE (CATE) .
By [2], for any unit we observe either or , never both. Hence in [1] is never directly observed for any individual. Causal inference must therefore reconstruct the missing potential outcome using assumptions — it is, structurally, a problem of inferring counterfactuals from factual data.
The ATE is identified (computable from observational data) under three conditions: 1. Ignorability / Unconfoundedness: — given covariates , treatment is as good as randomly assigned. 2. Positivity / Overlap: for all — every covariate stratum contains both treated and untreated units. 3. SUTVA (Stable Unit Treatment Value Assumption): no interference between units and a single version of each treatment.
Under unconfoundedness and positivity, the ATE is identified from observed data by:
Derivation hint: Replace by using ignorability + consistency, then average over . Equivalently, in Pearl's notation, the interventional distribution equals the back-door adjustment formula:
Derivation hint: Condition on a set that blocks all back-door paths from to in the causal DAG; intervention severs incoming edges to , leaving this weighting by the marginal .
:::proof[Identification of ] 1. By the law of total expectation, . 2. By ignorability, , so . 3. By positivity, the conditioning event has positive probability, so step 2 is well-defined. 4. By consistency [2], when we have , hence — a quantity of observed variables. 5. Therefore . Symmetrically for . Subtracting gives [4].
Israeli-American computer scientist and Turing Award laureate (2011). Pearl developed the do-calculus and the structural-causal-model framework, giving causal inference a graphical algebra. His "ladder of causation" — association, intervention, counterfactuals — organizes the entire field. His book Causality (2000) unified graphical and counterfactual approaches and made standard notation. Pearl argued that data alone is "profoundly dumb" without a model of how it arose.
Building Intuition
Imagine two worlds running in parallel. In World A everyone takes the drug; in World B no one does. The ATE is the difference in average outcome between these two entire worlds. Reality only ever shows us one world, and worse, a mixture: the people who actually took the drug are not a random sample — sicker people may self-select into treatment. This confounding is the villain of the whole subject. Randomization defeats it by making treatment independent of who-you-are; observational adjustment defeats it by conditioning on the variables that drove the self-selection, effectively comparing like-with-like within strata.
```svg
```
Worked Examples
Given: A study of a drug () on recovery (), with a confounder severity .
| Stratum | |||
|---|---|---|---|
| mild | 0.6 | 0.90 | 0.80 |
| severe | 0.4 | 0.50 | 0.30 |
Steps: 1. Stratum effect (mild): . 2. Stratum effect (severe): . 3. Apply back-door formula [4]: weight by :
Boxed answer:
Note: a naive unadjusted comparison would mis-weight by the treated/untreated mix and could even reverse sign (Simpson's paradox).
Given: units. Propensity , observed treatment , outcome :
| Unit | |||
|---|---|---|---|
| 1 | 0.25 | 1 | 8 |
| 2 | 0.25 | 0 | 4 |
| 3 | 0.80 | 1 | 6 |
| 4 | 0.80 | 0 | 2 |
The IPW estimator for :
Derivation hint: Dividing by the probability of the observed treatment re-creates a pseudo-population in which treatment is independent of ; expectation of the weighted indicator reproduces the marginal potential-outcome mean.
Steps: 1. 2. 3.
Boxed answer:
Common Misconceptions
Adding more covariates to a regression does not monotonically improve causal estimates. Conditioning on a collider (a common effect of and ) or on a mediator (a variable on the causal path) introduces bias rather than removing it. The correct adjustment set is determined by the causal graph, not by which variables raise or by statistical significance.
Suppose talent and beauty are independent in the general population, but both increase the chance of becoming a Hollywood star (a collider). Among stars (conditioning on ), talent and beauty become negatively correlated — a less talented star must be especially beautiful to have made it. Thus conditioning on a collider manufactures a spurious association between two genuinely independent causes. Blindly "controlling for" would corrupt an otherwise clean causal estimate.
A drug improves recovery in both mild and severe patients separately (positive stratum effects), yet appears harmful in the pooled data because severe patients — who recover less often regardless — were disproportionately given the drug. The aggregate association reverses the true causal direction. Only the back-door adjustment [4] (not the raw table) yields the correct conclusion, and which answer is correct depends on whether is a confounder or a mediator — a causal, not statistical, distinction.
Connections
Causal inference sits at the intersection of several fields. It generalizes Regression Analysis, reinterpreting coefficients as causal effects only under explicit assumptions. It relies on Probability Theory and Conditional Expectation for its estimands, and on Directed Acyclic Graphs for encoding qualitative causal knowledge. The d-separation criterion from graph theory determines conditional independencies and valid adjustment sets. Modern estimation borrows from Machine Learning (e.g., causal forests, double/debiased ML) to flexibly model and the propensity score. It is deeply linked to Experimental Design, whose randomization guarantees ignorability by construction.
Real-World Applications
Historical Development
Subtleties & Limits
Unmeasured confounding is the field's central unsolved difficulty: ignorability is untestable from data alone, so all observational estimates rest on a faith assumption. Sensitivity analysis quantifies how strong a hidden confounder would need to be to overturn a conclusion, but cannot prove its absence. Other open frontiers: (i) transportability — when do causal effects estimated in one population transfer to another? (ii) interference / spillovers that violate SUTVA in networks and markets; (iii) reliable CATE estimation with high-dimensional covariates and honest uncertainty; (iv) causal discovery — learning the DAG itself from data, which is provably non-identifiable without further assumptions; and (v) reconciling counterfactual and interventional queries when the structural mechanism is unknown.
See Also
Potential Outcomes · Propensity Score · Do-Calculus · Simpson's Paradox · Instrumental Variables · Randomized Controlled Trial · Confounding · Mediation Analysis