Repository navigation
Targeted-intervention scenarios: capture curve, accounting grid, dollar exposure - #84
Merged
Merged
Conversation
Joins official FY2024 state benefit issuance (USDA FNS annual state summary; $93.5B national; per-file sha256 recorded; month/region/US totals reconciled to the dollar by the sourcing pass) to the scenario grid: expected cost-share dollars per state for the single-measurement construction and the sustained FY2028-30 sum. Adds the disclosures the grid needed: the OBBBA delayed-implementation provision is NOT modeled (near-term exposure above the 13.33 percent boundary is overstated), the threshold-convention mix (official nominal for FY2024 deltas, fixed-real for the persistence path, both anchored on FY2025 officials), and the unverified disaster-supplement question in the issuance source. Locks: dollars equal share times the hash-guarded issuance file in every cell; disclosure strings pinned. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
test_live_input_hashes called _provenance(), which hashes the raw SAV files, unconditionally; CI has no raw cache. Repo-file hash checks still always run; the raw comparison now runs only when the hash-audited cache is present, matching the persistence-test convention. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The procedural-interventions increment (Sarah Esty's frame): what happens to the measured rate and the cost-share bill if counted error dollars fall by X in a targeted group — an accounting construction throughout, never a causal claim, labeled as such in the artifact, the memo, and every docstring.
What's here
Capture curve (
analysis/model_capture.py): out-of-sample FY2024 capture by the committed error model — out-of-sample by construction (the script verifies FY2024 is the test year and absent from training before fitting) with the recomputed weighted ROC-AUC matching the locked 0.7666262908275983 to full precision. Oracle/model/random shares of counted error dollars at 1/2/5/10/20% of weighted caseload, nationally and per state. Nine sparse low-budget state cells where model < random-expectation are locked as observed, not smoothed.Intervention grid (
analysis/interventions.py): {oracle, model, self-employment, random} × {1, 5, 10}% weighted coverage (exact via one fractional boundary case) × {25, 50}% effectiveness, per jurisdiction: single-measurement tier probabilities and expected cost share through the existing simulator (new optionaltargeted_membershipspass-through; element-lever path untouched), plus the sustained FY2028–30 construction through the persistence exposure machinery (#83) — the single-measurement delta subtracted from every anchored horizon year, named as an assumption.Dollars: official FY2024 state issuance joined (FNS annual state summary, sha256-recorded, totals reconciled to the dollar; $93.5B national). Example, Colorado at 5% coverage / 50% effectiveness, sustained FY2028–30 expected cost share: random $436.8M, self-employment $422.3M, model $367.7M, oracle $224.9M — the model captures about a third of the oracle-minus-random gap.
Disclosures: the OBBBA delayed-implementation provision is not modeled (near-term exposure above 13.33% overstated — flagged after reading Schanzenbach's deck, which bins it as temporarily 0%); the FY2024-official vs fixed-real threshold convention mix; the issuance source's unverified disaster-supplement question.
Verification
simulate.py/persistence.py(optional params; persistence artifact byte-identical, its locks re-run green).🤖 Generated with Claude Code