A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Difference-in-Differences Estimation

Graduate Depth 101 in the knowledge graph ☐ I know this ☆ Set as goal
2topics build on this
667prerequisites beneath it
See this on the map →
Causal Inference from Observational DataLinear Regression for Social Science+4 more→→Synthetic Control MethodsVector Autoregression (VAR) Models
difference-in-differences policy-evaluation parallel-trends natural-experiments

Core Idea

Develops the difference-in-differences estimator for evaluating natural experiments where policy changes affect groups at different times. Covers parallel trends assumption, event study designs, variations for multiple groups and time periods, and robustness checks.

How It's Best Learned

Design a DD analysis with real policy variation, create event study plots, test parallel trends assumption, conduct robustness checks with alternative specifications.

Common Misconceptions

Explainer

The difference-in-differences (DiD) estimator is a strategy for extracting a causal effect from observational data when a natural experiment creates two groups: one that experienced a policy change and one that did not. You already know from your prerequisite work on causal inference that the fundamental problem is constructing a credible counterfactual — what would have happened to the treated group if they hadn't been treated? DiD solves this by using the control group's trajectory as a substitute for that counterfactual.

The logic works through a double subtraction. First, compare the treated group before and after treatment: this captures the treatment effect but also any time trends unrelated to the policy. Second, make the same before-after comparison for the untreated control group: this captures those background time trends in isolation. Subtracting the second difference from the first removes the confounding time trend and leaves (approximately) the treatment effect. Formally: DiD = (treated_after − treated_before) − (control_after − control_before). The intuition is that the control group serves as a "temperature gauge" — it tells you how much the treated group would have changed anyway.

The critical assumption underlying the entire approach is parallel trends: absent the treatment, the treated and control groups would have followed the same trajectory over time. This cannot be directly verified for the post-treatment period (you don't observe the counterfactual), but you can assess its plausibility using pre-treatment data. If the two groups had similar trends before the policy changed, that increases confidence they would have continued similarly. An event study design plots the treatment effect at each time period — if pre-treatment estimates are near zero and post-treatment estimates diverge, parallel trends looks credible. Be precise about what this test does and doesn't prove: passing a pre-trend test supports the assumption but doesn't guarantee it; a divergence in pre-trends is a red flag, not a definitive refutation.

Modern DiD analysis has grown considerably more complex with staggered adoption designs, where different units receive treatment at different times. Contrary to intuition, this does not simplify estimation — it creates subtle bias problems when effects are heterogeneous across cohorts and time periods. Standard two-way fixed effects regression (unit and time fixed effects) was long the workhorse estimator for staggered DiD, but recent methodological work has shown it can produce badly misleading estimates when treatment effects vary. Newer estimators by Callaway-Sant'Anna, Sun-Abraham, and others construct clean comparisons using not-yet-treated units as controls. The key practical lesson: when your treatment rolled out across units at different times, use a modern staggered DiD estimator rather than a naive regression, and report event study plots to make your identifying assumptions visible.

What did you take from this?

Topics in reflective domains aren't scored by quiz answers. Read, reflect, and mark when you've thought it through.

Quiz me anyway →

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Conditional Distributions → Bivariate Normal Distribution → Normal Distribution → Standard Normal Distribution and Z-Scores → Hypothesis Testing Fundamentals → Research Methods in Sociology → Advanced Research Design → Causal Inference from Observational Data → Difference-in-Differences Estimation

Longest path: 102 steps · 667 total prerequisite topics

Prerequisites (6)

Leads To (2)