You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Expand Universal Credit docs page (#745)
The existing page covered six legacy benefits, gave the Welfare Reform Act
2012 link, and showed a chart of selected element rates. Round it out with:
- a "How PolicyEngine computes Universal Credit" section explaining the
uc_maximum_amount -> means test -> benefit cap pipeline and the
would_claim_uc take-up input,
- a References section pointing at the primary statute (WRA 2012), the
operational regs (SI 2013/376), the annual DWP rate uprating publication,
and the UC official statistics page that policyengine-uk-data calibrates
against,
- fix the rates dataframe so it builds in one pass instead of pd.concat in
a loop (which raised FutureWarning) and corrects the "Amount(£m)" axis
label to "Amount (£/month)",
- drop an empty trailing code cell.
* Fix taper-rate reference in UC docs
uc_earnings_taper_rate does not exist; the UC taper is the
gov.dwp.universal_credit.means_test.reduction_rate parameter (55%).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Expand the Universal Credit documentation page: add a "How PolicyEngine computes Universal Credit" section walking through `uc_maximum_amount` -> means test -> benefit cap, add a references block (Welfare Reform Act 2012, SI 2013/376, DWP rate uprating, official statistics), tidy the elements rates dataframe to drop the pd.concat-in-loop pattern, fix the £/month axis label, and remove an empty trailing cell.
Copy file name to clipboardExpand all lines: docs/book/programs/gov/dwp/universal-credit.ipynb
+25-29Lines changed: 25 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@
22
22
"* Housing Benefit for working-age claimants: Helps people with the cost of their rent if they are on a \n",
23
23
" low income.\n",
24
24
"\n",
25
-
"Universal Credit parameters can be found in `policyengine_uk/parameters/gov/dwp/universal_credit` and logic in `policyengine_uk/variables/dwp/universal_credit.py`.\n",
25
+
"Universal Credit parameters live in `policyengine_uk/parameters/gov/dwp/universal_credit/` and the per-element formulas in `policyengine_uk/variables/gov/dwp/universal_credit/`.\n",
26
26
"\n",
27
27
"## Legislation\n",
28
28
"\n",
@@ -41,6 +41,11 @@
41
41
"The table below shows some of the rates covered by PolicyEngine-UK. "
42
42
]
43
43
},
44
+
{
45
+
"cell_type": "markdown",
46
+
"metadata": {},
47
+
"source": "## How PolicyEngine computes Universal Credit\n\nPolicyEngine computes Universal Credit at the benefit-unit level in three stages:\n\n1. **Maximum entitlement** (`uc_maximum_amount`): sum the elements the benunit qualifies for — `uc_standard_allowance`, `uc_child_element`, `uc_disability_elements`, `uc_carer_element`, `uc_housing_costs_element`, and `uc_childcare_element`.\n2. **Means test**: the maximum entitlement is reduced by the benunit's countable earnings above its work allowance (`uc_work_allowance`) at the published taper rate (the `gov.dwp.universal_credit.means_test.reduction_rate` parameter, currently 55%), plus its unearned income. Asset rules apply on top of this — capital above the lower threshold deems a tariff income, and capital above the upper threshold disqualifies the benunit entirely.\n3. **Benefit cap**: the post-means-test award (`universal_credit_pre_benefit_cap`) is finally reduced by `benefit_cap_reduction` to produce `universal_credit`. The benefit cap only applies to benunits without a benefit-cap exemption (working enough hours, having a qualifying disability benefit, etc.).\n\nThe take-up step is handled by the input variable `would_claim_uc`, which is populated stochastically when the dataset is built so that PolicyEngine's caseload aggregates match published DWP claimant numbers rather than the full eligible population.\n\nParameters live in `policyengine_uk/parameters/gov/dwp/universal_credit/` and the per-element formulas in `policyengine_uk/variables/gov/dwp/universal_credit/`."
"- DWP, [Benefit and pension rates](https://www.gov.uk/government/publications/benefit-and-pension-rates-2025-to-2026) — annual rate uprating.\n",
1361
+
"- DWP, [Universal Credit official statistics](https://www.gov.uk/government/collections/universal-credit-statistics) — caseload and expenditure outturns used by `policyengine-uk-data` for calibration."
0 commit comments