Search

Search papers and lessons

Causal Inference

Level 3 · 10 min read

Causal inference estimates what would have happened to the same units under a different treatment, and uses design choices such as randomization to make the comparison fair.

On this page

  • Colour = topic mix
  • Probability
  • Methods
  • Sign in to see your progress

TL;DR

Causal inference asks whether a treatment changes an outcome, and by how much. The honest way to say it is a comparison with a counterfactual: the outcome for a unit that got the treatment, against the outcome that same unit would have had without it. That second number can never be observed, so causal inference is the craft of building a comparison group that stands in for it.

Where you'll see it: in field experiments that mail voters a reminder and measure turnout, in studies asking whether a policy reduced conflict, and in any claim that "X made Y happen" rather than "X and Y go together."

This lesson is about cause. For describing what is true without a cause in view, see Descriptive Inference.

Intuition

The same person, twice

Suppose a candidate's campaign knocks on a voter's door. We want to know whether the knock changed the chance that this voter turned out. The voter either was or was not knocked on, so we only ever see one of the two worlds. The world we did not see is the counterfactual, and the effect of the knock is the difference between the two.

This is the fundamental problem. For any one unit, the effect is not observable. The whole field is about getting the average effect across units without seeing any single one clearly.

Why comparing groups usually fails

The obvious fix is to compare voters who were knocked on with voters who were not. This goes wrong when the two groups already differ. Campaigns knock on likely supporters, and likely supporters vote more anyway. The comparison then mixes the effect of the knock with the effect of who was picked.

flowchart LR
  Z[Prior interest in politics] --> T[Campaign contact]
  Z --> Y[Turnout]
  T --> Y

Here the prior interest is a confounder. It pushes both the treatment and the outcome, so a raw comparison of contacted and uncontacted voters overstates or understates the contact's effect. Causal inference is largely the work of breaking or accounting for arrows like the one from interest to contact.

The cleanest break is randomization. If a coin decides who gets the knock, interest no longer predicts treatment, and the two groups are alike on average in everything, observed or not. That is why experiments are the reference design, and why other designs are judged by how closely they mimic one.

The math

Write Ti∈{0,1}T_i \in \{0, 1\} for whether unit ii receives the treatment, with 1 for treated. Each unit has two potential outcomes: Yi(1)Y_i(1), its outcome if treated, and Yi(0)Y_i(0), its outcome if not. Only one of these is observed, namely Yi=TiYi(1)+(1−Ti)Yi(0)Y_i = T_i Y_i(1) + (1 - T_i) Y_i(0).

Definition: Individual treatment effect

The effect for unit ii is τi=Yi(1)−Yi(0)\tau_i = Y_i(1) - Y_i(0). It is defined for every unit but observed for none, because one of its two terms is always missing.

Definition: Average treatment effect

The average treatment effect is τ=E[Y(1)−Y(0)]=E[Y(1)]−E[Y(0)]\tau = \mathbb{E}[Y(1) - Y(0)] = \mathbb{E}[Y(1)] - \mathbb{E}[Y(0)], the average of the individual effects over the population.

Why the naive difference is biased

The difference in observed means between treated and untreated units is E[Y∣T=1]−E[Y∣T=0]\mathbb{E}[Y \mid T = 1] - \mathbb{E}[Y \mid T = 0]. Substitute the potential outcomes:

E[Y∣T=1]−E[Y∣T=0]=E[Y(1)−Y(0)∣T=1]⏟effect on the treated+E[Y(0)∣T=1]−E[Y(0)∣T=0]⏟selection bias.\mathbb{E}[Y \mid T = 1] - \mathbb{E}[Y \mid T = 0] = \underbrace{\mathbb{E}[Y(1) - Y(0) \mid T = 1]}_{\text{effect on the treated}} + \underbrace{\mathbb{E}[Y(0) \mid T = 1] - \mathbb{E}[Y(0) \mid T = 0]}_{\text{selection bias}}.

The second term is the problem. It is the difference in baseline outcomes between the groups, had neither been treated. Under confounding it is not zero.

Randomization removes the bias

If treatment is assigned by a coin, then TT is independent of the potential outcomes. Independence means the conditional distribution of Y(0)Y(0) given T=1T = 1 equals its distribution given T=0T = 0, so the selection term vanishes:

