Towards Reliable Synthetic Control

Hang Yu16 Apr 2024

Problem

Analysts often have to measure the effect of something they cannot randomize, for example outdoor billboards for a store chain. The usual answer is a synthetic control: model the treated unit from untreated units and compare the model's prediction with what actually happened. The catch is that the true counterfactual is never observed, so nobody knows how far the estimated average treatment effect (ATE) is from the truth, and the estimate depends on choices such as which controls to use.

Example from the article: a simulated chain of 500 stores in New Zealand in 2019, where store 1 gets a known +20% uplift from 2019-09-01 and the other stores serve as candidate controls.

Solution in brief

Using simulated data with a known effect, the author tests three choices: pre-treatment correlation of the controls, fitting window length and number of controls. Error falls with higher correlation and more controls, and is lowest for a window of about 2 to 3 months.

Questions this case answers
  • How to make a counterfactual-based effect estimate more reliable when the treated unit cannot be randomized and the true counterfactual is never observed
  • How to choose control units, history length and control count for a model-based counterfactual so the estimated effect stays close to the real one
  • How to measure the effect of an intervention that cannot be randomized, such as billboard advertising?
  • How to pick control units for a synthetic control so the effect estimate is closer to the truth?

Tools and methods

  • Synthetic control — builds the counterfactual of the treated unit from untreated units by minimizing the pre-treatment gap
  • Bayesian structural time series (BSTS) in CausalImpact — the model that produces the counterfactual and its intervals
  • Simulated time series — 500 stores with trend, noise, holiday, weekday and seasonal factors, generated with the Nike timeseries-generator package
  • MAPE of the estimated ATE — the error measure against the known +20% effect
Continue reading — it's free

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