-
Notifications
You must be signed in to change notification settings - Fork 2
Add Wharton Budget Model Benchmark Comparison for Option 1 (2054) #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
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
This commit adds a comprehensive benchmark comparison between PolicyEngine US and the Wharton Budget Model for Option 1 (Full Repeal of Social Security Benefits Taxation) in year 2054. Key additions: - Modified policy-impacts-2100.ipynb to run Option 1 only with 2054 dataset - Created distributional analysis script (option1_distributional_2054.py) - Generated distributional impacts by income group for 2054 - Created comprehensive comparison document (wharton_benchmark_comparison.md) - Generated CSV outputs for both aggregate and distributional results Results: - Aggregate revenue impact: -$239.6B (2054) - Distributional impacts calculated for 9 income groups - Detailed comparison with Wharton benchmark values showing areas of agreement and notable differences Branch: wharton-benchmark 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This commit adds a comprehensive 2026 comparison with Wharton Budget Model, providing a more reliable benchmark than 2054 due to better dataset quality. Key additions: - option1_analysis_2026.py: Runs Option 1 with 2026 data - 2026 distributional impacts by income group - Diagnostic scripts to investigate dataset limitations Results (2026): - Aggregate revenue impact: -$85.4B - Distributional impacts for 9 income groups - Direct comparison with Wharton 2026 showing close agreement on most groups Key findings: - Middle quintile and 95-99% groups show near-identical results - Top 0.1% shows $0 due to data sparsity (only ~21 households in sample) - Wharton uses larger CPS dataset with better high-income representation Both 2026 and 2054 comparisons now included in PR for completeness. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This commit adds analysis using the local enhanced 2054.h5 dataset and creates a reusable pipeline for processing future .h5 files. Key additions: - option1_analysis_2054_local.py: Analysis with local enhanced 2054.h5 - wharton_comparison_pipeline.py: Reusable pipeline for any .h5 file - test_enhanced_datasets.py: Dataset availability checker Results (2054 Local Dataset): - Aggregate revenue impact: -$588.1B (significantly larger than test dataset) - Sample: 21,108 households, better representation across all income groups - Top 0.1%: Now shows -$280 (vs $0 in test dataset) with 21 households Key differences from test dataset: - All income groups show larger tax cuts - Top 0.1% now has non-zero result - Revenue impact 2.5x larger than HF test dataset Pipeline Usage: python wharton_comparison_pipeline.py <path_to_h5> <year> This enables quick analysis of any future enhanced datasets. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This commit completes the Wharton benchmark comparison by adding analyses for all three years (2026, 2034, 2054) using enhanced_cps_2024 reweighted to target years. All analyses use the same base dataset (enhanced_cps_2024) for consistency. Results Summary: - 2026: -$85.4B revenue loss - 2034: -$131.7B revenue loss - 2054: -$176.3B revenue loss Key Findings: - Percent changes show strong agreement with Wharton across all years - First quintile 2054: Exact match (-$5 vs -$5 Wharton) - Dollar amounts vary more, suggesting different benefit assumptions - Top 0.1% shows $0 due to sample size (21 households) Created reusable pipeline for future enhanced datasets. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Created comprehensive Excel file with Wharton comparisons for all three years (2026, 2034, 2054) using enhanced_cps_2024 dataset. Excel file includes 6 sheets: 1. Revenue Summary - Aggregate impacts across all years 2. 2026 Comparison - Detailed year-by-year comparison 3. 2034 Comparison 4. 2054 Comparison 5. All Years - Tax Change - Side-by-side tax change view 6. All Years - Pct Change - Side-by-side percent change view File: data/wharton_comparison_enhanced_cps_2024.xlsx This provides an easy-to-view comparison for sharing results. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Reorganized Excel file to have just one sheet containing: - Revenue summary for all years - 2026 comparison table - 2034 comparison table - 2054 comparison table All in one easy-to-view sheet instead of 6 separate tabs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Updated Excel file to match requested style: - Bold headers with gray background - Alternating row colors (white/light gray) - Borders on all cells - Clean currency formatting ($X,XXX) - Proper alignment (left for groups, right for numbers, center for %) - Single sheet with three formatted tables (2026, 2034, 2054) File: data/wharton_comparison_enhanced_cps_2024.xlsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Updated Excel file to include comparison with local enhanced 2054 dataset, showing significantly larger impacts than Enhanced CPS 2024 projection. Excel now includes: - Revenue summary with both 2054 datasets (-$176.3B vs -$588.1B) - 2026 comparison table - 2034 comparison table - 2054 Enhanced CPS 2024 comparison (-$176.3B) - 2054 Local dataset comparison (-$588.1B) Local 2054 dataset shows much larger impacts: - First quintile: -$312 vs -$5 Wharton (6,240% difference) - 90-95%: -$13,974 vs -$4,385 Wharton (219% difference) - Suggests different benefit/inflation assumptions All tables formatted with clean style matching requested design. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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.
Wharton Budget Model Benchmark Comparison
Option 1: Full Repeal of Social Security Benefits Taxation
Comprehensive benchmark comparison between PolicyEngine US and the Wharton Budget Model for eliminating income taxes on Social Security benefits across three time periods: 2026, 2034, and 2054.
Dataset Used: Enhanced CPS 2024 (reweighted by PolicyEngine to target years)
📊 Excel File:
data/wharton_comparison_enhanced_cps_2024.xlsxYear 2026 Comparison
Dataset: Enhanced CPS 2024 → 2026 (20,863 households, weighted: 141.8M)
Revenue Impact: -$85.4 billion
Average Tax Change per Household (Dollars)
Percent Change in Income, After Taxes and Transfers
Year 2034 Comparison
Dataset: Enhanced CPS 2024 → 2034 (20,874 households, weighted: 146.4M)
Revenue Impact: -$131.7 billion
Average Tax Change per Household (Dollars)
Percent Change in Income, After Taxes and Transfers
Year 2054 Comparison
Dataset: Enhanced CPS 2024 → 2054 (20,892 households, weighted: 150.1M)
Revenue Impact: -$176.3 billion
Average Tax Change per Household (Dollars)
Percent Change in Income, After Taxes and Transfers
Key Findings
Revenue Impact Growth Over Time
Areas of Strong Agreement ✓
Percent changes (most reliable comparison):
Exact matches:
Consistent Patterns
Excel File Structure
📊 File:
data/wharton_comparison_enhanced_cps_2024.xlsx(Single Sheet)Contains:
All in one easy-to-view sheet!
Files & Tools
Main Deliverable
data/wharton_comparison_enhanced_cps_2024.xlsx- Excel comparison fileAnalysis Scripts
analysis/option1_analysis_2026.pyanalysis/option1_analysis_2034.pyanalysis/option1_analysis_2054_enhanced.pyanalysis/create_wharton_comparison_excel.pyReusable Pipeline
analysis/wharton_comparison_pipeline.py- For future .h5 filesUsage: