Skip to content

Commit

Permalink
Add food and utility CPI forecasts
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 15, 2024
1 parent b362861 commit 02677c9
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 2,200 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- CPI category forecasts.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: OBR CPI category inflation projection for food, beverages and tobacco.
values:
2018-01-01: 1
2019-01-01: 1.018
2020-01-01: 1.026
2021-01-01: 1.048
2022-01-01: 1.166
2023-01-01: 1.296
2024-01-01: 1.329
2025-01-01: 1.352
2026-01-01: 1.387
2027-01-01: 1.426
2028-01-01: 1.461
metadata:
unit: currency-GBP
reference: OBR
label: Food and beverages inflation
17 changes: 17 additions & 0 deletions policyengine_uk/parameters/gov/obr/inflation/utilities.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: OBR CPI category inflation projection for utilities
values:
2018-01-01: 1
2019-01-01: 1.049
2020-01-01: 0.972
2021-01-01: 1.090
2022-01-01: 1.968
2023-01-01: 1.916
2024-01-01: 1.478
2025-01-01: 1.365
2026-01-01: 1.281
2027-01-01: 1.313
2028-01-01: 1.365
metadata:
unit: currency-GBP
reference: OBR
label: Utilities inflation
36 changes: 17 additions & 19 deletions policyengine_uk/variables/input/consumption/coicop.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class food_and_non_alcoholic_beverages_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.food_and_non_alcoholic_beverages"
uprating = "gov.obr.inflation.food_beverages_and_tobacco"


class alcohol_and_tobacco_consumption(Variable):
Expand All @@ -25,9 +25,8 @@ class alcohol_and_tobacco_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = (
"calibration.uprating.monthly_cpi_by_category.alcohol_and_tobacco"
)
uprating = "gov.obr.consumer_price_index"
uprating = "gov.obr.inflation.food_beverages_and_tobacco"


class clothing_and_footwear_consumption(Variable):
Expand All @@ -38,9 +37,7 @@ class clothing_and_footwear_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = (
"calibration.uprating.monthly_cpi_by_category.clothing_and_footwear"
)
uprating = "gov.obr.consumer_price_index"


class housing_water_and_electricity_consumption(Variable):
Expand All @@ -53,7 +50,7 @@ class housing_water_and_electricity_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.housing_water_and_electricity"
uprating = "gov.obr.consumer_price_index"


class household_furnishings_consumption(Variable):
Expand All @@ -64,6 +61,7 @@ class household_furnishings_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "gov.obr.consumer_price_index"


class health_consumption(Variable):
Expand All @@ -74,7 +72,7 @@ class health_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.health"
uprating = "gov.obr.consumer_price_index"


class transport_consumption(Variable):
Expand All @@ -85,7 +83,7 @@ class transport_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.transport"
uprating = "gov.obr.consumer_price_index"


class communication_consumption(Variable):
Expand All @@ -96,7 +94,7 @@ class communication_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.communication"
uprating = "gov.obr.consumer_price_index"


class recreation_consumption(Variable):
Expand All @@ -107,7 +105,7 @@ class recreation_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.recreation"
uprating = "gov.obr.consumer_price_index"


class education_consumption(Variable):
Expand All @@ -118,7 +116,7 @@ class education_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.education"
uprating = "gov.obr.consumer_price_index"


class restaurants_and_hotels_consumption(Variable):
Expand All @@ -129,9 +127,7 @@ class restaurants_and_hotels_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = (
"calibration.uprating.monthly_cpi_by_category.restaurants_and_hotels"
)
uprating = "gov.obr.consumer_price_index"


class miscellaneous_consumption(Variable):
Expand All @@ -142,7 +138,7 @@ class miscellaneous_consumption(Variable):
definition_period = YEAR
value_type = float
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.miscellaneous"
uprating = "gov.obr.consumer_price_index"


class petrol_spending(Variable):
Expand All @@ -152,7 +148,7 @@ class petrol_spending(Variable):
value_type = float
unit = GBP
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.transport"
uprating = "gov.obr.consumer_price_index"


class diesel_spending(Variable):
Expand All @@ -162,7 +158,7 @@ class diesel_spending(Variable):
value_type = float
unit = GBP
quantity_type = FLOW
uprating = "calibration.uprating.monthly_cpi_by_category.transport"
uprating = "gov.obr.consumer_price_index"


class childcare_expenses(Variable):
Expand All @@ -172,6 +168,7 @@ class childcare_expenses(Variable):
documentation = "Total amount spent on childcare"
definition_period = YEAR
unit = GBP
uprating = "gov.obr.consumer_price_index"


class private_pension_contributions(Variable):
Expand All @@ -181,6 +178,7 @@ class private_pension_contributions(Variable):
documentation = "Total amount spent on private pension contributions"
definition_period = YEAR
unit = GBP
uprating = "gov.obr.average_earnings"


class occupational_pension_contributions(Variable):
Expand Down
2 changes: 1 addition & 1 deletion policyengine_uk/variables/input/consumption/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ class domestic_energy_consumption(Variable):
definition_period = YEAR
value_type = float
unit = GBP
uprating = "gov.ofgem.energy_price_cap"
uprating = "gov.obr.inflation.utilities"
Loading

0 comments on commit 02677c9

Please sign in to comment.