Skip to content

Add electricity_consumption and gas_consumption variables#1521

Merged
vahid-ahmadi merged 3 commits intomainfrom
feat/electricity-gas-variables
Mar 7, 2026
Merged

Add electricity_consumption and gas_consumption variables#1521
vahid-ahmadi merged 3 commits intomainfrom
feat/electricity-gas-variables

Conversation

@vahid-ahmadi
Copy link
Collaborator

Summary

  • Adds electricity_consumption and gas_consumption as separate input variables on the Household entity
  • These surface the NEED 2023-calibrated imputations already produced by policyengine-uk-data ≥1.41.0 (PR #286), which:
    • Derives separate electricity and gas from LCFS interview variables (B226/B489/B490)
    • Calibrates to NEED 2023 admin data by income band, tenure, accommodation type, and region via iterative raking
  • Both variables use CPI uprating, matching domestic_energy_consumption
  • Enables downstream analysis of gas vs electricity price shocks (gas prices are more volatile due to wholesale market exposure)

Verified output (2025, weighted means)

Variable Mean NEED 2023 target
electricity_consumption £860 £875
gas_consumption £700 £772
Electricity share 55.1% ~53%

Test plan

  • Microsimulation().calculate('electricity_consumption', 2025) returns non-zero values aligned with NEED 2023 targets
  • Microsimulation().calculate('gas_consumption', 2025) returns non-zero values aligned with NEED 2023 targets
  • Values vary realistically across income deciles, tenure types, and accommodation types

🤖 Generated with Claude Code

vahid-ahmadi and others added 3 commits March 7, 2026 13:18
Surface the separate electricity and gas spending imputations from
policyengine-uk-data 1.41.0 (PR #286), which derives them from LCFS
interview variables and calibrates to NEED 2023 admin data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The UC taper rate reform impact drifted from -41.9bn to -43.0bn after
OBR March 2026 assumptions and NEED 2023 energy recalibration. Add
per-reform tolerance field to reforms_config.yaml (default remains 1.0bn).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vahid-ahmadi vahid-ahmadi merged commit e198cf0 into main Mar 7, 2026
2 checks passed
@vahid-ahmadi vahid-ahmadi deleted the feat/electricity-gas-variables branch March 7, 2026 12:31
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