ECON 4309 · Quantitative Methods for Social Sciences · Reading companion

Synthetic Control, in about 15 minutes

A plain-language guide to synthetic control, built from two readings: the synthetic control section of Chapter 22 of The Effect by Nick Huntington-Klein, and Chapter 11 of Causal Inference: The Mixtape by Scott Cunningham. The Mixtape chapter has a lot of math; this guide focuses on the intuition. Read this first, play with the two simulators, and then use the reading guide at the end.

Pairs with Lecture 13: Synthetic ControlThe Effect: §22.2.1Mixtape: Ch. 11~15 min

1. The big idea in 60 seconds

In 1988, California voters passed Proposition 99: a 25-cent-per-pack cigarette tax, plus money for anti-smoking campaigns and clean-air rules. Did it reduce smoking?

The problem: there is only one California. Cigarette sales were already falling everywhere in the 1980s, so "before vs. after" mixes the policy with the national trend. Difference-in-differences needs a control group that moves in parallel with California, but no single state looks like California, and the average of all other states doesn't either.

Synthetic control's answer: if no state looks like California, build one. Take a weighted average of other states, choosing the weights so that this "synthetic California" matches the real California's smoking year after year before 1989. In the real study, synthetic California was about one-third Utah, one-quarter Nevada, one-fifth Montana, plus some Colorado and Connecticut.

After 1989, the synthetic California shows what probably would have happened without Prop 99. The gap between the real and the synthetic California is the effect. By 2000, real California was selling about 26 fewer packs per person per year than its synthetic twin.

One sentence to rememberSynthetic control is difference-in-differences where the control group is a custom-built weighted average, chosen so that its pre-treatment path matches the treated unit's almost exactly.

2. Seven words you need

Treated unitThe one place (state, country, city) that got the policy or event.California, which passed Prop 99.
Donor poolThe untreated units you are allowed to build the synthetic control from.The other states that did not pass big tobacco programs.
WeightsHow much each donor counts. In classic synthetic control, every weight is between 0 and 1 and they add up to 1. Most donors usually get zero.Utah 0.33, Nevada 0.23, Montana 0.20...
Synthetic controlThe weighted average of the donors: a "counterfeit" version of the treated unit."Synthetic California."
Pre-treatment fit (RMSPE)How closely the synthetic matches the real unit before treatment. RMSPE is the typical size of the miss (root mean squared prediction error). Smaller is better.A pre-1989 RMSPE of 2 packs means the lines are very close.
GapReal outcome minus synthetic outcome. Before treatment it should be near zero; after treatment it is the estimated effect.About −26 packs per person in 2000.
Placebo test (randomization inference)Pretend each donor was treated, build its synthetic control, and see if the real unit's gap is unusually large compared with these fake gaps.California's gap was the most extreme of 39 states.

3. Simulator: build a synthetic California

The lines below are simulated cigarette sales (packs per person) that mimic the shape of the real study. Six states are in the donor pool. Move the sliders to choose how much each donor counts; the weights are automatically rescaled so they add up to 1. Your goal: make the dashed line (synthetic California) sit on top of the solid line (real California) before 1989, the year Prop 99 took effect.

Synthetic California: cigarette sales per person

Simulated data. Gray lines are the donors; the shaded area after 1989 is the estimated effect.

Real CaliforniaSynthetic California (your weights)Donor states
Pre-1989 fit (RMSPE)
–
Avg. gap 1989–2000
–
Gap in 2000
–

  1. The chart starts with the best-fit weights. Now click Equal weights. This is like comparing California with the average state. Look at the fit before 1989: the lines don't match, so the "effect" after 1989 can't be trusted.
  2. Click Nevada only. One state on its own is a poor twin, just like Card picking four cities by hand.
  3. Click Find the best weights. Notice that Kentucky gets (almost) zero weight: synthetic control ignores donors that don't help. The answer is close to the real study's weights.
  4. Now check Make California an outlier and click Find the best weights again. No weighted average of donors (with weights between 0 and 1) can go below the lowest donor, so the fit fails. If the pre-treatment fit is bad, don't trust the gap.
The "synthetic Messi" problemCunningham's example: try to build a synthetic Lionel Messi from a weighted average of other soccer players. Because weights must be between 0 and 1, the average can never be better than the best player in the pool. Synthetic control can only interpolate (land somewhere between the donors), never extrapolate beyond them. That is a feature, not a bug: it stops the method from inventing unrealistic counterfactuals. But it means synthetic control only works when the treated unit is inside the range of its donors.

4. Why this counts as causal (and how it differs from DiD)

