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.
Note: This is the printable version. The interactive version, with the simulators, is on the course website.
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.
2. Seven words you need
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.
- 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.
- Click Nevada only. One state on its own is a poor twin, just like Card picking four cities by hand.
- 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.
- 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.
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.
| Difference-in-differences | Synthetic control | |
|---|---|---|
| Number of treated units | Any number | Usually one (a state, a country) |
| Control group | Chosen by the researcher, usually equally weighted | Built by a matching algorithm: a weighted average of donors |
| Key assumption | Parallel trends: hoped for, then checked | The pre-treatment match is forced to be close; you check how good it is |
| Pre-treatment periods needed | At least one; more helps | Many (the more the better) |
| Statistical significance | Regression standard errors | Placebo tests (randomization inference) |
| Main output | One coefficient | A picture: two lines that match, then split |
Advantages both authors stress:
- A more disciplined control group. Card's Mariel Boatlift study compared Miami with four cities he picked by hand. Synthetic control lets the data choose.
- Transparency. You see exactly which donors are used and how much. Cunningham's point: a seminar audience may object that "Idaho is 30% of California?!", but ordinary regression also weights units, sometimes negatively, and nobody sees it.
- No extrapolation. Weights between 0 and 1 keep the counterfactual inside the range of real states.
- Design before results. The weights are built using only pre-treatment data, so you can fix your design before ever looking at the post-treatment outcomes.
5. What has to be true (and how to check it)
| What must be true | In the Prop 99 story | How to check it |
|---|---|---|
| Good pre-treatment fit over a long period | Synthetic 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 donors | California 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 treated | States 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 spillovers | Prop 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 time | Nothing else unique to California in 1989 cut smoking. | Know the history. A synthetic control can't separate two events that happen together. |
| Predictors make sense | Income, 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:
- Placebo in space: run the method on each donor as if it were treated (section 6).
- Placebo in time: pretend the policy happened earlier (say, 1980), using only pre-1989 data. There should be no "effect" at the fake date.
- Leave-one-out: drop the donor with the largest weight and rebuild. If the result disappears, it depended on one state.
- Different predictors: Cunningham warns that researchers can "cherry-pick" predictors until they get the result they want. Results that only appear in one specification are fragile.
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.
- 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.
- Slide the effect down to 0. California now looks like any other state, and the p-value is large.
- 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.
- 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.
- The smallest possible p-value is 1 divided by the number of units. With 10 donors, the best you can do is 1/11 ≈ 0.09, so you can never reach 5%.
- The test asks "Is California's gap unusual?", not "How big is the effect, give or take?". It gives no confidence interval in the usual sense.
7. The famous cases
| Study | Question | What 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:
- Demeaned synthetic control (Ferman & Pinto): match the shape of the path, not its level, the way DiD allows different levels.
- Augmented synthetic control (Ben-Michael, Feller & Rothstein): start with ordinary synthetic control, then use a regression to correct for the leftover mismatch. The cost: some weights can become negative, so you are extrapolating again.
- Synthetic difference-in-differences (Arkhangelsky et al.): combine both methods, weighting donor units and pre-treatment years, then take a DiD. Cunningham calls it a promising new tool.
- Matrix completion (Athey et al.): treat the untreated outcomes as a table with missing cells and fill them in using patterns in the rest of the table.
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:
| Step | Typical R | What you check |
|---|---|---|
| 1. Choose the donor pool | smoking |> distinct(state), then filter() out units you exclude | Were 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 first | Treated 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 model | synthetic_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 predictors | generate_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 weights | generate_weights(optimization_window = 1970:1988) then generate_control() | Does the optimization window stop before treatment? |
| 6. Inspect the match | plot_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 effect | plot_differences(); average the gap after treatment | Is the pre-treatment gap near zero? Report the effect in the outcome's units and as a percent. |
| 8. Inference | plot_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. Robustness | Re-run with a fake earlier treatment date; drop the top-weighted donor | Does the result survive? |
- Trusting the post-treatment gap when the pre-treatment fit is poor.
- Leaving treated or contaminated units in the donor pool, or including a unit that contains the treated unit (for example, a country total that includes the treated region).
- Using predictors measured after treatment.
- Treating the placebo-test p-value like a regular regression p-value, or forgetting that it can't go below 1 ÷ (number of units).
- Letting the AI quietly change the donor pool, predictors, or time windows. Tell it not to without asking.
- Trying predictor combinations until the result "works" (cherry-picking).
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.
| Section | What it covers | |
|---|---|---|
| 22.1 It Never Stops | Why this chapter is a tour of newer methods. One page. | Read |
| 22.2.1 Synthetic Control | How 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:
| Section | What 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.5 | Demeaning, augmented synth, matrix completion, synthetic DiD. Graduate level. | Optional |
| 11.6 Concluding Remarks | One paragraph. | Skim |