Causal inference using synthetic controls

Andreas Stöffelbauer11 Apr 2023

Problem

Product teams often change something that affects a whole unit at once: an ad slot, a publisher, a buyer, a country. A randomized A/B test for that change may be tedious to build, expensive or not allowed. The naive substitutes mislead. A before-and-after comparison confuses the effect with seasonality, and comparing with one similar unit fails because units follow different seasonal patterns. Without a clean comparison, the revenue decision rests on a guess.

Example from the article: Xandr (Microsoft Advertising) wanted to know whether changing the OpenRTB bid request sent for one ad slot, with several million views a day, would change revenue. Daily revenue had strong weekly, monthly and quarterly seasonality.

Solution in brief

Build a synthetic control: a weighted combination of about ten similar untreated units, with weights learned on the pre-intervention period so that it tracks the treated unit closely. If the treated unit and its synthetic copy diverge after the intervention, the gap is the estimated effect. It needs no randomization and works when only one unit is treated.

Questions this case answers
  • How to estimate the causal effect of an intervention applied to a single aggregate unit when randomized assignment is impractical and no single comparison unit is similar enough
  • How to estimate the revenue effect of a change that touches one whole unit when an A/B test is too costly to build?
  • How to build a control group when no single unit is a good enough comparison?
  • How to tell a real effect from weekly and quarterly seasonality in a noisy daily metric?

Tools and methods

  • Synthetic control method — builds the counterfactual for a single treated unit from a donor pool
  • Difference-in-differences — the predecessor method; needs units to move strictly in parallel
  • Synth (R package) — fits the synthetic control model in the case
Continue reading — it's free

Google or a one-time email code. No password.