Difference-in-Differences

hard
Unit 22 · Causal Inference & A/B Testing0/0 to milestone

A city launched a new delivery promise in one region in week 10. Sales went up there, but they also went up everywhere (it was summer). Difference-in-differences compares the change in the treated group with the change in a control group:

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Difference-in-Differences · TechGradify