Geographic adjustment uses BLS year-specific housing shares; Census Table 19 reconstructs with fixed 0.434 / 0.323 / 0.443

Open
#47 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
data

Research direction

Start in rolling_forecast.py around _geography and read rollout/fable-continuation-20260911/analysis/p60-290-geo/GEO-AUDIT.md to compare the BLS and Census housing-share inputs. Add the Census share series and tracking noted in the issue, then rerun the Table 19 evaluation; done means the reconstruction reflects the fixed shares and the expected mean-absolute reduction is observed.

Written by the indexing model from the issue text.

Description

Grading the pre-registered 2025 rent indices against Census P60-290 Table 19 (SPM Thresholds by Metro Area: 2025, published 2026-09-15) shows the indices beat carry-forward on every metric the package evaluator computes (MAPE 1.898% vs 2.349%; median APE 1.071% vs 1.787%; p90 4.277% vs 4.963%; wins inside every area type). Thresholds across the 332 areas x 3 tenures published in both years miss Census by a mean absolute $249 (0.67%), median $153, p90 $537, max $2,771 (6.75%); the national Table 11 values agree exactly.

One systematic, fixable input error remains. SPMForecast._geography (rolling_forecast.py ~line 495) applies factor = 1 + share * (rent_index - 1) with share = BLS's year-specific shelter + utilities component shares (e.g. 2023: 0.4348 / 0.3169 / 0.4388 for owners with mortgage / owners without / renters), taken from the BLS component-shares workbook. Census's metro workbooks reconstruct exactly (1,077 of 1,077 cells for 2025) only with fixed shares of 0.434 / 0.323 / 0.443; backing them out of the 2023, 2024 and 2025 workbooks gives 0.434004/0.323000/0.443001, 0.433996/0.322999/0.443001 and 0.434001/0.322999/0.443003. The mismatch costs a further mean absolute $77 (0.21%) on top of the rent-index error, and the sign is systematic (package shares low for 2025). Census's SPM technical documentation (section 4.2.2) says the housing portion is adjusted but does not print the shares; their provenance is not established here, only that Table 19 is built with them.

Two smaller points from the same comparison: Census anchors Table 19 on the rounded national thresholds (41,323 / 34,326 / 41,701), so 240 of 1,077 cells differ by $1 from a full-precision reconstruction; and the live file name is SPM-pov-threshold-2025.xlsx (capital SPM), the lowercase URL returns an HTML 404 page.

Suggested fix: add a census_geography_shares (or similar) constant series alongside the BLS component shares, use it for the geographic factor when the target is Census comparability, and record which series each forecast entry used (housing_share_status already exists). Re-run the Table 19 evaluation after the change; the expected effect is roughly the $77 mean-absolute reduction above.

Full audit with scripts: rollout/fable-continuation-20260911/analysis/p60-290-geo/GEO-AUDIT.md (local, 2026-09-15).

🤖 Generated with Claude Code

Dominant language
Python
Stars
0
Forks
1
Avg merge
2d 15h
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PolicyEngine/spm-calculator

All issues in PolicyEngine/spm-calculator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.