The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Graduate Econometrics

Graduate · Module 13 of 15

Difference-in-differences, event studies, and synthetic control

Parallel trends, two-way fixed effects and what goes wrong with staggered adoption, the Goodman-Bacon decomposition, new heterogeneity-robust estimators, event studies and pre-trends, and synthetic control.

By Maximus S. Waldbauer · About 6 to 7 hours, including the problem set and quiz.

Difference-in-differences (DiD) is the most widely used research design in applied economics. It compares how outcomes change over time for units that adopt a policy with how they change for units that do not. The classic two-group, two-period version is simple, and Statistics and Econometrics covered it. Real policies are messier: they roll out at different times, their effects grow or fade, and the parallel-trends assumption needs defending.

Since about 2018, a burst of research has shown that the standard two-way fixed effects regression can give badly misleading answers in these settings and has produced better estimators. This module explains what goes wrong and why, covers the new heterogeneity-robust estimators and event studies, discusses how to assess parallel trends honestly, and ends with synthetic control, the method of choice when a single unit is treated.

By the end of this module you will be able to

What this module covers

  1. The 2×2 design and parallel trends
  2. Staggered adoption and the problem with two-way fixed effects
  3. Heterogeneity-robust estimators
  4. Event studies and assessing parallel trends
  5. Synthetic control
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 13.1 Free lesson

The 2×2 design and parallel trends

Two groups (treated and control) and two periods (before and after). Using potential outcomes, the target is the ATT in the post period, E[Ypost(1) − Ypost(0) | treated]. The missing piece is E[Ypost(0) | treated]: how the treated would have done without the policy. DiD fills it in with the parallel trends assumption:

E[Ypost(0) − Ypre(0) | treated] = E[Ypost(0) − Ypre(0) | control]

Without treatment, the treated group’s average outcome would have changed by the same amount as the control group’s. Levels can differ; changes cannot. Then

ATT = (ȲT,post − ȲT,pre) − (ȲC,post − ȲC,pre)

Two other assumptions are needed: no anticipation (outcomes do not respond before the policy starts) and SUTVA (the policy in one group does not affect the other). The regression version, Yit = α + γTreati + λPostt + β(Treati × Postt) + uit, gives exactly the same β.

Worked example: The minimum wage and fast-food jobs

Card and Krueger (1994) compared fast-food restaurants in New Jersey, which raised its minimum wage on April 1, 1992, with restaurants across the border in eastern Pennsylvania, which did not.

Average full-time-equivalent employment per restaurant went from 20.44 to 21.03 in New Jersey and from 23.33 to 21.17 in Pennsylvania.

DiD = (21.03 − 20.44) − (21.17 − 23.33) = 0.59 + 2.16 = 2.75 FTE workers (they report 2.76, SE 1.36, from unrounded means): no evidence of job losses. The finding started a long debate about minimum wages, and about whether Pennsylvania is a valid counterfactual for New Jersey.

Parallel trends is about functional form too

Parallel trends in levels and parallel trends in logs cannot both hold unless the groups start at the same level. Choosing the scale is part of the assumption, and it should be argued from the economics (do shocks affect cafés proportionally, or in dollars?).

Key ideas

  • DiD identifies the ATT if, absent treatment, treated and control outcomes would have changed by the same amount.
  • No anticipation and no spillovers are also needed.
  • Parallel trends depends on the outcome’s scale (levels or logs).

Practice questions: Difference-in-differences, event studies, and synthetic control

Try these, then open each answer to check your work.

  1. 1.The parallel trends assumption says that
    1. treated and control groups have the same level of outcomes
    2. treatment effects are the same for everyone
    3. the control group is randomly chosen
    4. without treatment, treated and control outcomes would have changed by the same amount
    Show answer

    Answer: D. Levels may differ; DiD needs equal counterfactual changes.

  2. 2.In a staggered rollout, which 2×2 comparison inside TWFE is the source of bias when effects change over time?
    1. Late adopters compared with already-treated early adopters
    2. Early adopters compared with never-adopters
    3. Late adopters compared with never-adopters
    4. Early adopters compared with not-yet-treated late adopters
    Show answer

    Answer: A. Already-treated units are not valid controls when their own effects are still changing.

  3. 3.Employment goes from 20.44 to 21.03 in the treated state and from 23.33 to 21.17 in the control state. What is the DiD estimate?
    1. −1.57
    2. 0.59
    3. 2.16
    4. 2.75
    Show answer

    Answer: D. (21.03 − 20.44) − (21.17 − 23.33) = 0.59 + 2.16 = 2.75 (Card and Krueger report 2.76 from unrounded means).

Problems with step-by-step solutions

  1. 4.A café chain raises prices at its downtown branches. Weekly sales (hundreds) go from 40 to 38 downtown and from 30 to 31 at suburban branches. Compute DiD and state the assumption.
    Show step-by-step solution
    1. DiD = (38 − 40) − (31 − 30) = −2 − 1 = −3 hundred.
    2. Assumes downtown sales would have risen by 1 hundred like the suburbs’ without the price rise (parallel trends), with no anticipation and no spillovers between locations.
  2. 5.Show that the coefficient on Treat × Post in the 2×2 regression equals the DiD of means.
    Show step-by-step solution
    1. The four cell means are α (control, pre), α + λ (control, post), α + γ (treated, pre), α + γ + λ + β (treated, post): the saturated model fits them exactly.
    2. DiD = [(α + γ + λ + β) − (α + γ)] − [(α + λ) − α] = β.

Get the full module

The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).

Join the waitlist Try a full module free

More practice: free practice questions for this course.