Difference-in-differences
Planning & decisions
Difference-in-differences estimates an intervention effect by comparing the before-to-after outcome change for a treated group with the corresponding change for a comparison group. Its central identifying assumption is a credible untreated counterfactual trend, often expressed as parallel trends.
By The Decision Pattern · Updated
A question to consider
Would the treated group's outcome have followed the comparison trend without the intervention, and is the remaining change material?
Why it matters
A simple before-and-after change mixes intervention impact with common shocks and background trends. Subtracting a comparison group's change can remove shared movement when the groups would otherwise have evolved similarly.
How it works
Define groups, treatment timing, outcome, and estimand; measure adequate pre-periods; estimate the interaction between treatment group and post period; use design-appropriate uncertainty; and examine event-time patterns and compositional change.
How to interpret it
The estimate is causal only if, absent treatment, the relevant outcome trends would have followed the required relationship and no differential concurrent shock, anticipation, spillover, or outcome redefinition invalidates it.
Common mistake
Using one pre-period and treating a nonsignificant baseline difference as proof of parallel trends. Level equality is neither required nor sufficient, and pretrend tests may have little power.
Put it to work
Plot raw and adjusted trends, justify the comparison group, preserve stable measurement, test leads and alternative windows, address staggered timing with suitable estimators, cluster uncertainty correctly, and report assumption-threatening events.
A practical example
Illustrative example: treated stores improve from 50 to 62 and comparison stores from 48 to 54; the difference-in-differences estimate is six units.
Questions worth asking
What is the parallel-trends assumption?
It requires the treated group's counterfactual outcome change to track the comparison group's change in the absence of treatment.
Do parallel pretrends prove the assumption?
No. They can support plausibility, but future counterfactual trends remain unobserved and concurrent shocks can still differ.
Sources & further reading
Explore the background to this term. Worked examples on this page are illustrative.
- GOV.UK — Magenta Book Annex A: Analytical Methods
Difference-in-differences, regression discontinuity, interrupted time series, propensity score matching, and instrumental-variable methods and limitations.
Source checked
Put the thinking to work.
Explore the question with Research Reports. Write, model and review your decision paper with Executive Editor.
Find your reportExplore Executive Editor