E[Y(0)∣T=1]=E[Y(0)∣T=0].\mathbb{E}[Y(0) \mid T = 1] = \mathbb{E}[Y(0) \mid T = 0].

Under randomization the naive difference in means is an unbiased estimate of the average treatment effect. That is the entire justification for experiments, and it depends on a Conditional Probability argument about the assignment mechanism, not on the outcome model.

What the potential-outcomes notation assumes

Writing Yi(1)Y_i(1) and Yi(0)Y_i(0) as fixed numbers for each unit quietly assumes two things. First, no interference: unit ii's outcome depends only on its own treatment, not on whether its neighbours were treated. Second, no hidden versions of treatment: "treated" means one well-defined thing. Together these are often called the stable unit treatment value assumption. They can fail in politics, for instance when a mailed reminder prompts a household member who was not mailed to vote, so the control group is partly contaminated.

Uncertainty: the standard error

Even a perfectly randomized estimate is a random quantity, because a different coin flip would have produced a different split. Its spread is summarized by the standard error. For a difference of two group proportions, with p^1,p^0\hat{p}_1, \hat{p}_0 the observed rates and n1,n0n_1, n_0 the group sizes, the standard error is

SE⁡(τ^)=p^1(1−p^1)n1+p^0(1−p^0)n0,\operatorname{SE}(\hat{\tau}) = \sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1} + \frac{\hat{p}_0(1-\hat{p}_0)}{n_0}},

and a rough 95 percent interval is the estimate plus or minus 1.961.96 standard errors.

Adjusting when randomization is not available

When treatment is not randomized, we try to make the groups comparable by conditioning on observed covariates X\mathbf{X}. If treatment is independent of the potential outcomes once we condition on X\mathbf{X}, the effect can be recovered within each stratum and averaged. This is the conditional ignorability assumption, and it is untestable from the data alone. A Linear Regression of YY on TT and X\mathbf{X} is one way to implement the adjustment, and it is only as good as the assumption behind it.

Worked examples

Example
A randomized mailing, with a standard error

A researcher mails a voting reminder to a random 100 of 200 registered voters and leaves 100 unmailed. Turnout is 58 percent in the mailed group and 50 percent in the control group.

  1. Estimate the effect as the difference in means: τ^=0.58−0.50=0.08\hat{\tau} = 0.58 - 0.50 = 0.08, or 8 percentage points.
  2. Because assignment was random, this is an unbiased estimate of the average effect in this population.
  3. Compute each group's variance term: 0.58×0.42/100=0.0024360.58 \times 0.42 / 100 = 0.002436 and 0.50×0.50/100=0.00250.50 \times 0.50 / 100 = 0.0025.
  4. Add them: 0.002436+0.0025=0.0049360.002436 + 0.0025 = 0.004936.
  5. Take the square root: SE⁡(τ^)≈0.0702\operatorname{SE}(\hat{\tau}) \approx 0.0702.
  6. The 95 percent interval is 0.08±1.96×0.0702=0.08±0.1380.08 \pm 1.96 \times 0.0702 = 0.08 \pm 0.138, which is about −0.058-0.058 to 0.2180.218.

Interpretation: the point estimate says the reminder raised turnout by 8 points, but the interval runs from a slight decrease to a 22-point increase. The design is causally clean, but 100 people per arm is too few to rule out a small effect or a null one. The honest report gives the interval, not just the point.

Example
Four voters, every potential outcome known

Imagine four voters, with outcomes written as (Y(1),Y(0))(Y(1), Y(0)): A (5,3)(5, 3), B (7,6)(7, 6), C (4,4)(4, 4), D (8,2)(8, 2). The individual effects are 2, 1, 0 and 6, so the average treatment effect is 9/4=2.259 / 4 = 2.25.

  1. Since we know both potential outcomes here, the true answer is 2.25.
  2. Now assign two voters to treatment at random. Take the treated pair {A,B}\{A, B\}. Their treated outcomes average (5+7)/2=6(5 + 7) / 2 = 6. The untreated pair {C,D}\{C, D\} has control outcomes averaging (4+2)/2=3(4 + 2) / 2 = 3. The estimate is 6−3=36 - 3 = 3.
  3. Try the treated pair {C,D}\{C, D\}. The treated mean is (4+8)/2=6(4 + 8) / 2 = 6, and the control pair {A,B}\{A, B\} has mean (3+6)/2=4.5(3 + 6) / 2 = 4.5. The estimate is 1.51.5.
  4. Across all six equally likely treated pairs, the six estimates are 3, 1.5, 0.5, 4, 1.5 and 3. Their average is 13.5/6=2.2513.5 / 6 = 2.25.

