Skip to content

Scale property income targets to match HMRC rental stats#311

Merged
nikhilwoodruff merged 1 commit intomainfrom
fix/property-income-targets-230
Mar 20, 2026
Merged

Scale property income targets to match HMRC rental stats#311
nikhilwoodruff merged 1 commit intomainfrom
fix/property-income-targets-230

Conversation

@vahid-ahmadi
Copy link
Collaborator

@vahid-ahmadi vahid-ahmadi commented Mar 20, 2026

Summary

  • Scales property income calibration targets by 1.9x to match the more comprehensive HMRC Property Rental Income Statistics (~£47bn) instead of SPI alone (~£25bn)
  • Fixes double-counting bug: incomes_projection.csv contains aggregate rows (12570,inf) alongside per-band rows, inflating projected year targets by 2x
  • Adds 3 tests: scaled total check, no aggregate row double-counting, projected year range check
Year Before (broken) After (fixed)
2023 £27bn (SPI only) £52bn (scaled)
2025 £71bn (double-counted) £66bn (scaled, no duplication)

Sources:

Closes #230

Test plan

  • test_property_income_targets_scaled — total is £45-60bn for base year
  • test_no_aggregate_row_double_counting — no 12_570_to_inf targets in projected years
  • test_projected_property_income_reasonable — 2025 total is £50-90bn
  • CI passes

🤖 Generated with Claude Code

…le-counting

Two issues fixed:

1. Property income targets from SPI (~£27bn) only cover taxpayers with
   liability. HMRC Property Rental Income Statistics show ~£47bn (1.9x
   higher) as they include all ITSA landlords. Apply 1.9x scaling factor.

2. incomes_projection.csv contains aggregate rows (12570,inf) alongside
   per-band rows, causing double-counting in projected years (2024+).
   Filter these out.

Before: 2023=£27bn, 2025=£70bn (double-counted)
After:  2023=£52bn, 2025=£66bn (correct)

Closes #230

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nikhilwoodruff nikhilwoodruff merged commit 0b2d119 into main Mar 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Property income may be underestimated (SPI ~£26bn vs HMRC ~£48bn)

2 participants