Difference-in-differences for ML experiments — when?
hardAnswer
- When randomization impossible (e.g., can't ethically deny users, city-wide rollout).
- Compare treatment vs control unit change over pre-post period: .
- Assumes parallel trends absent treatment.
- Use when: (1) staggered rollouts across geographies.
- (2) policy changes affecting group.
- (3) natural experiments.
- Modern: synthetic control constructs weighted combination of control units.
Check yourself — multiple choice
- Same as A/B
- ; parallel trends assumption; use when random impossible (staggered rollout / policy / natural); synthetic control extension
- Random
- Not real
DiD: (T post - T pre) - (C post - C pre); parallel trends.
#experimentation
Practise MLOps & Data Quality
215 interview questions in this topic.