All of causal inference is about filling in the missing counterfactual: what would California have looked like without Prop 99? Synthetic control fills it in with a weighted average of real, untreated states measured at the same time. If that average tracked California closely for many years before the policy, it is believable that it would have kept tracking California afterward, except for the policy.

Why a long pre-treatment match is persuasiveWe can only match on things we can measure. But if the synthetic California follows the real one up and down for 19 years (1970–1988), the unmeasured things that drive smoking (culture, health attitudes, the economy) are probably similar too. Units that differ in important hidden ways rarely move together that closely for that long.
Difference-in-differencesSynthetic control
Number of treated unitsAny numberUsually one (a state, a country)
Control groupChosen by the researcher, usually equally weightedBuilt by a matching algorithm: a weighted average of donors
Key assumptionParallel trends: hoped for, then checkedThe pre-treatment match is forced to be close; you check how good it is
Pre-treatment periods neededAt least one; more helpsMany (the more the better)
Statistical significanceRegression standard errorsPlacebo tests (randomization inference)
Main outputOne coefficientA picture: two lines that match, then split

Advantages both authors stress:

"Isn't matching on the outcome cheating?"Synthetic control matches on the outcome variable itself (cigarette sales), which feels like using the answer to get the answer. Huntington-Klein's reply: it only uses pre-treatment outcomes, never the post-treatment ones where the effect is measured. DiD uses pre-treatment outcomes too, just less visibly.

5. What has to be true (and how to check it)

What must be trueIn the Prop 99 storyHow to check it
Good pre-treatment fit over a long periodSynthetic California tracks real California for 1970–1988.Plot both lines; report the pre-treatment RMSPE. If the fit is poor, stop.
Treated unit inside the range of the donorsCalifornia is not more extreme than every other state.Is the treated unit the highest or lowest in the pool? Can the weighted average reach it?
Donors were not treatedStates with their own big tobacco programs were dropped from the donor pool.Read up on what happened in each donor during the study period. Drop units that got similar policies.
No spilloversProp 99 didn't change smoking in Nevada (e.g., Californians crossing the border to buy cheaper cigarettes would make Nevada a contaminated donor).Think about the mechanism. Drop neighbors as a robustness check.
No other big shock hits only the treated unit at the same timeNothing else unique to California in 1989 cut smoking.Know the history. A synthetic control can't separate two events that happen together.
Predictors make senseIncome, cigarette price, share of young adults, beer consumption, past cigarette sales.Show a balance table: real vs. synthetic vs. average donor on each predictor.

Robustness checks you'll see in papers:

6. Simulator: is the gap real? Placebo tests

With one treated unit, the usual standard errors don't make sense. Instead, synthetic control asks: if we pretend each untreated state got the policy, how big are their fake "effects"? If California's gap is bigger than almost all of the fake gaps, it's unlikely to be luck.

The fairest comparison isn't the size of the gap alone, because some states are hard to match even before treatment. So we use a ratio: the post-treatment gap (RMSPE after 1989) divided by the pre-treatment gap (RMSPE before 1989). A real effect means a good fit before and a big gap after, so a big ratio. Rank every state by that ratio. The p-value is California's rank divided by the number of states.

Placebo test: California vs. 38 placebo states

Simulated gaps (real minus synthetic). Each gray line is a donor state treated as if it had passed Prop 99.

CaliforniaPlacebo states
California's ratio
–
Rank (of 39)
–
p-value
–

  1. At an effect of 26 packs, California's line breaks away from the gray "spaghetti" after 1989 and ranks 1st of 39: p = 1/39 ≈ 0.026, the same p-value as the real study.
  2. Slide the effect down to 0. California now looks like any other state, and the p-value is large.
  3. Find roughly the smallest effect that still gives p ≤ 0.05 (rank 1 out of 39 is the only rank that does). Click New random draw a few times: with only 39 states, results near the cutoff can flip.
  4. Check Hide placebos with a poor fit. The wild gray lines were states the method could not match even before 1989; their big post-1989 gaps don't mean anything. That's why the test uses the post/pre ratio.
Two limits of the placebo test

7. The famous cases

