What is difference-in-differences?
Difference-in-differences compares the change in a treated group with the change in a group that didn’t get the treatment, both measured before and after. If the two were moving in parallel beforehand, the comparison group’s change shows what would have happened anyway, and the extra change in the treated group is the estimate.
Last time's quick check: a propensity score is the probability that a unit was treated, given everything you measured. The simplest evidence is before and after: something changes, and you compare. Takaki's beriberi voyage was one. But many things change over time at once: prices, weather, fashions, other policies. On its own, before and after can't tell them apart.
Add a comparison group that didn't get the change, and measure both before and after. If the two were moving in parallel beforehand, the comparison group's change shows what would have happened anyway. The extra change in the treated group is the estimate. That's difference-in-differences.
Its key assumption is called parallel trends: without the change, the two groups would have kept moving together. You can check whether they did before the change. You can't check afterwards, so it stays an assumption. In the UK, researchers compared supermarkets that removed sweets, chocolate and crisps from their checkouts with supermarkets that didn't, tracking household purchases month by month.
A long run of measurements before and after a change is called an interrupted time series; this one had a comparison too. Purchases of the targeted foods fell an estimated 17 per cent straight away. A year on, the estimate was 15.5 per cent, but less robust. And purchases aren't the same as eating.
In a university's cafeterias, some outlets added carbon labels to their meals and others didn't. Across more than 80,000 meal choices, emissions per meal fell 4.3 per cent where labels appeared. It wasn't randomised, so the estimate rests on the labelled and unlabelled cafeterias behaving alike in every other way.
In Mexico, warning labels on packaged foods became law for everyone, so there was no unlabelled comparison. Researchers projected the sales trend from before the policy and compared it with what happened. Added sugar sold per person fell an estimated 25 per cent, while overall sales volume held steady.
But with no comparison group, anything else that changed at the same time could be part of that number, and this was during the pandemic. The more a design leans on a projected trend, the more you have to believe that nothing else changed. Next: experiments that nobody designed.
A long run of measurements before and after a change. In Mexico, warning labels became law for everyone, so researchers projected the sales trend from before the policy and compared it with what happened: added sugar sold per person fell an estimated 25 per cent. With no comparison group, anything else that changed at the time, during the pandemic, could be part of that number.
In a university’s cafeterias, some outlets added carbon labels to their meals and others didn’t. Across more than 80,000 meal choices, emissions per meal fell 4.3 per cent where labels appeared. It wasn’t randomised, so the estimate rests on the labelled and unlabelled cafeterias behaving alike in every other way.
Causal evidence is changing how farming is measured and rewarded. Leave your email and we will tell you when new films, courses and findings are published.
Prefer to read online? Vitagri also writes on Substack. See our privacy policy for how we use your email.