Interpretation: any single randomized comparison can miss badly, as the 0.5 and 4 show. But the design is unbiased, and its error averages out over repeated assignment. This is the sense in which randomization is correct on average rather than correct every time.

Tradeoffs and failure modes

Experiments are the strongest design for cause, but they are not always possible, ethical, or external. Observational designs make the comparison credible by different means.

SituationWhat goes wrongBetter choice
Treatment chosen by the actors who benefit from itSelection bias: treated units differ at baselineRandomize if possible; otherwise use a design that exploits an as-if random source
Regression adjustment on observed covariates onlyUnmeasured confounders remain, and the estimate looks precise but is biasedMeasure more confounders, check sensitivity, or change design
Treatment is a broad institution, such as a whole electoral systemToo few units to compare, and the assumptions carry the whole claimUse case-based causal reasoning, and say which assumptions it needs
Effect is estimated on a convenient sampleThe effect may not transfer to the target populationConsider External Validity before generalizing
Post-treatment variables are controlled forAdjustment can block part of the effect or open a spurious pathControl only for variables measured before treatment

A subtle point about the last row: controlling for everything available is not a safe default. A variable that the treatment affects can absorb part of the effect you are trying to measure.

In case-study research the same logic is carried by explicit counterfactual arguments and by tracing mechanisms, which is the role of Causal Mechanism. The reasoning is no less causal for being qualitative, but the claim is only as strong as the argument that the alternative outcome would have occurred.

History

The modern potential-outcomes framework was set out by Jerzy Neyman in a 1923 paper on agricultural field experiments, where the idea of comparing outcomes under treatment and control was first written down formally. Donald Rubin developed it in the 1970s into a general framework for observational and experimental studies, and the framework is often called the Rubin causal model. Paul Holland's 1986 article in the Journal of the American Statistical Association named the fundamental problem of causal inference and made the framework widely used across the social sciences.

Political science adopted the framework more slowly. It gained ground in the 2000s, as field experiments on turnout and political behaviour became common and as researchers began to ask for explicit identification assumptions. Methods texts in the 1990s, including the one by King, Keohane and Verba, had pressed for clearer inference, and the potential-outcomes language gave that push a precise form.

Check yourself

QuestionRecall: what is the fundamental problem of causal inference?Show answer

For any single unit, we observe only one of its two potential outcomes, the one under the treatment it actually received. The other, the counterfactual, is never observed. So the individual effect is never directly seen, and causal estimates must come from comparisons across units.

QuestionComputation: in a randomized study, 300 treated units have mean outcome 12 and 300 control units have mean outcome 9. What is the estimated average treatment effect?Show answer

The estimate is the difference in means: 12−9=312 - 9 = 3. Because treatment was randomized, this is an unbiased estimate of the average treatment effect.

QuestionWhy: why does a regression of outcome on treatment without adjustment fail when the treated group is self-selected?Show answer

Self-selection makes the treated and untreated groups differ in their baseline outcomes, which is the selection term in the decomposition. The observed difference then combines the treatment effect with the difference in what the groups would have had anyway. Without randomization or a credible adjustment for those differences, the estimate mixes the two and is biased.

QuestionApplied: a study finds that cities with more police spend more on public services and have less crime. A reader concludes that police spending reduces crime. What is the causal question, and what would you check first?Show answer

The causal question is whether increasing police spending would reduce crime in a given city. The correlation alone could reflect confounding: a city with high crime or high tax capacity may both fund more police and need different services. The first check is whether the comparison adjusts for confounders measured before the spending decision, such as past crime and tax base. The strongest check would be a design where spending changes for reasons unrelated to crime, such as a natural experiment or a randomized allocation, and the conclusion should be stated with the assumptions made explicit.

Sources