Ridge ASCM on the Mixtape studies — Proposition 99 and Texas prisons#

Estimator:

Vanilla Synthetic Control (VanillaSC) with augment="ridge" and inference="jackknife_plus".

Source:

Ben-Michael, Feller & Rothstein (2021), “The Augmented Synthetic Control Method,” JASA 116(536); reference implementation: the augsynth R package (ebenmichael/augsynth), commit 7a90ea48. The two applications are from Scott Cunningham’s Mixtape teaching material.

Replication type:

Cross-validation — mlsynth matched value-for-value to a live augsynth run on two panels.

Status:

Verified — ATT, imbalance, jackknife+ interval, selected penalty and all 88 donor weights reproduced.

Why these two studies#

Both are one line of R:

augsynth(cigsale  ~ treated, unit = state,    time = year, data = smoking,
         progfunc = "ridge", scm = TRUE)
augsynth(bmprison ~ treated, unit = statefip, time = year, data = texas,
         progfunc = "ridge", scm = TRUE)

and the augmentation does something completely different in each. That contrast is the point of pairing them.

Study

Treated

\(T_0\)

\(J\)

\(\lambda\)

Pre-fit RMSE, simplex → ridge

Proposition 99

California, 1989

19

38

\(4.30\times 10^{2}\)

\(1.656 \to 0.734\)

Texas prisons

Texas, 1993

8

50

\(1.74\times 10^{10}\)

\(862.9 \to 861.3\)

Proposition 99 is the method working as advertised. The simplex fit puts weight on six donors and still misses California by 1.66 packs per capita. The ridge augmentation halves that, spreading onto 36 donors with negative weights summing to \(-0.28\) — the extrapolation outside the convex hull that the correction exists to permit.

Texas is where the method switches itself off. With only 8 pre-treatment years the cross-validation cannot justify any augmentation: it selects a penalty of \(1.74\times 10^{10}\), the fitted weights move by at most \(3.2\times 10^{-4}\) from the plain simplex solution, the support stays at the same three donors (Florida 0.373, New York 0.356, Illinois 0.272), the negative weights sum to \(-0.002\), and the pre-treatment fit improves by 0.2%. Augmented SCM has degenerated to SCM, and it did so on its own.

The penalty gap is not a units artefact. Prison counts run about 19,400 against 116 packs per capita, so an outcome-scale penalty would differ between the panels by roughly \(2.8\times 10^{4}\); the selected penalties differ by \(4.0\times 10^{7}\), three orders beyond that. The short pre-period is what drives it.

Near-zero negative weights are not the diagnostic they look like#

Negative donor weights are the augmentation. The correction added to the simplex solution is a map of the pre-treatment residual, so it vanishes exactly when that residual vanishes: on a synthetic panel whose treated unit is an exact convex combination of donors, the correction is identically zero and no weight goes negative, and as residual is added the total negative weight grows with it.

That makes near-zero negatives ambiguous, because they have two causes. Either the simplex fit is so good the correction has nothing to do, or the cross-validation has switched an augmentation off over a fit that is poor. On Texas it is the second, and the two are told apart by the residual and not by the weights.

Handed a penalty of 10 — far below either study’s cross-validated pick — the augmentation on Texas extrapolates six times harder than on Proposition 99:

Proposition 99

Texas

Total negative weight at \(\lambda = 10\)

\(-0.723\)

\(-4.548\)

Total negative weight at the CV penalty

\(-0.281\)

\(-0.00196\)

Best held-out gain over plain SCM

28.3%

0.7%

Texas wants the extrapolation more and gets less for it. Its treated unit sits at the 96th percentile of the donor pool — rank 3 of 51 in every pre-treatment year, behind only California and New York — and no convex combination of donors reaches it, so the simplex fit misses by 20.0% of the treated series’ own pre-period standard deviation against Proposition 99’s 14.6%. With 8 pre-periods against 50 donors, none of what the ridge model learns generalises: holding out each pre-period in turn and refitting, the best improvement over plain SCM available anywhere on a penalty grid is 0.7%, against 28.3% on Proposition 99. The cross-validation is right to discard it.