StudyQuestionWhat synthetic control showed
Basque Country
Abadie & Gardeazabal (2003), the first synthetic control. The Effect's example.
Did terrorist conflict, starting around 1970, hurt the Basque economy?Built from other Spanish regions (mostly Cataluña and Madrid), the synthetic Basque Country matched closely before 1970 and stayed close for a few years while the conflict was mild. As the violence escalated, real GDP per person fell below the synthetic version.
California Prop 99
Abadie, Diamond & Hainmueller (2010)
Did the 1988 tobacco program reduce smoking?About 26 fewer packs per person by 2000; California ranked 1st of 39 in the placebo test (p ≈ 0.026).
Mariel Boatlift
Card (1990); Peri & Yasenov (2019)
Did 125,000 Cuban arrivals in 1980 (a 7% increase in Miami's labor force) lower local wages?Card's hand-picked four cities found no clear effect. A later synthetic control study reached similar conclusions, with a less subjective control group.
Texas prisons
Mixtape data exercise
Did Texas's 1993 prison-building boom raise Black male incarceration?Synthetic Texas (California 0.41, Illinois 0.36, Louisiana 0.12, Florida 0.11) matched before 1993; real Texas then rose far above it. Texas ranked 2nd of 46 in the placebo test (p ≈ 0.04).

Lecture 13 adds another case: Did Pinochet cause the "Chilean miracle"? Use it to practice: what would the donor pool be, and what would have to be true?

8. Optional: when the fit is bad

Most of the second half of the Mixtape chapter is about one problem: what if no weighted average matches the treated unit well? Classic synthetic control may then be biased, and Abadie's own advice is not to use it. Newer methods relax the rules. You only need the one-line idea of each:

9. Doing it in R (with AI help)

In this class, AI writes most of the code. Your job is the design and the checking. The tidysynth package is the easiest to use, and it includes the Prop 99 data as smoking. These are the steps a synthetic control analysis should include and what to verify at each one:

StepTypical RWhat you check
1. Choose the donor poolsmoking |> distinct(state), then filter() out units you excludeWere any donors treated with something similar? Could the policy spill over to them? Is the treated unit inside the range of the donors?
2. Plot it firstTreated unit vs. the average of the donors over time, with ggplot()How bad is the plain-average comparison? That's what synthetic control has to beat.
3. Set up the modelsynthetic_control(outcome = cigsale, unit = state, time = year, i_unit = "California", i_time = 1988, generate_placebos = TRUE)Are the treated unit and treatment year right?
4. Add predictorsgenerate_predictor(time_window = 1980:1988, price = mean(retprice, na.rm = TRUE), ...)Are all predictors measured before treatment? Do they plausibly predict the outcome?
5. Fit the weightsgenerate_weights(optimization_window = 1970:1988) then generate_control()Does the optimization window stop before treatment?
6. Inspect the matchplot_trends(), grab_unit_weights(), grab_balance_table()Do the lines overlap before treatment? Which donors get weight, and does that make sense? Is the balance table close?
7. Estimate the effectplot_differences(); average the gap after treatmentIs the pre-treatment gap near zero? Report the effect in the outcome's units and as a percent.
8. Inferenceplot_placebos(), plot_mspe_ratio(), grab_significance()What is the treated unit's rank and p-value? How many units are there (what's the smallest possible p)?
9. RobustnessRe-run with a fake earlier treatment date; drop the top-weighted donorDoes the result survive?
Verify one number by handThe synthetic value in any year is just a weighted average: multiply each donor's outcome in that year by its weight and add them up. Do this for one year to confirm you understand what the AI's code produced.
Common mistakes

10. How to read the chapters

The Effect, Chapter 22. Synthetic control gets a short section (about 1,500 words) in a chapter about newer methods. Read it all; it's the clearest short introduction.

SectionWhat it covers
22.1 It Never StopsWhy this chapter is a tour of newer methods. One page.Read
22.2.1 Synthetic ControlHow it differs from DiD, the Basque example, pros and cons, "isn't matching on the outcome cheating?"Read closely
Rest of Ch. 22 (matrix completion, causal discovery, double machine learning, causal forests...)Other new methods. Interesting but beyond this course.Optional

The Mixtape, Chapter 11. Much longer and more technical. Here's where to spend your time:

SectionWhat it covers
11.1 opening + "Cuba, Miami, and the Mariel Boatlift"Where synthetic control came from and why Card's hand-picked controls were a problem.Read
"Formalization"The math for choosing the weights. Read only the sentence in words: weights are non-negative and add up to one.Skip the math
"Outcome Model Assumption"The "factor model." Read the last paragraph: why a long pre-treatment match suggests hidden factors are balanced.Skim
"Example: California's Proposition 99"The classic application and its balance table.Read closely
"Inference with Synthetic Control"Placebo tests and the post/pre RMSPE ratio. Skip the formula; read the steps.Read
"Data Exercise: Texas Prison Construction"A full worked example. Read the story and the figures; skip the Stata code.Skim
"Weighting Donor Pool Units and the Risk of Extrapolation" + "Factor Models and Imperfect Fit"Why weights must be between 0 and 1; the Michael Jordan and Messi examples; cherry-picking.Read
11.2–11.5Demeaning, augmented synth, matrix completion, synthetic DiD. Graduate level.Optional
11.6 Concluding RemarksOne paragraph.Skim