AI engineering glossary · Statistics inference

What is difference-in-differences?

Difference-in-differences (also called DiD): A method that compares the change over time in a treated group with the change over the same period in an untreated group. It removes stable group differences and shared trends, under the assumption of parallel trends.

Level: advancedTopic: Statistics inference

Difference-in-differences: an example

Sales in cities where a new delivery service launched rose by 12 percent while other cities rose by 5 percent, giving an estimated effect of 7 points.

Related terms

More Statistics inference terms

Where you learn it

Difference-in-differences is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.