Add fine AGI bracket targets and calibration improvements#695
Merged
Add fine AGI bracket targets and calibration improvements#695
Conversation
- ETL: Add state-level fine AGI stubs 9/10 (in55cmcsv) and national Table 1.4 fine brackets ($500K-$10M+) to etl_irs_soi.py - Config: Enable fine AGI brackets at state and national levels, re-enable income_tax_positive (22% error beats 54% unconstrained), add net_worth ($160T Fed Reserve SCF), add district-level SNAP household counts (ACS S2201) - Test: Fix test_immigration_status_diversity to use weighted counts instead of unweighted np.unique record counts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
MaxGhenis
approved these changes
Apr 7, 2026
Contributor
MaxGhenis
left a comment
There was a problem hiding this comment.
Looks good after the state AGI overlap fix.
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.
Summary
in55cmcsv($500K–$1M, $1M+) — person count and AGIincome_tax_positivein target_config — previously excluded at 22% error, but without it US.h5 overshoots to 54%. The AGI brackets should further reduce the error.net_worth($160T, Federal Reserve SCF) — already in DB ETL, just not wired into configtest_immigration_status_diversity— use weighted counts via MicroSeries groupby instead of unweightednp.uniquerecord countsMotivation
Report card comparison shows
enhanced_cps_2024.h5outperformingUS.h5on income tax (10.6% vs 54.3%), tips (0.1% vs 37.5%), real estate taxes (1.6% vs 52.6%), and rent (1.2% vs 50.2%). The fine AGI brackets constrain the high-income weight distribution, which should reduce cascading errors in income tax and self-employment income.Test plan
🤖 Generated with Claude Code