All topics

Difference-in-Differences

Estimating causal effects by comparing changes over time between treated and untreated groups

Econometrics 6 chapters

Many treatments or policy changes happen at a specific point in time. We observe the world before and after — but how much of the change is actually caused by the treatment?

Difference-in-Differences (DiD) answers this by comparing changes over time between a group that received treatment and a group that didn't. The key insight: use the untreated group's change as a proxy for what would have happened to the treated group without treatment.

These notes walk through the intuition, the regression framework, and the assumptions that make it all work.

Built with SvelteKit + D3.js