One further reading of the weights to guard against. The base fit here is a genuine simplex solution — zero negative weights on both panels, pinned by the case. augsynth’s own progfunc = "None" returns 46 negative weights on the Texas panel, but at \(-4\times 10^{-9}\) summing to zero, which is osqp’s solve tolerance. The ridge fit’s negatives are four orders of magnitude larger, and on Proposition 99 five.

What the case guards#

The Texas failure mode is invisible to inspection. An implementation whose penalty grid was clamped, or whose cross-validation shrank differently at short \(T_0\), would turn the augmentation back on — and because ridge moves the pre-treatment fit by only 0.2% there, the fitted path would look the same in a plot while the post-period counterfactual, and so the ATT, moved. Pinning the ATT alone would catch it after the fact without saying why; the case pins the mechanism as well — ridge_rmse_gain and ridge_weight_shift for what the augmentation does to the fit, and loo_best_gain and sum_neg_probe for what it would do if the penalty let it. The second pair is the stronger guard: it fails the moment anything clamps the penalty grid, because a clamped grid cannot reproduce a total negative weight of \(-4.55\) at \(\lambda = 10\) alongside \(-0.002\) at the selected penalty.

Cross-validation results#

Quantity

mlsynth

augsynth 0.2.0

Relative gap

ATT (Prop 99)

\(-15.952568\)

\(-15.952578\)

\(6.3\times 10^{-7}\)

jackknife+ interval (Prop 99)

\([-22.13713, -12.26853]\)

\([-22.13712, -12.26854]\)

\(\le 1.0\times 10^{-6}\)

Pre-fit \(L_2\) (Prop 99)

\(3.197963\)

\(3.197961\)

\(6.9\times 10^{-7}\)

ATT (Texas)

\(20{,}972.161\)

\(20{,}972.170\)

\(4.1\times 10^{-7}\)

jackknife+ interval (Texas)

\([18900.108, 23849.490]\)

\([18900.107, 23849.482]\)

\(\le 3.4\times 10^{-7}\)

Pre-fit \(L_2\) (Texas)

\(2436.2091\)

\(2436.2089\)

\(9.7\times 10^{-8}\)

All 88 donor weights agree too, worst cell \(1.4\times 10^{-6}\) on Proposition 99 and \(4.3\times 10^{-6}\) on Texas. The weights agree less closely than the ATT does, which is what two exact solvers on a quadratic program with near-collinear donors should do: mlsynth solves the base simplex problem with its own active set and augsynth with osqp, and the difference between them falls in directions that barely move the fitted series.

The scaled \(L_2\) imbalance — augsynth’s scaled_l2_imbalance, the imbalance divided by what uniform donor weights would leave — is 0.0457 for Proposition 99 and 0.0593 for Texas. Both fits close about 95% of the naive gap, which is the one thing the two studies agree on.

Reproducing it#

python benchmarks/run_benchmarks.py --case ascm_mixtape

The reference values are committed, so the case runs without R. To regenerate them against a live augsynth:

bash benchmarks/R/install_augsynth.sh
python benchmarks/reference/generate.py ascm_mixtape

The bundle under benchmarks/reference/ascm_mixtape/ holds the exact R script, its verbatim output, the parsed values, and full provenance — R and package versions, platform, git SHA, and a checksum of each input panel.

Data#

basedata/smoking_data.csv is the Mixtape’s synth_smoking.dta with the state labels decoded; California is state 3 there, which is what state == "3" selects in the original script. The two agree to \(1.2\times 10^{-5}\), which is float32 storage in the .dta.

basedata/texas_bmprison.csv is the bmprison column of the Mixtape’s texas.dta — 51 states over 1985–2000, balanced, no missing values.

Both the R reference and the Python case read these CSVs, so the two sides see byte-identical inputs and any disagreement is the estimator and not the ingestion.

Durable cases and tests#