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).

Causal inference is the branch of statistics and mathematics concerned with quantifying the effect of an intervention or treatment on an outcome — that is, what would happen to if we set to a particular value, as opposed to merely observing it. It matters because nearly every actionable scientific and policy question is causal ("does this drug cure?", "does education raise wages?"), yet ordinary statistical association does not answer such questions. The framework rests on potential outcomes (counterfactuals) and causal graphs, which make assumptions explicit and testable. A surprising fact: a treatment can appear beneficial in every subgroup of a population yet harmful overall — Simpson's paradox — and only causal reasoning, not statistics, resolves which conclusion is correct.

The Core Insight

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

Potential Outcomes (Neyman–Rubin Framework)

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

1
⟳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:

2
⟳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 .

Average Treatment Effect (ATE)

The population-level causal estimand of primary interest is the Average Treatment Effect:

3
⟳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) .

The Fundamental Problem of Causal Inference

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.

Identification Assumptions

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.

Identification via Adjustment / Back-door Formula

Under unconfoundedness and positivity, the ATE is identified from observed data by:

4
⟳Replace by using ignorability + consistency, then average over .

Equivalently, in Pearl's notation, the interventional distribution equals the back-door adjustment formula:

5
⟳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].

Judea Pearl | b. 1936

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.

Confounding: a back-door path from treatment to outcome through a confounder

<svg viewBox="0 0 460 260" xmlns="http://www.w3.org/2000/svg">
<rect width="460" height="260" fill="#0a0e17"/>
<!-- nodes -->
<circle cx="90" cy="200" r="26" fill="none" stroke="#94a3b8" stroke-width="2"/>
<text x="90" y="205" fill="#e2e8f0" font-size="16" text-anchor="middle">T</text>
<circle cx="370" cy="200" r="26" fill="none" stroke="#94a3b8" stroke-width="2"/>
<text x="370" y="205" fill="#e2e8f0" font-size="16" text-anchor="middle">Y</text>
<circle cx="230" cy="60" r="26" fill="none" stroke="#d4a853" stroke-width="2.5"/>
<text x="230" y="65" fill="#e2e8f0" font-size="16" text-anchor="middle">X</text>
<!-- causal arrow T->Y -->
<line x1="116" y1="200" x2="344" y2="200" stroke="#d4a853" stroke-width="2.5" marker-end="url(#a)"/>
<text x="230" y="225" fill="#d4a853" font-size="13" text-anchor="middle">causal effect</text>
<!-- confounding edges -->
<line x1="210" y1="82" x2="105" y2="178" stroke="#94a3b8" stroke-width="2" marker-end="url(#b)"/>
<line x1="250" y1="82" x2="355" y2="178" stroke="#94a3b8" stroke-width="2" marker-end="url(#b)"/>
<text x="120" y="120" fill="#94a3b8" font-size="13">back-door</text>
<text x="300" y="120" fill="#94a3b8" font-size="13">path</text>
<defs>
<marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#d4a853"/></marker>
<marker id="b" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L8,3 L0,6 Z" fill="#94a3b8"/></marker>
</defs>
<text x="230" y="250" fill="#e2e8f0" font-size="12" text-anchor="middle">Adjusting for X blocks the back-door path, isolating the causal effect</text>
</svg>

Worked Examples

Estimating ATE by Stratified Adjustment

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).

Inverse-Probability Weighting (IPW)

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 :

6

⟳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:
Boxed answer:

Common Misconceptions

Correlation is not Causation — but neither is "controlling for everything"

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.

Collider / Selection Bias

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.

Simpson's Paradox

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

  1. Randomized clinical trials (RCTs): the FDA gold standard; randomization enforces unconfoundedness so [4] reduces to a simple difference of means.
  2. Epidemiology — smoking and lung cancer: Cornfield's 1959 sensitivity argument and later causal modeling established causation absent any RCT.
  3. Economics — the minimum wage: Card & Krueger's natural experiment (New Jersey vs. Pennsylvania) used difference-in-differences, a causal design.
  4. Tech A/B testing: Google, Netflix, and Amazon run millions of randomized experiments to causally estimate the effect of interface changes.
  5. Public policy — job training programs: the LaLonde dataset became the benchmark for testing whether observational methods (matching, IPW) can replicate experimental ATEs.
  6. Mendelian randomization: genetic variants serve as instrumental variables to estimate causal effects of biomarkers, exploiting random allele assignment at conception.
  7. Recommender & ad systems: uplift modeling (CATE estimation) targets interventions at users who will actually be moved by them.

Historical Development

  • 1921 — Sewall Wright invents path analysis, the first formal method to decompose correlations into causal paths.
  • 1923 — Jerzy Neyman, in his master's thesis, introduces potential outcomes for randomized agricultural experiments.
  • 1925 — R. A. Fisher formalizes randomization as the basis of experimental inference in The Design of Experiments.
  • 1959 — Cornfield et al. publish a sensitivity-analysis argument for smoking causing lung cancer; Bradford Hill (1965) proposes his viewpoints for causation.
  • 1974 — Donald Rubin extends potential outcomes to observational studies, founding the Rubin Causal Model.
  • 1983 — Rosenbaum & Rubin introduce the propensity score, proving adjustment on it suffices for unconfoundedness.
  • 1986 — Robins develops the g-formula and methods for time-varying treatments.
  • 1995–2000 — Judea Pearl formalizes do-calculus, structural causal models, and the back-door/front-door criteria; Causality (2000).
  • 2018 — Pearl & Mackenzie's The Book of Why popularizes the "ladder of causation"; the era of causal machine learning begins.

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

Before this

Where this leads