Repository navigation
Replicate the paper's SCF experiments on the 2025 wave - #6
Conversation
Per the 2026-08-08 stack rename (microcosm repo PR #638): \populace now renders Microcosm, \populacefit -> microcosm-fit, the populace-scale profile becomes production-scale, repo URLs move to PolicyEngine/microcosm, and populace2026 -> microcosm2026 (retitled "formerly Populace"). A footnote at the first product mention explains the legacy prefixes. Registry keys, run artifacts, and the pinned pre-rename git deps are deliberately untouched; tables regenerate from committed artifacts with label-only changes, plus paired-delta sd cells in the ablations table (means unchanged). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…gure Addresses the read-through notes: abstract cut to ~230 words with the three headline results; regime gates rewritten as a four-step flow with concrete examples; the population-view harness gets a TikZ schematic and per-block definitions (energy distance, coverage, C2ST with the Lopez-Paz & Oquab citation, tail block) each ending in a how-to-read sentence; pinball loss named as quantile loss and defined; Wasserstein-1 defined with the order explained; a hand-authored method-surface table makes explicit that the ungated/unchained row is the microimpute QRF baseline, stays weighted, and confounds gating with chaining; results open by defining "the full estimator" and the mean (sd) and bolding conventions; the ablations table gains a worked reading and its sd column exposes the chaining delta's dispersion; "binds"/"omnibus" jargon spelled out; SIPP/PSID future work moved to the discussion; the intro states the SSI caseload itself is not simulated here. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Applied the humanizer style pass after the content edits, per the revision plan's required gate: split the longest multi-clause sentences in the introduction, background, data, results, discussion, and conclusion; un-stacked paired em-dash asides (parentheses or separate sentences where they read better); and verified zero hits for the AI vocabulary and inflated-significance pattern lists across all sections. Numbers, citation keys, macros, and generated tables untouched. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Fed released the 2025 SCF on 2026-10-09. This fixes, before any method is fit on it, which of the paper's SCF findings count as replicated and by what rule: paired-seed sign rules for the within-SCF task, the sampling floor's seed sd as the noise unit for the population view, a factor-of-two band on stated effect sizes, and a Spearman rule for method rankings. Also records what a schema-only look at the new files found: all 17 used columns survive; race folds the Middle Eastern code into class 1; and the Fed re-issued the 2022 extract in 2025 dollars at the same URL, so a cold-cache load no longer reproduces the paper's inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ep and harness The Fed replaced scfp2022s.zip on 2026-10-09 with a copy re-based to 2025 dollars, so a cold-cache load_scf(2022) no longer returned the paper's inputs. The loader now accepts only registered files (SHA-256 -> wave and dollar basis) and returns a stated basis, re-basing with the Fed's CPI-U-RS factors when the cached file is on another one. On the file the paper used the returned frames are bit-identical to before. imp sweep and imp harness take --scf-year and --scf-dollar-year, record the input file's hash and basis in manifest.json, and default non-2022 harness runs to their own run directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
experiments/replication.py encodes the rules of docs/scf-2025-replication-criteria.md: paired-seed difference and tie rules, the sampling floor's seed sd as the population-view noise unit, the factor-of-two magnitude band, and the Spearman ranking rule. imp replication applies them to the committed runs and writes the comparison document, its CSVs, the appendix's verdict table, and a macro file for every number the appendix cites. imp scf-checks checks weights, the balance-sheet identity, and the Fed's Table 2 on both waves. Tests pin the criteria file's hash, its findings and 2022 statuses, and the rules' invariants (sign antisymmetry, tie symmetry, unit and seed-label invariance, self-comparison) with Hypothesis; the loader tests run offline on a synthetic registered extract; test_data.py adds the 2025 weight-total, identity, and Table 2 checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Arm B (runs/*-2025): the three SCF experiments with the SCF 2025 donor, same code, lockfile, seeds, and receiver files as the paper's 2022 runs. Arm D (runs/*-2022-rerun): the 2022 experiments rerun in the same environment; all 3,900 metric rows are identical to the committed runs. Arm C (runs/*-2022-in-2025-dollars): the 2022 wave on the Fed's 2025-dollar basis. runs/scf-population-checks: weight totals, the balance-sheet identity, and all-family net worth against the Fed's Table 2, both waves. runs/scf-hotdeck-reuse: aggregate donor-reuse statistics for the hot-deck matches of both profiles and waves; recomputed q99 ratios match the harness runs to 1e-16. All new runs used OMP_NUM_THREADS=1. No run was skipped or capped differently from the paper's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verdicts under the pre-registered rules (docs/scf-2025-replication-criteria.md): of 8 primary findings, 6 replicated and 2 were inconclusive; of 19 secondary, 10 replicated, 2 replicated in direction with a smaller effect, 2 were inconclusive, and 5 did not replicate. Replicated: the weighting result (unweighted is 4.3 times worse on net-worth W1 within the SCF, 6.1 in 2022; its imputed net-worth q99 is 1.8 times the holdout's in both profiles), chaining binding only at scale (4.9 AUC points), and the classifier's separation of the unconditional marginal draw. Not replicated: hot deck's tail at scale (q99 ratio 2.85 against 0.75 in 2022; one reused donor above the holdout's q99 carries 1.4 to 2.7 percent of receiver weight on 8 of 10 seeds), the candidate as lowest-AUC method at scale, unchaining leaving the tail unchanged, and the 2022 tie between gated and ungated forests on SCF debt zero share. Also in this commit: - judge() applies the criteria file's cap: a claim the 2022 runs do not themselves meet is at best inconclusive (W3c met its rule in 2025 only). - imp hotdeck-reuse and experiments/donor_reuse.py: the aggregate donor-reuse diagnostic, with property tests. - A units diagnostic: within the SCF, re-basing dollars leaves OLS and the marginal draw unchanged and moves forest-based W1 means by up to 7.3%. - paper/sections/appendix_scf2025.tex: draft appendix; every number is a generated macro and a test rejects hand-typed ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n W7 Review (GPT-6.1 Sol, ~/reviews/imputation-paper-scf2025/review-1.md): - Donor reuse: the sufficient condition needs a one-receiver margin under the harness's interpolating quantile. Stated correctly in the appendix, the report, and the docstring; the margin is recorded per run and the test uses it. All nine inflated seeds still satisfy it. - Loader round-trip property: exclude subnormal floats. - Level rules (W3a, W5, W7, F3c) compare values, not names, so a tie at the extremum counts for the claimed method. No committed verdict changes. - Appendix: dollar levels in the verdict tables are in each wave's own dollars; the sentence that said otherwise is corrected. - New differential test: the Fed's re-issued 2022 file against our re-basing of the original (agree to 1e-9; a cold cache reproduces the paper's inputs). Pinball weighting (imp pinball-weighting, runs/scf-pinball-weighting): weighted_pinball_loss reads the imputed quantiles unweighted and scores them against weighted truth. With the quantiles read under receiver weights the marginal draw's net-worth loss is below the candidate's on 4 of 10 seeds in both waves, not 10, so W7 (the marginal draw has the best pinball loss) is a property of the metric. The appendix and the report say so; the paper's metric and tables are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI has failed on this branch since 46b5210. test_committed_report_and_tables_are_current regenerates docs/scf-2025-replication/ on CI's Linux runner and compares it byte for byte with the copy written on macOS. The CSVs there carry full-precision floats, and a mean over seeds in headline_numbers.csv comes out one digit apart in its last place (176625.49660906277 against ...06274). The suite passes on macOS. The test now compares the five CSVs as tables: same columns and rows, text, integer and boolean cells identical, floats equal to 1e-9. comparison.md, the tables and the appendix inputs print rounded numbers and are still compared byte for byte. The test also checks that the regenerated and committed file sets are the same. A second test checks the comparison itself: it passes last-place noise and fails a changed number, a changed word and a dropped row. No committed output and no generating code changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The merge of #2 brings its `imp tables` labels, so the full estimator's row reads "microcosm-fit". The three 2025 tables were written before that and still read "populace-fit", which fails test_committed_report_and_tables_are_current. `imp replication` and `imp tables` rewrite one row label in each of the three tables. No number moves, and nothing under docs/scf-2025-replication/ changes: the report keeps the names the frozen criteria file uses. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings in PolicyEngine#6 as updated to sit on PolicyEngine#2 (its regeneration test compares the full-precision CSVs as tables, and its 2025 tables carry PolicyEngine#2's labels), so this branch is the stack PolicyEngine#2, PolicyEngine#6, fixes. One conflict, in references.bib: PolicyEngine#6 adds the two Federal Reserve 2025 entries next to barcelo2006imputation, which the fixes removed as uncited. Resolved by keeping the removal and both additions. All 40 entries are cited and every citation is defined. README.md, data.tex, pyproject.toml, uv.lock and cli/tables.py merged without conflict. The lockfile keeps the repointed estimator pin and gains PolicyEngine#6's hypothesis. The 2025 tables are regenerated in the next commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… there With PolicyEngine#6 merged in, `imp tables` writes its three 2025 tables with this branch's row label for microimpute's forest, "QRF (microimpute)" instead of "ungated/unchained forest". One row label changes in each table and no number moves. Nothing under docs/scf-2025-replication/ changes: the report keeps the wording of the frozen criteria file. Two places the rename in PolicyEngine#2 could not reach because they did not exist yet: the 2025 scale table's generated-by note and the appendix's two mentions of the profile now say "production scale", as the body does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Built with `quarto render paper/index.qmd --to pdf`. With the SCF 2025 appendix from PolicyEngine#6 it is 36 pages; no undefined reference or citation. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
vahid-ahmadi
left a comment
There was a problem hiding this comment.
The 2025 replication is carefully built. The generated report and tables regenerate byte for byte from the committed runs. The 2022 rerun arm is byte-identical to the committed runs. Reruns from the registered 2025 file reproduce runs/scf-wealth-2025 (four methods) and runs/scf-to-cps-harness-2025 (candidate, hot deck, floor) exactly. The 2025 schema claims hold: 4,360 families, five implicates, all 17 columns, unchanged code sets, and an exact balance-sheet identity. Two points affect how the results are stated.
1. A cold cache does not reproduce the 2022 runs. paper/sections/appendix_scf2025.tex:49-51 says the 2022 results "regenerate regardless of which copy is downloaded", and README.md:51-53 says the same. The Fed now serves only the re-based file (d4e139c6…), and dividing it back by 4789/4376 recovers the originals only to rounding: the differential test itself allows rtol=1e-9. From that file, imp sweep --task scf_wealth --scf-year 2022 for populace_fit, plain_qrf and statmatch_hotdeck matches only 106 of 300 committed runs/scf-wealth rows. Ten-seed means move by up to 5%: candidate net-worth W1 is 131,911 against Table 1's 135,871, and plain_qrf is 222,573 against 234,367. No 2022 status checked (W3b, W4a, W4b, G1) changes. Arm D matched because its manifest records the original 3bb4d890… file, and docs/scf-2025-replication-criteria.md:48 already says a cold cache no longer reproduces the paper. The tests miss this. On a cold cache, test_rebasing_agrees_with_the_feds_reissued_2022_file (tests/test_data.py:158) compares the served file with a load of the same file. test_paper_2022_inputs_are_unchanged (tests/test_data.py:141) checks only the weight total and a ratio between two loads. Suggested fix: correct the appendix and README wording, and either archive the original file (by hash) where the loader can fetch it, or state that the 2022 runs require it.
2. One implicate, seed noise only, and G1 depends on the implicate. load_scf keeps implicate 1 (src/imputation_paper/data/scf.py:379). The rules (docs/scf-2025-replication-criteria.md:99-123) use seed-to-seed spread only: no between-implicate variance and no replicate weights. This is inherited from the paper, but the appendix does not say it. Rerunning the 2025 within-SCF sweep on each implicate, with the same code and seeds (implicate 1 reproduces the committed rows), puts the ungated forest worse on debt zero-share error on 8, 8, 5, 6 and 5 of 10 seeds for implicates 1–5. G1 is therefore "not replicated" on implicates 1–2 and met on 3–5, and on implicate 5 the forest has the lower mean (0.0164 against 0.0209). The sentence at paper/sections/appendix_scf2025.tex:150-152 ("the difference that replaced it favours the gated estimator") describes implicate 1 rather than the 2025 wave. Other verdicts look sturdier. In the minimal profile, hot deck's net-worth q99 ratio exceeds the candidate's on all five implicates (0.79–1.10 against 0.60–0.71), and the F5b hot-deck tie is failed or inconclusive on every implicate, never met. The scale-profile tail failures (F4c, F5b) were not checked per implicate. Without changing the pre-registered verdicts, a per-implicate diagnostic (implicates 2–5, status per finding) would separate findings that belong to the 2025 wave from findings that belong to the draw. The appendix should also say that one implicate is used and that the noise unit excludes imputation and sampling variance.
Review drafted with AI assistance and checked against the code at db2e28f.
…cate is used Review of #6. The appendix and the README said the 2022 results regenerate whichever copy of the 2022 extract is downloaded. They regenerate exactly only from the original file. From the Fed's re-issued copy the loader recovers the inputs to rounding error, and the forest-based methods are sensitive to that. The appendix, the README and the availability statement now say so. Two data tests claimed more than they checked. On a cold cache the differential test compared the re-issued file with itself; it now skips unless the cache holds the original. The inputs test now checks that an unconverted load comes from the original file. The differential test needs the re-issued file, which is not in this cache, so its new guard is unrun. The appendix now states that every run uses the first implicate and that the noise unit excludes between-implicate and sampling variance, and it no longer reads the G1 result as a property of the 2025 wave. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Thanks for the review. Both points are addressed at the top of the stack, in #14 (76509d5), because the PRs above this one rewrite the same paragraphs.
Reply drafted with AI assistance. The fixes are at |
…the committed runs Review of #6, point 1. `runs/scf-wealth-2022-from-reissue` is the 2022 within-SCF sweep (nine methods, ten seeds) run from the re-issued 2022 extract, with the cache holding only that file. The loader converts it back to 2022 dollars: 72 percent of the dollar cells are then bit-identical to the original's and the rest differ in the last floating-point digit. Of the run's 900 metric rows, 344 equal the committed `runs/scf-wealth` rows exactly and 453 agree with them to nine significant digits. Ten-seed mean W1 moves by up to 5.0 percent, and the largest change in any ten-seed mean is 9.8 percent. OLS and the marginal draw change only by rounding. For the three methods the review reran, 106 of 300 rows match, as it found. `imp replication` now reads that run when it is present, adds a section to the comparison document, writes `reissue_check.csv`, and emits the numbers as `\rep{reissue:...}` macros. The appendix and the availability statement cite them in place of "is not expected to reproduce". The differential data test was run with the re-issued file in the cache and passes; its guard is no longer unrun. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Follow-up on point 1. With the re-issued file in the cache, the differential test runs and passes, and
The converted inputs are close: 72 percent of the dollar cells are bit-identical to the original's and the rest differ in the last floating-point digit. That is enough to move the forests. Reply drafted with AI assistance. The run and the check are at |
What this is
The Federal Reserve released the 2025 Survey of Consumer Finances on 2026-10-09. Every SCF experiment in the paper runs on the 2022 wave. This PR reruns all three (the within-SCF wealth task and both profiles of the SCF→CPS population view) on the 2025 wave, which no method here was tuned on, and reports whether the findings hold.
The rules were fixed first:
docs/scf-2025-replication-criteria.mdwas committed and pushed (f1e4827) before any method was fit on 2025 data. A test pins that file's hash.Start with
docs/scf-2025-replication/comparison.md: verdicts, every headline number for both waves, rankings, full tables, and diagnostics. The appendix draft ispaper/sections/appendix_scf2025.tex.Result
27 pre-registered findings. Of the 8 the abstract or conclusion states: 6 replicated, 2 inconclusive, 0 not replicated. Of the 19 others: 10 replicated, 2 replicated in direction with a smaller effect, 2 inconclusive, 5 not replicated.
Replicated:
Not replicated:
Smaller than the band: unweighted on debt W1 (1.49 times against 2.48), and on tail W1/sd (3.1 and 1.7 times against 5.1 and 4.9; "five times" does not hold at scale).
Inconclusive: F1a and F4a (one of several ties fell between one and two floor sds), W3b (within seed noise in both waves), W3c (met in 2025, not in 2022, capped at inconclusive by the criteria).
Outside the rules: energy distance fell by about 30% for the candidate in both profiles and fell for every method, as the criteria anticipated; the candidate's net-worth q90 ratio at scale fell from 1.00 to 0.75.
A finding about the paper's metric (W7)
weighted_pinball_lossreads the quantiles of the imputed draw withnp.quantile, every receiver row counted once, and scores them against weighted truth. With the imputed quantiles read under receiver weights instead:So "the unconditional weighted marginal draw posts the best pinball loss" replicates as stated and is not evidence about the methods.
imp pinball-weightingreproduces the committed pinball losses to 2e-16 and writes both readings for every method. The appendix and the comparison document say this; the paper's metric, Table 1, and the results paragraph built on W7 are unchanged and are yours to decide.Design
runs/*-2025)runs/*-2022-in-2025-dollars)runs/*-2022-rerun)Same code, lockfile, seeds, and receiver files. The receiver is the paper's: ASEC 2025 (minimal) and pooled ASEC 2023–2025 (scale). ASEC 2026 is on census.gov but is not wired into the harness, and holding the receiver fixed keeps this a change of donor wave only.
Arm D is byte-identical to the committed 2022 runs in all three experiments (3,900 of 3,900 metric rows), so verdicts compare B with A.
Things found on the way
scfp2022s.zipon 2026-10-09 with a copy re-based to 2025 dollars (every dollar column × 4789/4376). A cold-cacheload_scf(2022)no longer returned the paper's inputs. The loader now accepts only files registered by SHA-256 with their dollar basis and returns the survey year's dollars by default. On the file the paper used, the returned frames are bit-identical to before.race, which folds the Middle Eastern or North African response into class 1. The dropped Hispanic-origin questions never entered it.judge()first scored W3c as replicated; the criteria cap a claim unmet in 2022 at inconclusive. Fixed, with a test.~/reviews/imputation-paper-scf2025/. Round 2 is running on the fixes and the pinball diagnostic.OMP_NUM_THREADS=1. With default threading on a loaded machine a single cell took minutes instead of seconds.Invariants (with tests)
1 − qof the weight plus the largest receiver's share puts the weightedq-quantile at or above its value (Hypothesis), and the margin is shown to be necessary.For Max to decide (not done here)
working-paperis not merged intomain. The v2 restructure (4d17ccc) lives onorigin/working-paper; this branch is fromorigin/mainas asked and merges cleanly intoworking-paper, but the*_2025.textables would need regenerating there (itsimp tablesuses product-name macros).paper/main.pdfis not rebuilt.Out of scope, worth a look
paper/sections/disclosures.texsays microimpute 1.1.2. The lockfile at the run commit pins 1.15.1, and the rerun under 1.15.1 is byte-identical._weighted_quantiledepends on how tied mass is split into rows (a three-row example gives 0.70, 0.47, or 0.35 for the same weighted sample). Over 200 row orders of a 4,000-row sample it moved no decile-grid quantile by more than 1e-14, so it does not affect the paper's numbers.axiom: n/a: paper replication, no policy rules.
🤖 Generated with Claude Code