Add net_wealth variable and mortgage_debt / consumer_debt inputs#1761
Open
MaxGhenis wants to merge 1 commit into
Open
Add net_wealth variable and mortgage_debt / consumer_debt inputs#1761MaxGhenis wants to merge 1 commit into
MaxGhenis wants to merge 1 commit into
Conversation
net_wealth is total_wealth less mortgage, consumer, and student-loan debt. Unlike gross total_wealth (property + corporate + savings, never negative), net wealth can be negative when a household's debts exceed its assets, so it ranks the genuinely underwater households into the bottom of the wealth distribution. mortgage_debt and consumer_debt are new household inputs imputed by policyengine-uk-data from the Wealth and Assets Survey. 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 a
net_wealthhousehold variable and themortgage_debtandconsumer_debtinputs that feed it.net_wealth=total_wealth−mortgage_debt−consumer_debt− householdstudent_loan_balance.mortgage_debt(gross outstanding mortgage) andconsumer_debt(non-mortgage, non-student-loan borrowing) are new household inputs.Why
Gross
total_wealth(property + corporate + savings) has no liabilities netted out, so it is never negative. That makes the bottom of the wealth distribution an artefact: ~13% of households own no property/savings and pile up at exactly £0, leaving the lowest wealth decile empty and hiding the genuinely underwater households (debts > assets).net_wealthputs those households where they belong — the bottom of the distribution — so distributional analysis by wealth reflects reality.total_wealthis left unchanged (the web app's percentage wealth-change charts rely on it staying non-negative).Companion
The
mortgage_debt/consumer_debtinputs are imputed from the Wealth and Assets Survey by a companion policyengine-uk-data PR. Until a dataset release carries them, both default to 0 (sonet_wealth==total_wealth).Tests
policyengine_uk/tests/policy/baseline/household/wealth/net_wealth.yamlcovers the subtraction, a negative-net-wealth case, and the no-debt case.