Add age-based bus fare allocation and young-person fare reform#1781
Open
vahid-ahmadi wants to merge 5 commits into
Open
Add age-based bus fare allocation and young-person fare reform#1781vahid-ahmadi wants to merge 5 commits into
vahid-ahmadi wants to merge 5 commits into
Conversation
Companion to the LCFS bus fare imputation in policyengine-uk-data (#428). Household-level COICOP 7.3.2 (bus & coach fares), mirroring petrol_spending/ diesel_spending. CPI-uprated; not added into the consumption total, which already counts bus fares via transport_consumption. Provides the passenger fare households pay (vs the ETB-based bus_subsidy_spending) for modelling bus fare reforms. Resolves #1779. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Allocate household bus_fare_spending across members by an NTS-derived,
concessionary-adjusted age weight (provisional), enabling age-targeted bus
fare reforms such as Scotland-style free travel for under-22s.
- gov.dft.bus.fare_allocation_weight_by_age: provisional per-age allocation weight
- gov.dft.bus.young_person_fare.{age_limit,rate}: policy levers (inert by default)
- household_bus_fare_weight, person_bus_fare_spending: the allocation
- bus_fare_relief: government-funded fares for eligible young people, routed
through dft_subsidy_spending so it counts as both an in-kind household
benefit and government spending
Depends on the bus_fare_spending input variable (#1780).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the person/age allocation layer that lets PolicyEngine model age-targeted bus fare policies (e.g. Scotland-style free travel for under-22s), on top of the household
bus_fare_spendinginput.gov.dft.bus.fare_allocation_weight_by_age— provisional per-age weight for splitting household bus fares across members. NTS (England) bus-trip-by-age profile, adjusted for concessionary (free-pass) travel so it tracks fares paid, not trips. Clearly documented as a modelling allocation, not a fare-incidence estimate.gov.dft.bus.young_person_fare.{age_limit, rate}— policy levers. Inert by default (age_limit = 0), so baseline is unchanged. A reform setsage_limit = 22for free under-22 travel;rate(default 0 = free) supports discounts/flat fares too.household_bus_fare_weight/person_bus_fare_spending— the allocation (household_fare × age_weight / household_total_weight), conserving the household total.bus_fare_relief— government-funded fares for eligible young people. Routed throughdft_subsidy_spending, which already feeds bothhousehold_benefits(→ net income) andgov_spending(→ Exchequer cost), so both sides of the policy are captured with no core surgery.Why
bus_fare_spendingis household-level (LCFS has no person-level fares), and rail is modelled at household level too. An age-targeted reform needs the fare attributed to people, which this provides — following existing PE-UK household→person allocation patterns (housing_benefit_assessable_capital,employer_ni_response_consumer_incidence).Tests
test_bus_fare_age_allocation.py(3 passing): allocation splits by age weight and conserves the total; baseline relief is zero; an under-22 reform relieves the eligible member's allocated fare.Caveats / scope
Stacking
Stacked on #1780 (
add-bus-fare-spending-variable) — it referencesbus_fare_spending. Merge #1780 first; this PR's base will retarget tomainautomatically. Also relies on the imputation in policyengine-uk-data#428.🤖 Generated with Claude Code