`real_hbai_household_net_income_ahc` deflates by CPI, not the after-housing-costs index

オープン
#2,879 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, yaml
領域
backend, data

調査の方向性

Trace real_hbai_household_net_income_ahc and real_household_net_income_ahc to their definitions and inspect inflation_adjustment_ahc, yoy_growth.yaml, and create_economic_assumption_indices. Find a source for the after-housing-costs index history back to 1996, or evaluate the fallback described in #2876. Done means the AHC measures use the intended index for earlier years and the impact on real AHC income is reported.

索引モデルが issue の本文から書いたものです。

説明

real_hbai_household_net_income_ahc and real_household_net_income_ahc multiply after-housing-costs income by inflation_adjustment, which divides consumer_price_index on the base date by that index in the period. inflation_adjustment_ahc reads consumer_price_index_ahc, and nothing in the package reads inflation_adjustment_ahc.

For HBAI, DWP commissioned two variants of CPI from ONS (2014/15 quality and methodology report, page 61). It deflates incomes after housing costs with a series that excludes rents, maintenance repairs and water charges, and incomes before housing costs with an experimental series that includes mortgage interest payments, ground rent and dwelling insurance. Its FYE 2025 methodology report still describes adjusting for inflation with variants of CPI.

consumer_price_index_ahc follows the first series, and the economic assumptions hold no parameter for the second, so real_hbai_household_net_income also multiplies by plain CPI's adjustment.

yoy_growth.yaml holds growth for consumer_price_index_ahc from 2022, and create_economic_assumption_indices sets each index to 1.0 on its first date, so the model holds no after-housing-costs price movement before 2023. DWP's series runs back to 1996. A fix needs that history before real_hbai_household_net_income_ahc can read the index for earlier years, or a stated fallback like the one inflation_adjustment_ahc has in #2876.

Moving a variable to inflation_adjustment_ahc changes its values, so the fix should report the impact on real after-housing-costs income.

主要言語
Python
スター
53
フォーク
34
平均マージ
3日 10時間
マージ済み PR(30日)
321

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine-uk のほかの issue

PolicyEngine/policyengine-uk の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。