# Difference-in-Differences

> Source: https://modeladay.com/models/difference-in-differences/
> Category: principle | Topics: causality, science, time | Difficulty: 3/5

## Definition

Difference-in-differences uses the untreated group’s change to estimate how the treated group would have changed without intervention. Starting levels may differ. The key assumption is that without intervention the groups would, on average, change similarly on the chosen outcome scale.

## Core Rule

Difference-in-differences uses the untreated group’s change to estimate how the treated group would have changed without intervention. Starting levels may differ. The key assumption is that without intervention the groups would, on average, change similarly on the chosen outcome scale.

## Opening Context

An American state raises its minimum wage, and fast-food owners now have to pay more for every hour. You might expect them to schedule fewer shifts or hire fewer people. A few months later, the headcount has barely moved. Can you say the raise had no effect?

Think about what else might have happened over those months. A stronger economy could have meant more jobs anyway, or a weaker one could have meant fewer. Two visits to the same restaurant won't tell you what would have happened without the raise.

Difference-in-differences uses the change in a group that stayed under the old rules to estimate what would have happened without the new ones. Two economists went out and counted fast-food jobs. Let's work through what they found and what they had to assume.

## How It Works (Preview)

Start with the two comparisons you could make without much effort. Compare one state before and after, and anything that happened over those months comes along for the ride. Compare both states afterward, and you keep any differences they started with.

In the spring of 1992, New Jersey raised its minimum wage from four dollars and twenty-five cents an hour to five dollars and five cents. Across the border, eastern Pennsylvania had a similar economy, and its minimum wage stayed the same. David Card and Alan Krueger surveyed a total of 410 restaurants across the two states before and after the raise.

## When It Fails (Preview)

When you try this yourself, look carefully at the group you're using for comparison. The calculation can be exactly right and still give credit in the wrong place.

## Full Lesson, Audio & Practice

Get the full Difference-in-Differences breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/difference-in-differences/

## Related Mental Models

- [Regression to the Mean](https://modeladay.com/models/regression-to-the-mean/)
- [Synthetic Control Method](https://modeladay.com/models/synthetic-control-method/)
- [Correlation vs. Causation](https://modeladay.com/models/correlation-vs-causation/)
