Skip to content

Regenerate population impact data with March 2026 OBR forecasts#4

Merged
vahid-ahmadi merged 27 commits intomainfrom
regenerate-microsim-data
Mar 3, 2026
Merged

Regenerate population impact data with March 2026 OBR forecasts#4
vahid-ahmadi merged 27 commits intomainfrom
regenerate-microsim-data

Conversation

@vahid-ahmadi
Copy link
Contributor

Summary

  • Fixes zero-impact bug on the Population Impact tab
  • All distributional, winners/losers, inequality, budgetary, and metrics data were showing £0 / 0% because policyengine-uk 2.74.0 still shipped November 2025 OBR defaults
  • Regenerated using policyengine-uk@main which now includes March 2026 OBR EFO parameters (Update OBR economic forecasts to March 2026 EFO policyengine-uk#1512, #1514)

What changed

  • The baseline simulation (November 2025 Scenario) and reform simulation (policyengine-uk default) now produce different results as intended
  • All 8 data files updated with real non-zero values across 2026-2030
  • Constituency data skipped (HuggingFace file not found)

Test plan

  • bun run build passes
  • Population tab shows non-zero distributional impacts by decile
  • Winners/losers chart shows meaningful splits (e.g. 2026: ~23% gaining, ~39% losing)
  • Inequality metrics show baseline vs reform differences
  • Detailed budgetary breakdown shows per-program differences

🤖 Generated with Claude Code

Previous data showed zero impact because policyengine-uk 2.74.0 still
had November 2025 OBR forecasts as defaults. The baseline and reform
simulations were producing identical results.

Regenerated all population impact data using policyengine-uk@main which
now includes the March 2026 OBR Economic and Fiscal Outlook parameters
(merged via PolicyEngine/policyengine-uk#1512 and #1514).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
uk-spring-statement-2026 Ready Ready Preview, Comment Mar 3, 2026 7:04pm

Request Review

- Add CPI deflator to express reform income in baseline (Nov 2025)
  price levels, giving real-terms impact comparison
- Apply deflator across all calculators: distributional, winners/losers,
  intra-decile, inequality, detailed budgetary, scatter, constituency
- Generate household archetype data (stats + comparison JSONs) in
  pipeline instead of relying on static pre-generated files
- Fix winners/losers chart Y-axis clipping (set explicit -60% to 60%)
- Remove redundant IntraDecileChart (kept WinnersLosers chart only)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All calculators now output both nominal (raw cash) and real (CPI-deflated)
values with _nominal/_real suffixed fields. A toggle switch in the
Population Impact tab lets users switch between the two views across all
charts, tables, and household archetypes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
vahid-ahmadi and others added 2 commits March 3, 2026 19:50
Move horizontal padding from .title-row to .title-row-inner so the h1
text starts at the same x-position as the dashboard intro paragraph.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant