diff --git a/lib/slideshows.ts b/lib/slideshows.ts index 15a7f6ea..684db6e8 100644 --- a/lib/slideshows.ts +++ b/lib/slideshows.ts @@ -30,12 +30,14 @@ import { blsTaxsim2026Config } from "@/slideshows/bls-taxsim-2026/config"; import { scottishGovernment2026Config } from "@/slideshows/scottish-government-2026/config"; import { goodGrowthFoundation2026Config } from "@/slideshows/good-growth-foundation-2026/config"; import { bist2026Config } from "@/slideshows/bist-2026/config"; +import { rf2026Config } from "@/slideshows/rf-2026/config"; import { autumnBudget2026Config } from "@/slideshows/autumn-budget-2026/config"; import { prop40Webinar2026Config } from "@/slideshows/prop40-webinar-2026/config"; import { appam2026Config } from "@/slideshows/appam-2026/config"; import { studentDebt2026Config } from "@/slideshows/student-debt-2026/config"; export const slideshows: SlideshowConfig[] = [ + rf2026Config, bist2026Config, appam2026Config, prop40Webinar2026Config, diff --git a/public/images/rf-2026/vahid-ahmadi.jpg b/public/images/rf-2026/vahid-ahmadi.jpg new file mode 100644 index 00000000..eeb2851b Binary files /dev/null and b/public/images/rf-2026/vahid-ahmadi.jpg differ diff --git a/slideshows/rf-2026/NOTES.md b/slideshows/rf-2026/NOTES.md new file mode 100644 index 00000000..403b2896 --- /dev/null +++ b/slideshows/rf-2026/NOTES.md @@ -0,0 +1,864 @@ +# Presenter notes: PolicyEngine UK and the Resolution Foundation's modelling + +25 slides, about 12 minutes of talk, then discussion. The deck only steps +forward, so every slide is shown. Eleven are spoken: 1, 2, 4, 12, 13, 14, +16, 19 (one sentence), 22, 23 and 24. The other fourteen (3, 5, 6, 7, 8, 9, +10, 11, 15, 17, 18, 20, 21 and 25) are reference, for questions and to leave +behind: click through them without stopping, and say one bridging sentence +on 11. Use the keyboard, not the mouse, so a click cannot land inside the +live page on slide 5. Slide 9's point (one calibrated year; take-up drawn at +build) is made from the "Known gap" line on slide 14. Say on slide 2 that +Microcosm is PolicyEngine's household file, built from the FRS. Checkpoints, +on arriving: slide 12 at 2:15, slide 14 at 5:25, slide 16 at 7:50, slide 22 +at 9:10, slide 24 at 11:15; discussion open by 11:45. If RF starts +correcting slide 12, let it run and drop 19 and 22; keep 13, 14, 16, 23 and +24. + +Years: the weights are fitted to calendar 2025 (fiscal-year sources are +converted to 2025, 3/12 of 2024–25 plus 9/12 of 2025–26; DWP caseloads +are averaged over 2025), on FRS 2024–25 data. The rules the model runs for +2025 are 2025–26 rules, and "to 2031–32" for uprating is a financial year. +The HBAI comparison is for 2024–25, HBAI's latest year. + +Where the deck describes the IPPR tax-benefit model or the Resolution +Foundation's method, it relies on published sources only, each dated. +"Not found in published sources" means only that, not that the thing does +not exist. Corrections are welcome throughout. + +One Microcosm build is used for every data figure: the certified national +build of 22 November 2026 (b891aa69, certified in policyengine.py 6.20.3 on +24 November; "certified" means the build passed the release gates that +policyengine.py checks before it ships a dataset), with the local-area +build of 23 November (7081d968). Against the 15 November build in the BIST +deck: 1,536 targets (two more), 78,450 records, an effective sample of +about 7,500, and 57 source stages (a new-claimant UC draw; the build manifest names microcosm 41053d9, on main, clean); 98.8% within +10% is unchanged. Results run on other builds carry a run label: the +Autumn Budget 2026 dashboard (slides 5 and 19) and the Billing me softly +dashboard (slide 15) on the slide; the scorecard rows and the £46k example +in the notes to slide 20. + +Behaviour, in one wording everywhere: no labour-supply response by +default; two responses are on (capital gains realisations, employer NI +passed through to pay). + +Terms used on the slides: BRMA, Broad Rental Market Area (the areas LHA +rates are set for); ETB, the ONS's Effects of Taxes and Benefits on +household income; NTS, the National Travel Survey; PIPR, the ONS Price +Index of Private Rents; a run receipt, the record a run writes of the +package versions, data build and forecast it used. + +## Part 1. Introduction + +### 1. Title (spoken, 15 seconds) + +Thank the Resolution Foundation for the time. The deck has 25 slides; the +talk follows about ten, and the rest is reference. Our reading of RF's method comes from published sources; please correct +us. + +### 2. Outline (spoken, 25 seconds) + +One sentence on the six parts; part 4 is the core. One sentence on the word +on screen: Microcosm is PolicyEngine's household file, built from the FRS. +The summary of what we found comes at the end, on slide 24, after RF has +seen the mapping. + +### 3. Who we are (reference) + +- 10ds-microsim's results are described as supplementary, experimental + analysis. +- HM Treasury's transparency record (17 December 2024) describes a pilot + alongside its own model and says HMT does not currently use + PolicyEngine. The record gives no start date. PolicyEngine's event report + of 10 November 2025 gives March 2025, which is later than the record + itself, so do not quote a start date. Slide 20 gives the record's + findings. +- Shown as text, not logos: a use (No 10), a pilot that was not deployed + (HMT) and a citation (the Lords). The OBR's annual report lists + PolicyEngine among organisations it engaged with; that is too weak a link + to show, so it is left off. +- The Lords citation is of House of Commons Library research that used + PolicyEngine. +- NIESR: Mosley and Cornforth (2023), an LSE Centre for Macroeconomics + discussion paper, combined PolicyEngine UK with NIESR's NiGEM model. +- Only organisations with a public source are shown. The Mosley and + Cornforth paper is shown as text, not with NIESR's logo, because it is an + LSE paper that used NiGEM, not NIESR's own work. + +## Part 2. The Nuffield Foundation grants + +### 4. The Nuffield Foundation grants: what they named and what exists today (spoken, 70 seconds) + +Grant 1's aims were comprehensiveness, accuracy and accessibility: making +the model local (constituencies and local authorities), wider (childcare, +public services) and easier to use. The table shows, for each area +Nuffield lists, what exists in the model and data today. It does not claim +each item was completed inside the grant period, and the foot says so. + +- Childcare: England's entitlements and Tax-Free Childcare are complete in + the registry; the Childcare Offer for Wales is partial. Nuffield names + all childcare subsidies, so the row is Partly. +- Public services: variables for NHS, education and transport subsidy. + Nuffield also names adult social care, which the model does not have. +- The comparison dashboard: Nuffield describes a dashboard validating + against other microsimulation models at household level. What exists is + a public scorecard (policyengine-scorecard.vercel.app/scorecard) that + sets published results beside PolicyEngine's. Two counts, measured + differently: its lanes file lists 2,649 claims harvested for the Autumn + Budget 2025 from UKMOD, IPPR (the think tank's publications, not runs of + the IPPR model), RF and the IFS, 628 of them with a PolicyEngine + counterpart; its populations file shows 755 of those rows with a + scorecard result from RF, UKMOD, the IFS, IPPR and four others: 633 with + a PolicyEngine value (628 on policyengine-uk 2.89.2, 5 on 2.132.6) and + 122 marked as a gap in PolicyEngine. There are also 758 UKMOD + statistics. The household-level comparison with UKMOD is not done yet, + and there is no TAXBEN comparison. +- The symposium: a London event on 3 November 2025, which PolicyEngine's + event report says was supported by the Nuffield Foundation. It falls + after grant 1's stated end; the slide does not call it a deliverable. + Nuffield also lists training and beta testing; the slide does not show + them, and their public record is an open check. +- Council Tax Reduction (slide 4) and Council Tax Support (slides 12 and + 14) are the same scheme; RF's annex uses the second name. + +Grant 2 runs from July 2026 to June 2029 and funds constituency-level +Budget analysis, local Council Tax Reduction variation and outreach to +local journalists. Council Tax Reduction variation bears directly on the +gap on slide 14. + +### 5. The Autumn Budget 2026 dashboard, by constituency (reference, live page) + +This slide is passed on the way from slide 4 to slide 12: press the arrow +key and do not wait for the page to load. Do not click inside the page. +Stop here only if asked what local output looks like. The dashboard models the +Budget's household measures, including the energy payment, zero VAT on +electricity, fuel duty, the Pension Tax Allowance, property income tax, the trading allowance and the Carer's Allowance taper; sources +differ on the count, so the slide gives none. The run that produced all the +measures took 8.1 minutes with one machine per measure in parallel; it is +not a single-run speed. The web app's own estimate for a UK national run is +three minutes. Needs an internet connection; if presenting remotely, share the +browser tab if the embed lags. In a PDF the slide shows a summary card of +the page's tabs and its run label. + +## Part 3. The model and the data + +### 6. PolicyEngine UK computes household incomes after taxes and benefits (reference) + +The architecture is the familiar one: rules applied to a household file, +baseline and reform, and the difference. What differs is that the household +file is reweighted to official statistics (slide 9). + +No labour-supply response by default; two responses are on (capital gains +realisations, with an elasticity of 1.0 from Advani, Lonsdale and Summers +(2024), and employer NI passed through to pay). Either can be set to zero. +The optional hours response follows the OBR's labour-supply note. There is +no general equilibrium. + +### 7. How the rules are encoded (reference) + +Each parameter is a dated YAML file with a reference; each variable a short +Python formula; each test a YAML case. The counts are for policyengine-uk +2.179.0 and the registry line for 2.180.0; both are labelled. A structural +change is a pull request to a public repository, reviewed before it merges. + +### 8. What the UK model covers (reference) + +Two rows are likely to matter. Council Tax Reduction: Scotland, Wales, +England's pensioner scheme and five English working-age schemes (Merton, +Kingston, Newham, Westminster, Oxford) are simulated; other English +working-age claimants keep reported amounts. Local Housing Allowance is in +the code, by BRMA, though not yet a registry entry. The registry lists +alcohol, tobacco and gambling duties as partial; the code models them on +imputed spending, and slide 14 follows the registry. Wealth tax, land value +tax and carbon tax exist only as hypothetical reforms. + +### 9. Microcosm UK 2024–25: how the household file is built (reference) + +The reason for the main gaps on slide 14, whose "Known gap" line makes the +point when spoken: one calibrated year and take-up drawn at build. Three +choices: + +1. Top incomes come from the SPI 2022–23 public-use file at record level: + 10,000 copies of FRS households whose adults take SPI incomes, plus more + copies in the bands above £200k, £500k, £1m and £2m. +2. Wealth (Wealth and Assets Survey round 8) and spending (Living Costs and + Food Survey 2024–25, with the ETB and the NTS) are imputed onto the same + records with quantile-regression forests (a machine-learning method that + predicts a whole distribution, not just an average), so one file serves + direct taxes, indirect taxes and wealth. +3. The weights are fitted to 1,536 official totals, each weight bounded at + 10 times its starting weight. + +Take-up: people who report a benefit always claim; others are drawn to DWP +and HMRC rates or caseloads. Every benefit unit carries a stored claim +flag, including units not entitled today, so people a reform newly +entitles claim at a rate fixed at build (for Pension Credit, DWP's Savings +Credit-only take-up; for Universal Credit and Child Benefit, the early +single-rate draw). It cannot be set per run. + +The costs: an effective sample size of about 7,500 from 78,450 records; the +SPI copies' industry is imputed; the targets are for 2025. The build has +57 source stages, each survey file pinned by SHA-256. The records are not +public: access is by token, and how RF could hold them is to be agreed +(question 5 on slide 24). Slide 16 sets this beside the IPPR model and +UKMOD. + +### 10. How far results break down (reference) + +The local-area file is a separate build (7081d968, 23 November 2026): +150,000 households, 28,725 targets, 98.6% within 10%, effective sample +about 97,000, weights bounded at 10 times their start; all seven local +gates passed. + +Household type, tenure and number of children are variables without a +standard output, so a breakdown by them is custom analysis. Vigintiles come +from `calculate_decile_impacts(..., quantiles=20)` in Python; the default +ranking income is unequivalised household net income, and a pre-computed +grouping can be passed with `decile_variable=`. Relative poverty is 60% of +the contemporary median; the absolute line is the 2024–25 line held in real +terms; "child" in the standard output is age 17 or under, and HBAI's +dependent children (`is_hbai_dependent_child`) can be used in Python +through the poverty output's `filter_variable`. + +## Part 4. The Resolution Foundation's research + +### 11. The Resolution Foundation's 2026 research we have read (reference; one bridging sentence on the way to slide 12) + +"We read the year's reports and their figure notes to list how the model is +used; the next slide is the method as we understand it." The slide has no +child poverty figure: RF's child poverty figures in different reports are +on different bases. If asked, quote Spread thin only: 27.7% to 25.1% over +the Parliament (29 October 2026). What a ratchet's figure is its +recommendation's net saving: a smoothed earnings link in place of the +triple lock, about £650m in 2029–30 (the report's £6.5bn is what a smoothed +triple lock since 2012 would have saved by now). Home economics: RF's page +does not state the model used. + +### 12. How the Resolution Foundation projects incomes, as we read it (spoken, 1 minute) + +Say first: "This is how we read RF's projection method, from Annex 1 of the +Living Standards Outlook 2026. It is here to be corrected." Click through +the five steps, a few words each. Open circles are RF's own processing; +filled circles are the tax-benefit model. Annex 1 says market incomes are +projected "largely through the IPPR Tax Benefit Model", so step 3 is marked +as largely the model's, with the WAS savings imputation RF's own. The split +decides what PolicyEngine would need to do and what could stay as it is. +End with one question, then pause: "Is that split right, and is it still how +you do it?" Keep two follow-ups for the answer: has the method changed since +February, and is "the IPPR model" still the right name for what RF runs? +The slide says "the model RF uses"; slide 16 names the IPPR model. + +Fuller wording of the steps (LSO 2026, Annex 1): + +1. Base data: FRS and HBAI 2023–24 (2024–25 in the October 2026 work). + That HBAI incomes carry DWP's SPI adjustment for top incomes is our + inference from HBAI's method; Annex 1 does not mention the SPI. +2. Reweight: to ONS population projections, OBR participation and + unemployment, and PIP caseload projections (Stata reweight2). +3. Uprate and impute, largely through the IPPR model: earnings to OBR + average earnings with a minimum-wage floor and spillovers; private + pensions by RPI capped at 5%; dividends and property income follow the + OBR. RF's own: savings income modelled in the Wealth and Assets Survey + and imputed into HBAI. Annex 1 lists prices and housing costs under a + separate heading and does not say whose code does them. Prices: rents on + the ONS Price Index of Private + Rents, then average earnings with a 12-month lag; an after-housing-costs + deflator. +4. Taxes and benefits (the IPPR model): each year's rules, with benefit + deductions (sanctions are not modelled); Universal Credit take-up 80%, + Pension Credit 65% rising to 70%. +5. Anchor: modelled growth rates, and absolute changes in poverty, applied + to outturn data. + +### 13. RF's published analyses, mapped to PolicyEngine (spoken, 2 minutes 10) + +This slide and the next are the core. Say first: "Each row is something RF +has published this year, and what PolicyEngine does for it today." Then the +key: "Done" means a standard output or the code does it today; "Partly" +that the pieces exist but something RF's method needs is missing or works +only in Python; "Not yet" that it would need building or is untested. + +Speak to the first five rows and to non-take-up, a sentence or two each; +leave the rest to read. + +1. Budget measures by income group. Deciles are in the web app. Vigintiles + are in Python only. +2. Ranking income. The default ranking is unequivalised. RF's equivalised + ranking would be passed in as a grouping. +3. Cumulative impact. There is no ready-made "earlier policy, uprated" + baseline. It has to be written by hand. +4. Projections. Incomes are uprated with the OBR forecast. The weights are + not refitted for future years. The next slide takes this step by step. +5. Child poverty. A with-and-without comparison runs. Poor larger families + are under-weighted, so effects are likely understated. The size of the + gap is on the next slide; give no figures here. The standard output + counts everyone aged 17 or under; HBAI's dependent children are + available in Python. + +Non-take-up: a full-entitlement run works in Python for five benefits, not +in the web app. + +Ask nothing here. Say that question 1 on the last slide is about this +table: which use matters most, and is any missing. + +If asked: breakdowns by family type, tenure or number of children are +custom analysis in Python (slide 10), not a standard output. The +dependent-child filter is `is_hbai_dependent_child`, as the scorecard's +poverty rows in the notes to slide 20 use. For anyone reading the code: +`in_poverty_bhc` is absolute poverty; relative poverty is +`in_relative_poverty_bhc`. + +Full rows (checked against policyengine-uk 5987eb3, microcosm cac12ab, +policyengine.py 81bac43 and policyengine-app-v2 d27867f, 25 November 2026): + +- **A1. Distribution of a Budget's measures by income group** (Spread thin, + Fig 8, by vigintile). Deciles in the web app and Python. Vigintiles in + Python only (`calculate_decile_impacts(..., quantiles=20)`). Done for + deciles; Partly for vigintiles. (`outputs/decile_impact.py`, + `decile_grouping.py`; app `ReportOutputSocietyWideUK.ts`.) +- **A1b. Ranking income for distributional charts** (every RF + distributional chart). The default ranking is unequivalised household + net income; any pre-computed grouping, such as RF's equivalised income, + can be passed in Python (`decile_variable=`). For deciles, the built-in + `household_income_decile` and `household_income_decile_ahc` rank by + equivalised HBAI income; vigintiles need a grouping passed in. The web + app ranks by its default only. Partly. +- **A2. Cumulative impact of a Parliament's measures** (Spread thin, + Fig 20). No built-in "earlier policy, uprated" baseline; it has to be + written by hand as a reform. Dated and bounded changes are supported. Not + yet. (`utils/dated_reforms.py`.) +- **A3. Income and poverty projections to 2029–30** (LSO 2026; Spread thin, + Figs 21–23). One dataset (FRS 2024–25, calibrated to 2025 targets), + uprated with the OBR October 2026 forecast to 2031–32; weights grow uniformly + with ONS population. No reweighting to projected populations, employment + or caseloads. Partly. (`data/bundle/manifest.json`; Microcosm + `uk/spec/bundle.yaml`; `data/uprating_indices.yaml`.) +- **A4. Child poverty with and without a policy** (LSO 2026, Fig 15). + Relative and absolute poverty, before and after housing costs, on the HBAI + modified OECD scale; baseline against reform. Partly: the difference + runs, but on the 22 November build children below the AHC line are 3.40m + against HBAI's 3.97m and larger families are under-represented + (microcosm#1710), so poverty effects are likely understated. On that + build, removing a fully rolled-out two-child limit takes about a fifth + fewer children out of absolute poverty than the IFS's published estimate + (630,000, 2025–26; about a quarter fewer if the IFS figure is adjusted + for UC take-up). On the 15 November build, cost and the count of affected + families were within about 5% of official figures (UC households by number of children run 9–13% short of DWP's). The + standard output counts age 17 or under; HBAI's dependent children (`is_hbai_dependent_child`, + `variables/household/demographic/hbai/`) can be passed as a filter in + Python; projected levels are as A3. The two-child limit + is abolished from 6 April 2026 in the baseline. +- **A5. The LHA freeze** (Spread thin, Fig 9). Published LHA rates by BRMA + and category, 2014 to 2026; a freeze parameter, on from April 2025 and + kept on from 2027 as announced policy; BRMAs assigned in Microcosm; + private rents follow ONS PIPR by region to 2025–26, then the OBR's UK + forecast. Done. +- **A6. Non-take-up: entitlement at full take-up minus reported receipt** + (Billing me softly). In Python, a flag override gives full entitlement for + Universal Credit, Pension Credit, Child Benefit, pension-age Housing + Benefit and Council Tax Reduction (the last only where the scheme is + simulated: Scotland, Wales, England's pensioners and five English + working-age schemes). Working-age Housing Benefit and legacy benefits are + continuing awards only and cannot rise. No switch in the web app. Partly. + (`would_claim_*` flags; Microcosm `uk/take_up_contract.json`.) +- **A7. Pensions costings** (What a ratchet). The State Pension is modelled; + its rate follows a triple-lock index that a reform can change. RF's + reform is a smoothed earnings link (prices when they exceed earnings, + then prices until the pension is back to its share of earnings), which + in PolicyEngine is an index path written by hand, not a built-in option. + Partly. + PolicyEngine's post "The adjusted Triple Lock" (28 October 2026) is + related work. +- **A8. Counterfactual histories** (Counting the cost). Growth rates are + parameters, and changing one re-projects the data. The file projects + forward from 2024–25 only, so running earlier years on a counterfactual + price and earnings path is untested. Not yet. +- **A9. Council tax reform** (Home economics; RF's page does not state the + model used). Council tax from the FRS, uprated by the OBR; Band D amounts + held for every local authority (2025–26, 2026–27); property wealth + imputed from WAS round 8. A proportional property tax would be a new + reform, not yet written. Not yet. + +### 14. Each step of the projection method, mapped to PolicyEngine (spoken, 2 minutes 25) + +Say first: "The same exercise for the method: the five steps from two +slides back, who does each one, and what PolicyEngine does today." Then +three gaps, in this order. + +First, poverty levels (row 1). This is the one place to give the figures. +On the calibrated file, 3.40m children are below the after-housing-costs +line. HBAI has 3.97m, for 2024–25. At the starting weights the file gives +4.02m, in line with HBAI's total, though families of three or more are +already under-weighted there. Calibration then opens the gap in the total. +We are working on it. + +Second, future years (row 2). PolicyEngine fits its weights to one year, +2025. It uprates incomes with OBR growth rates. It does not reweight to +projected populations, employment or caseloads, which is central to RF's +method. After 2025, caseloads move only through population growth in the +weights, the rules and the stored take-up flags. + +Third, take-up (the "Partial take-up" row). Take-up is drawn when the data +are built. So an assumption such as "UC take-up of 80%" cannot be set for a +run today. People a reform newly entitles claim at a rate fixed at build +(slide 9). + +Then, briefly: where PolicyEngine does something different rather than less +(savings interest from the FRS and SPI rather than WAS; private pensions on +an OBR index), say it is different, not better. The rows marked "RF" could +stay in RF's own code whichever model sits in the middle, or move into +PolicyEngine: question 3 on slide 24. + +Click for the second group. Point only at its last row: RF keeps its own +prepared file and runs PolicyEngine's rules on it. That is the natural form +of option C on slide 22. Finish on the "Known gap" line: it is slide 9's +point, so there is no need to go back. + +The main group follows slide 12's five steps; the second group, "Also in +RF's analysis", holds rows that are not among them (indirect taxes are not +in Annex 1). + +Full rows: + +- **B1. Base data: latest FRS and HBAI** (RF). Microcosm UK on FRS + 2024–25; HBAI-definition income and equivalisation computed in the model. + HBAI is not a calibration target, and checks against it are made case by + case: they find poverty below HBAI's (see slide 18). Partly. +- **B2. Reweight to ONS population projections and OBR participation and + unemployment for future years** (RF). One calibrated dataset, fitted to + 2025 targets. Later years uprate money values only; household weights + grow uniformly with ONS population. Microcosm's static-ageing reweighter + has no UK projection reader. Not yet. +- **B3. Adjust for projected PIP caseloads** (RF). PIP cases calibrated for + 2025 only (England, six age bands); later years move only with population + weights. Partly. +- **B4. Uprate earnings and other incomes with the OBR forecast** (largely + the IPPR model, per Annex 1). OBR October 2026 forecast for 2026–27 + to 2031–32; earnings follow OBR average earnings; benefit rates + follow September CPI. Done. +- **B5. A minimum-wage floor with spillovers; private pensions by RPI capped + at 5%** (largely the IPPR model). Private pensions follow an OBR + private-pension index, not RPI capped at 5%. A minimum-wage floor with + spillovers was not found. Partly. +- **B6. Savings income modelled in WAS and imputed** (RF). Wealth + (property, financial, pension, ISA, debts) imputed from WAS round 8. + Savings interest comes from the FRS, with SPI donors at high incomes, + grown by OBR savings income per head. A different method. +- **B7. Rents on the ONS Price Index of Private Rents; an AHC deflator** + (whose step, not stated in Annex 1). Private rents follow ONS PIPR by + region to 2025–26, then the OBR's UK private-rents forecast for every + region; social rents follow Regulator of Social Housing outturn, then + England's rent cap (September CPI plus 1 point). An after-housing-costs + deflator (CPI less rents, repairs and water, as in HBAI) is in the model + (`consumer_price_index_ahc`). RF moves rents with earnings at a 12-month + lag, which PolicyEngine does not. Partly. +- **B8. Partial take-up calibrated to DWP and HMRC** (IPPR model). Take-up + flags are drawn when the data are built: reporters claim, others are drawn + to fit DWP 2025 UC caseloads, Pension Credit rates for 2023–24 and HMRC + Child Benefit rates. Units not entitled today also carry a flag, used + when a reform entitles them. The take-up parameters do not move a run. + Partly. +- **B10. Apply modelled growth rates, and changes in poverty, to outturn** + (RF). Not in the model; runs give levels by year, so it would stay in + RF's own code or be added. Not yet. + +Also in RF's analysis: + +- **B9. Indirect taxes on the LCF** (IPPR model, per the 2018 description). + Spending imputed from LCF 2024–25; VAT (split from the ETB) and fuel + duty are complete; alcohol, tobacco and gambling duties are partial in + the registry (slide 8). Done and Partly. On the 15 November build, + imputed spending in the bottom income decile ran about a quarter above + the LCF's (microcosm#1717). Which way that moves a result depends on the + measure: shares of spending come out too low (#1717) and, on our reading, cash effects of duties too + high. Not yet re-measured on the 22 November build. +- **B11. Council Tax Support: local variation** (not modelled in RF's + projections). Simulated for English pensioners, Scotland, Wales and five + English working-age schemes; other English working-age claimants keep + reported amounts. Partly. +- **B12. PolicyEngine's rules on RF's own prepared file** (in place of step + 4). Possible in Python: `UKSingleYearDataset` takes person, benefit-unit + and household tables, and `UKMultiYearDataset` loads year-by-year tables + as they are, so RF's reweighted and uprated file for each year could be + run without PolicyEngine's uprating. The file must be mapped to + PolicyEngine's variable names, and take-up flags must be supplied: + without them the main claim flags, such as Universal Credit's and Child + Benefit's, default to claiming. Not tried on an RF file. Not yet. + (policyengine-uk `data/dataset_schema.py`; docs `usage/simulations.md`.) + +Not on the slide, if asked: PolicyEngine has no labour-supply response by +default; two responses are on (capital gains realisations, employer NI +passed through to pay); RF's method describes none. Managed migration to +Universal Credit is modelled year by year. Sanctions are modelled in +neither (a search of policyengine-uk found none). "Growth rates applied to +outturn" would stay in RF's code or be added to PolicyEngine. + +### 15. An RF proposal already modelled: the targeted energy bill discount (reference) + +Mentioned on slide 23 as candidate 2; this slide is passed without comment. The proposal, for Great +Britain, passports households on a means-tested benefit or applies a test +on the highest individual income in a household. RF's "about 40%" is the +income test alone; PolicyEngine's 42% counts households passported or +passing the test, and its income test alone gives 35% in 2026–27 (38% on +2024–25 incomes). It is not validation: the two figures share the FRS and +say nothing about which model is closer to the truth. It is the smaller of +the two pilot candidates on slide 23. The analysis code is at +uk-energy-reforms 14bf3b0, `analyses/rf-billing-me-softly`; its README +gives 28.6m Great Britain households in the run for 2026–27, the base of +the 42%. + +## Part 5. Checks + +### 16. The data: PolicyEngine, the IPPR model and UKMOD (spoken, 55 seconds) + +The data comparison, in under a minute. Say first: three ways of preparing +the same survey. Then go to one row, "Weights and effective sample". +Fitting weights to official totals means the benefit caseloads the raw FRS +under-records are matched, in-sample. The cost is an effective sample of +about 7,500 from 78,450 records, and the poverty gap already covered (the +figures are on slide 18; do not repeat them). Leave the other rows to read. + +Frame these as design differences, not a ranking. UKMOD keeps the FRS +grossing weights and makes no other updating adjustments, so results stay +traceable to the survey; PolicyEngine fits weights to official totals and +pays for it in effective sample size (about 7,500 from 78,450 records); RF +reweights for projection years with its own code. All three inherit the +FRS's under-recording of top incomes and of benefit receipt and handle it +differently. + +Fuller cells: + +- Base survey, UKMOD: input data on the 2024 wave of the FRS (2024–25) + since release B2026.03 of 22 June 2026, single-year and three-year + pooled. The April 2026 country report (UKMOD Country Report 2023–2030, + CeMPA working paper 8/26) documents FRS 2023–24: 36,248 individuals and + 16,754 households. +- Top incomes, UKMOD: the HBAI extension swaps in HBAI incomes and weights, + with "adjustments that account for high income tax payers" (p.85). CeMPA + recommends it for cross-sectional analysis with data from 2018 (p.101), + while still recommending FRS data for historical consistency; the + validation uses it (p.83); it is off by default (p.31). The report does + not name the SPI; that HBAI's adjustment uses it is our reading of DWP's + method. +- Wealth, PolicyEngine: WAS round 8 imputed onto FRS records; savings + interest from the FRS and SPI, not WAS. UKMOD: financial capital is in + the input data and used in the means tests (WP 8/26); it records no data on capital gains, + inheritances, property transactions or property value, so capital gains + tax, inheritance tax and stamp duty are excluded. +- Take-up, IPPR model: a partial take-up algorithm since 2017, a probit on + reported receipt used to rank entitled non-recipients, calibrated so + that modelled take-up matches DWP and HMRC statistics (Scottish + Government, 2018); UC 80% and Pension Credit 65% rising to 70% in LSO + 2026. UKMOD: imperfect take-up on by default (p.79), rates by claimant + type (Table 3.4), allocated first to units reported as receiving the + benefit (p.31), editable by the user; only tax credits vary by area + (London, Scotland, Wales). CeMPA calls its rates "now somewhat dated". +- Geography, IPPR model: IPPR published average gains for all 12 regions + and nations from its model (2p NI cut, 10 June 2024). UKMOD: the FRS end + user licence reports region of residence only; LHA uses the 12 regions + (p.47); the model has extensions for England, London, Northern Ireland, + Scotland and Wales, off by default (p.31); UKMOD Explore covers the UK, + the four nations and London. +- Weights, PolicyEngine: 1,536 targets (HMRC 776, ONS 366, DWP 234, MHCLG + 82, others 78); 98.8% within 10%, in-sample. UKMOD: FRS grossing weights; + a three-year pooled dataset (UK_2023_b2: 58,163 households, p.82) eases + thin cells. IPPR model: starting weights + not found in published sources; for projections RF reweights to ONS + population projections, OBR participation and unemployment, and PIP + caseloads. +- Years ahead, UKMOD: policy years 2023–2030; a release after each Budget + (B2026.05, 30 October 2026). + +### 17. The rules engine and access (reference; one sentence if stopped on) + +"The rules comparison is here for reference. UKMOD publishes an annual +country report validating against administrative data and HBAI. In +PolicyEngine the rules, tests and data pipeline are all open source under +AGPL/MIT, and changes go through public pull requests." The IPPR coverage +cells come from the Scottish Government's 2018 description and may be out +of date. The licence cell is from CeMPA working paper 7/21 (2021), written by +UKMOD's developers: it says the IPPR model is "licensed to users for a +hefty fee", that structural reforms are commissioned from PERU, and also +that, with UKMOD, it completes the list of "publicly available" UK +tax-benefit models. It does not call the IPPR model closed, so neither do +we. PERU at Manchester Metropolitan University maintains it. Users: WP 7/21 +names IPPR, RF, JRF, NEF and Legatum; the Fraser of Allander Institute used +it (v2.7.8) for its Scottish child poverty modelling (March 2025). UKMOD +users named in WP 7/21 also include the Scottish Fiscal Commission, NHS +Scotland, the Tony Blair Institute, Save the Children UK, Citizens Advice +and the Citizen's Basic Income Trust. The Scottish Government's 2018 text +describes the "IPPR/Resolution Foundation/Landman Economics" model, jointly +maintained by the three before PERU took it on, so its cells may be out of +date. Indirect taxes are not a row here (they are on slides 14 and +16); interfaces are folded into the platform row. "Mosley and Cornforth +(with NiGEM)" is the NIESR-related paper on slide 3. + +TAXBEN is not a column because we hold too little published detail for a +fair one. + +### 18. Calibration: weights fitted to official statistics (reference) + +If asked: the 19 targets outside 10% after calibration are 15 HMRC SPI +rows, 3 UC household-type rows and 1 student-support row. One held-out +check is public: NEET 16–24, left out of the solve, came out 3.0% below +ONS. Each weight is bounded at 10 times its starting value. + +Say first what this is not: it is how well the weights reproduce the totals +they were fitted to, so 98.8% is not a measure of accuracy on anything +else, and the fit says nothing about statistics that were not targeted. +Its value is transparency (every target and its fit is on a public page) +and that benefit caseloads the raw FRS under-records are matched (UC: 18% +of targets within 10% before calibration, 97% after, in-sample). The +78,450 records include the SPI copies of FRS households; the raw FRS +2024–25 household count is not on the slide until it is sourced. + +Untargeted checks against HBAI, which is not a calibration target. RF's +work centres on poverty levels, so have these ready: + +- microcosm#1334, on the 19 October build, against HBAI 2024–25: absolute + poverty before housing costs 12.2% against 15.9%; median income about 6% + high; Gini 0.302 against 0.327. On the same file, + uk-living-standards-outlook#1 gives relative poverty after housing costs + of 18.1% against 19.6%. At the FRS grossing weights the same rows reproduce + HBAI (absolute BHC 16.0%, AHC 19.5%), so the gap comes from calibration + (for example, pensioner absolute BHC poverty falls from 15.9% to 10.7%). +- microcosm#1344 changed UC take-up draws and the income targets. On an + uncertified run it moved relative BHC poverty from 13.7% to 14.3% (HBAI + 15.9%) and relative AHC child poverty from 24.5% to 25.3% (27.4%). +- On the 22 November build (microcosm#1710, children only): 3.40m children + (23.7%) below the AHC line against HBAI's 3.97m (27%); 2.42m below the + BHC line against 3.09m; larger families are under-represented. At the + starting weights the AHC figure was 4.02m, so calibration removes about + 0.6m. No all-person comparison on this build is public yet. + +Why calibration moves it (microcosm#1710): within groups it moves weight +from poor to non-poor families. Workless families are 61% below the AHC +line at the starting weights and 46% after, against HBAI's 58%; the +benefit cap rows explain only a small part so far. On HBAI's 15.9% for both +absolute and relative BHC poverty: HBAI's absolute line is referenced to +FYE 2025 that year, so the two measures coincide. + +Say it plainly: poverty levels on the calibrated file run below HBAI's, and +we are working on it. Do not argue that RF's anchoring to outturn makes the +level gap harmless: the two-child limit check above shows policy effects +are affected too. + +### 19. Autumn Budget 2026: PolicyEngine's costings beside the OBR's (one sentence on the spoken path) + +On the spoken path, one sentence: "These are our costings of the seven +Budget measures beside the OBR's, from 52% to 134% of the official figure, +with the main reason for each gap where we know it; two are not yet +explained." The detail below is for questions. + +The briefing calls the run static. The two default responses (capital +gains realisations, employer NI pass-through) apply only where a measure +changes capital gains tax or employer NI, and none of the seven does, so +they should not move these figures (not yet confirmed in the run's code). + +The nearest thing we have to an external test, so show the misses as +plainly as the hits. The table has all seven measures the briefing models, +each with the year compared and the main reason for its gap where known +(two are not yet explained). Years: +2026–27 for the three measures with a figure that year; 2029–30 for the +three income tax measures (after the Self Assessment timing gap, and the +last year of the Pension Tax Allowance, whose 2027–28 figures are close: +£42m against £44m); 2031–32, the first full year, for the Carer's +Allowance taper. + +- Under: fuel duty about half (households hold about £13bn of the £24bn + base; the official figure is the government's estimate, which the OBR + used but could not certify); the energy payment three-quarters (the + devolved share and £100m for English councils are not modelled); the + trading allowance 72% in 2029–30 (53% in 2028–29, the OBR's catch-up + year). +- Over: VAT on electricity 114% (a different spending base); property + income tax 109%; the Pension Tax Allowance 134% and the Carer's Allowance + taper 114%, both not yet explained. +- Like for like: the Pension Tax Allowance row is income tax only (£42m, + £112m and £193m against the OBR's £44m, £83m and £144m for 2027–28 to + 2029–30), from the briefing's text. The briefing's Table 6 shows a + smaller net cost after Pension Credit, Housing Benefit and Council Tax + Reduction (−30, −83, −144), which the package uses; that net figure + equals the OBR's income tax line in two years, which is not yet + confirmed as more than a coincidence, so the slide gives no net figure. The Carer's Allowance row is before income tax (£79m, like + the OBR's £69m spending line); net of income tax, £48m. +- The package: all seven run together; in 2026–27 only the first three are + non-zero, so the total is their sum. + +We make no claim about accuracy relative to the IPPR model, UKMOD or +TAXBEN. + +### 20. What we do not claim, and known limits (reference) + +Show it if asked "how do you know it is right" or about HM Treasury. On HMT, +say what the record says and no more. + +The scorecard rows are not on the slide, because they are not like-for-like +with RF: RF's figures predate the two-child limit's abolition and use an +earlier forecast, data year and baseline, and reconciling them needs a +rebuilt baseline (slide 23). If asked, give the figures but do not quote +the gaps as agreement. These are the only model runs on the scorecard +labelled "comparable" against RF (policyengine-scorecard 771c028, `app/public/data/ +populations.json`, built 30 October 2026; harvest +`sources/harvest-uk-ab2025-2026-09-24/`). PolicyEngine's runs used +policyengine-uk 2.132.6 on the Microcosm UK 2024–25 build of 19 October +2026 (20261019T083323Z-6cba5d71). RF's figures are from No half measures +(October 2025), before the two-child limit was abolished from April 2026: + +- Scrap the two-child limit, Exchequer cost, 2029–30: RF £3.5bn; + PolicyEngine £3.19bn (−9%). +- Scrap the two-child limit, fewer children in relative poverty after + housing costs, 2029–30: RF 480,000; PolicyEngine 445,000 (−7%). +- A three-child limit instead, fewer children in relative poverty after + housing costs, 2029–30: RF 350,000; PolicyEngine 318,000 (−9%). + +The scorecard has 755 Autumn Budget 2025 rows with a result against RF, +UKMOD, the IFS, IPPR or four others; 633 of them carry a PolicyEngine +value. These three are the only reform runs the scorecard labels +"comparable" against RF: `populations.json` has 14 "comparable" RF rows, +and the other 11 are benefit uprating rates in the baseline (from Catching +up? and the Living Standards Outlook 2026), not reform runs. Most others +ran on policyengine-uk 2.89.2 and an earlier data build (bundle dated 19 +June 2026), including the example of cutting the higher-rate threshold and +the NI upper earnings limit to £46,000 (RF £9.0bn, PolicyEngine £6.62bn). +The scorecard grades nothing, and the deck quotes no agreement rate from +it. + +The calibration bullet: untargeted checks against HBAI are made case by +case (microcosm#1334 on the 19 October build; microcosm#1710 on the 22 +November build, children only; figures in the notes to slide 18), and the +OBR costings on slide 19 are untargeted too. What is missing is a standing, +published method, not checks. + +## Part 6. Routes in and a possible pilot + +### 21. Four routes in: web app, connector, plugin, Python (reference) + +A reform is a parameter path and a value; the code around it can be +written by hand or by an assistant, and it stays in a repository where it +can be reviewed and rerun. Each run's code and outputs can be reviewed +like any analysis script, and PolicyEngine can review a pilot's code. Be +straight on maturity. The Claude connector is a preview and not yet +launched. The web app covers parametric reforms and standard outputs +(deciles, not vigintiles; no entitlement switch; no structural reforms). +Example-household calculations are done in both the web app and Python. An +API exists; its UK endpoints are not on the slide. + +### 22. Three ways the Resolution Foundation could use PolicyEngine (spoken, 55 seconds) + +These are options, not a proposal with a price or a timetable. One sentence +each as the cards appear. A uses only what is already public: the web app +and dashboards as a second source. B: RF specifies one analysis; +PolicyEngine runs it and returns the tables and code. C is the only one +that would touch RF's own workflow: RF's analysts run it. C needs the three +things on the card: a token, a route for RF to hold Microcosm under its own +UK Data Service terms, and the missing steps. The strip along the bottom +lists those steps. They are the gaps from slide 14, so do not go through +them again. The alternative is RF's own file run through PolicyEngine's +rules, the last row of slide 14. Say once, for slide 21: most of these uses +need Python, written by an analyst or an assistant; the web app covers +parametric reforms and deciles, not vigintiles or entitlement runs. + +Option C's "What it costs" row is there to be even-handed: a change of +model breaks the continuity of RF's published series, and past figures +would need reconciling to the new model. + +### 23. A possible pilot: one published analysis, side by side (spoken, 70 seconds) + +Say first: "The smallest useful step is to +reproduce one RF chart in PolicyEngine and explain the difference." The +output that matters is the reconciliation, not agreement: a table that +splits each difference into data, rules, take-up and uprating. PolicyEngine +runs it and writes the note. RF specifies, reviews and supplies +intermediate results where needed. Then the two candidates, one sentence +each. Candidate 1 is the Budget distribution chart, Spread thin Fig 8; the +first job is agreeing the list of measures, because the two headlines +differ in scope. Candidate 2 is smaller: Billing me softly, already +encoded, adding the non-take-up method. End: no commitment on timing; the +scope is RF's to choose. + +If asked: we know of no published reconciled comparison between +PolicyEngine and the IPPR model; the scorecard sets published figures side +by side and reconciles nothing. + +Detail on the candidates, for questions: + +- Candidate 1, the Autumn Budget 2026 distribution chart (Spread thin, + Fig 8). Both sides have published on the same Budget, but the headlines + differ in scope: RF's £4.4bn cost-of-living package against PolicyEngine's + seven measures (£3.11bn in 2026–27). The pilot would start by agreeing the + list of measures. What it needs exists in Python: vigintiles, with RF's + equivalised ranking passed in as a grouping, and indirect taxes on LCF + 2024–25 spending. Thin cells: vigintiles on an effective sample of about + 7,500 give about 375 effective households per group, so deciles would be + shown alongside. Two things to check first: the bottom-decile spending + level (microcosm#1717) and where UC receipt sits in the income + distribution on the current build. +- Candidate 2, Billing me softly. The proposal is already encoded (slide + 15); the pilot would add the report's non-take-up method. PolicyEngine can + run full entitlement for Universal Credit, Pension Credit, Child Benefit, + pension-age Housing Benefit and Council Tax Reduction, not for working-age + Housing Benefit or legacy benefits. +- Not suggested first: the Living Standards Outlook projection (it rests on + future-year reweighting), the cumulative-Parliament chart (it needs a + hand-written earlier-policy baseline) and reconciling the two-child limit + rows (RF's figures predate the April 2026 abolition now in PolicyEngine's + baseline, so it needs a rebuilt baseline). + +### 24. Questions for discussion (discussion) + +Stop presenting and leave this slide up. Read the three short cells at +the top as our reading, for RF to correct, in about 30 seconds, one +sentence each: Nuffield, the local-area data exists +today, the childcare and public-service variables in part, and the +cross-model scorecard and the AI interface are in progress; RF's uses, a few +are done today (decile charts, the LHA freeze, OBR uprating) and most +others are part-built and need Python; the main gaps are poverty levels +below HBAI's, future-year reweighting, take-up fixed at build and an +earlier-policy baseline. Then +start with question 1, because the other answers depend on it. + +## Likely questions, with what we can say + +Short answers for the five questions most likely to come up. "Say we will +follow up" marks what is not sourced; do not guess. + +### Q1. Why does calibration lower poverty, and what are all-person poverty, the median and the Gini against HBAI? + +If asked for all-person figures: none is public on the 22 November build; say we will follow up. On the 19 October build (microcosm#1334, uk-living-standards-outlook#1 and #4): median BHC income £762 a week against HBAI's £719; relative AHC poverty 18.1% against 19.6%; Gini 0.302 against 0.327. At the FRS grossing weights the same rows reproduce HBAI (absolute BHC 16.0% against 15.9%; the median matches), so the gap is the weights, not the incomes or the rules. + +Which targets do it: #1334 named three families that pull weight off low-income households (HMRC income bands below £30k, UC caseloads through the take-up draw, pensioner benefit caseloads). On the 22 November build, #1710's attribution of the children's gap gives OBR spending lines 0.10m, UC payment bands 0.08m, the benefit cap 0.05m, and disability, carer and LCWRA rows 0.13m as a block. It is not fully traced. + +### Q2. How many of the 78,450 are real FRS households, and how precise is a decile or vigintile? + +If asked how many records are real FRS households: 10,000 are SPI copies, plus more copies in the four top bands; the raw FRS 2024–25 count and the number of band copies are not sourced, so say we will follow up. Every record has a positive weight. Weights are concentrated: the top 1% of records hold 24% of the weight, and the largest weight sits at the 10 times bound. On the 19 October build, calibration roughly halved the effective sample from the FRS's own weights (#1334). + +Precision: the effective sample of about 7,500 gives about 750 effective households per decile and 375 per vigintile. We publish no standard errors for national results; the 90% intervals are for local areas only. Say we will follow up on national intervals. + +### Q3. Which benefits are simulated and which taken as reported, and what take-up rate does the file imply? + +If asked what is simulated: Universal Credit, Pension Credit, Child Benefit, pension-age Housing Benefit and Council Tax Reduction (where the scheme is modelled) are computed from the rules and gated by a stored claim flag. Working-age Housing Benefit and the legacy benefits are continuing awards only and cannot rise under a reform. Other English working-age Council Tax Reduction keeps reported amounts. For PIP, DLA, Attendance Allowance, Carer's Allowance and the State Pension, say we will follow up with a simulated-or-reported list; do not guess. + +If asked for the take-up rate: there is no single rate to quote. Reporters claim; others are drawn to DWP's 2025 UC caseloads by family type and award band, Pension Credit rates for 2023–24 and HMRC's Child Benefit rates. The UC take-up parameter is read by no formula (checked at policyengine-uk 2.177.7, microcosm#1710), so "80%" cannot be set for a run today; a full-take-up run can (the claim flag set to true). The implied UC rate on this build: say we will follow up. + +### Q4. What external evidence is there beyond the in-sample fit, and what has changed since HM Treasury's pilot? + +If asked what has changed since the pilot: the record is dated 17 December 2024 and predates the Microcosm UK builds used here. Whether its income tax finding still holds has not been re-tested with HMT; say so. Do not claim it is fixed. Whether the pilot used the earlier Enhanced FRS file: say we will follow up. + +External checks we can point to, none of them a calibration target: the seven OBR costings on slide 19 (52% to 134% of the OBR's figure, two gaps not yet explained); one held-out statistic, NEET 16–24, 3.0% below ONS; the HBAI checks on slide 18, which the file fails on poverty levels. There is no out-of-sample page for the UK and no reconciled comparison with another model. That is what the pilot on slide 23 is for. + +If asked how the constituency figures are made: a separate file of 150,000 records fitted to 28,725 local targets (98.6% within 10%, in-sample; effective sample about 97,000), published only where 10 or more survey households lie behind a number, with 90% intervals. How the intervals are computed, whether copies count towards the 10, and any out-of-sample check of local results: say we will follow up. + +### Q5. How would RF reproduce a number in a year, on what terms are the records held, and who maintains it? + +If asked about reproducing a result: each run records the package versions, the data build and the forecast (the run receipt). A build is named by a release ID that resolves to a fixed revision, with its files pinned by SHA-256, and policyengine.py ships a manifest naming the certified build at each version. So a result can be rerun on the versions and build it was made with. How long old builds stay available: say we will follow up. + +Be straight on movement: builds change often (15 and 22 November), and results move with them. In microcosm#1710 a three-child-limit result moved from 336,000 to 300,000 between two builds, not yet traced. A user who needs a stable series pins one version and one build. + +If asked on what terms we hold and share the records: they are FRS-derived under the UK Data Service licence, kept in a private repository, reached by token; we publish tables, not records. The terms on which another organisation could hold them are not settled: that is question 5 on slide 24. Say we will follow up in writing, and do not describe the licence from memory. + +### 25. Thank you (reference) + +Offer to send the deck as a PDF, with the mapping tables updated once the +remaining checks finish. If asked who maintains the model after grant 2 +ends, say PolicyEngine maintains it in the open and changes go through +public pull requests; make no commitment beyond that. diff --git a/slideshows/rf-2026/README.md b/slideshows/rf-2026/README.md new file mode 100644 index 00000000..7c7e80ad --- /dev/null +++ b/slideshows/rf-2026/README.md @@ -0,0 +1,229 @@ +# PolicyEngine UK and the Resolution Foundation's modelling, 30 November 2026 + +25 slides at `/slides/rf-2026`, for a meeting with the Resolution +Foundation. The deck is public: anyone with the link can open it, and this +folder is public on GitHub, so everything here is written to be read +publicly. + +Six parts, shown by the part tracker along the top of every slide; there +are no divider slides. Tables have horizontal rules only; status tags sit in +the body, never beside a title. Presenter notes, including the full text of +every shortened table cell, are in [NOTES.md](NOTES.md). + +1 · Introduction + +1. PolicyEngine UK and the Resolution Foundation's modelling (title) +2. Outline (the six parts) +3. Who we are + +2 · The Nuffield Foundation grants + +4. The Nuffield Foundation grants: what they named and what exists today +5. The Autumn Budget 2026 dashboard, by constituency (live page; a + summary card in a PDF export) + +3 · The model and the data + +6. PolicyEngine UK computes household incomes after taxes and benefits +7. How the rules are encoded +8. What the UK model covers +9. Microcosm UK 2024–25: how the household file is built +10. How far results break down + +4 · The Resolution Foundation's research + +11. The Resolution Foundation's 2026 research we have read +12. How the Resolution Foundation projects incomes, as we read it +13. RF's published analyses, mapped to PolicyEngine +14. Each step of the projection method, mapped to PolicyEngine +15. An RF proposal already modelled: the targeted energy bill discount + +5 · Checks + +16. The data: PolicyEngine, the IPPR model and UKMOD +17. The rules engine and access: PolicyEngine, the IPPR model and UKMOD +18. Calibration: weights fitted to official statistics +19. Autumn Budget 2026: PolicyEngine's costings beside the OBR's +20. What we do not claim, and known limits + +6 · Routes in and a possible pilot + +21. Four routes in: web app, connector, plugin, Python +22. Three ways the Resolution Foundation could use PolicyEngine +23. A possible pilot: one published analysis, side by side +24. Questions for discussion +25. Thank you + +The spoken path, about 12 minutes, is 1, 2, 4, 12, 13, 14, 16, 19 in one +sentence, 22, 23 and 24. The deck only steps forward, so the reference +slides are clicked through on the way; slide 9's point is made from slide +14's "Known gap" line. NOTES.md has the timings and checkpoints. + +## Files + +- `config.ts`: slide order, build steps (live only; every slide is one page + in a PDF export) and the meeting metadata. +- `content.ts`: every figure, label, status tag and source, with a comment + on where each comes from, and a `sources` map of links pinned to commits + or publication dates. +- `slides/index.tsx`: the slides and their building blocks (part tracker, + frame, flow, rules-only table, status tag, logo cell), adapted from the + BIST deck (`slideshows/bist-2026`). +- `slides/deck.module.css`: copied from the BIST deck, with classes added at + the end for the tables, the calibration and costing slides and the + closing credit; logo captions may wrap to two lines. +- `slides/Reveal.tsx`, `slides/Embed.tsx`: unchanged from the BIST deck. + +## Where the figures come from + +- **Microcosm UK data (slides 4, 9, 10, 16, 18)**: one build only, the + certified national build of 22 November 2026 (b891aa69, policyengine.py + 6.20.3), with the local-area build of 23 November (7081d968), as the + public calibration dashboard reports it. +- **Untargeted checks against HBAI (slides 14, 18, 20)**: microcosm#1334 + (19 October build) and microcosm#1710 (22 November build, children). +- **Rule-base counts (slide 7)**: policyengine-uk 2.179.0, from the BIST + deck; the programme registry line from `programs.yaml` at 2.180.0. +- **Coverage (slide 8)**: `programs.yaml` at policyengine-uk 2.180.0. +- **Mapping tables and routes (slides 13, 14, 21)**: code read on + 25 November 2026 at policyengine-uk 5987eb3, microcosm cac12ab, + policyengine.py 81bac43 and policyengine-app-v2 d27867f. These describe + what the code can do, not a build's results. +- **Nuffield grants (slide 4)**: the Nuffield project page for grant 1, + the project page for grant 2, policyengine.org/uk/supporters, and PolicyEngine's event report of + 10 November 2025 for the London event. +- **RF reports and method (slides 11, 12)**: the reports and their figure + notes, each dated; the method from the Living Standards Outlook 2026, + Annex 1. +- **IPPR model and UKMOD cells (slides 16, 17)**: the Scottish + Government's 2018 description, CeMPA working paper 7/21 and Manchester + Metropolitan University's staff page for the IPPR model; CeMPA's UKMOD + Country Report 2023–2030 (working paper 8/26, April 2026) and + microsimulation.ac.uk for UKMOD. +- **Results run on other builds**, each with a run label on its slide: + Autumn Budget 2026 against the OBR (slides 5, 19: policyengine 6.11.1, + Microcosm build of 25 October 2026, as published 31 October); the Billing + me softly dashboard (slide 15: policyengine-uk 2.102.3); the scorecard + rows in the notes to slide 20 (policyengine-uk 2.132.6, Microcosm build of + 19 October 2026); the £46k example there (policyengine-uk 2.89.2, an + earlier data build, bundle dated 19 June 2026). +- **Scorecard (slides 4, 20)**: policyengine-scorecard 771c028 + (`app/public/data/lanes.json` and `populations.json`). + +## Decisions + +- Part order: Nuffield second, so the grants come up by minute 2. The + summary of the grants and the mapping is on slide 24, before the + questions, not on slide 2: RF sees the mapping first, and question 1 asks + whether it is right. No tally of statuses. +- Builds only where the order carries meaning (slides 4, 12, 14's second + group, 22 and 23). Reference slides, which are jumped to in + discussion, are shown whole, and slide 24 shows all six questions at once. +- Slide 3's government row is a text list, not logos; slide 18's figures + are static (no count-up), to match the in-sample tag. +- One Microcosm build for every data figure; results from other builds + always carry a run label. +- Behaviour has one wording (slides 6 and 17, and the notes; slide + 19's foot says the briefing describes its run as static): no labour-supply response by default; two responses are on + (capital gains realisations, employer NI passed through to pay). +- Status tags: Done, Partly, Not yet; muted Preview (the Claude connector), + In-sample (calibration), Outside the model, and Different method (savings + income on slide 14). No tally of statuses anywhere. +- Slide 4 is headed "what exists today" and its foot says it does not show + what was delivered within the grant period. The London event is shown as an event, not as a + grant deliverable. +- Slide 14 keeps one foot line, the known gap, which also makes slide 9's + point; behaviour, managed migration and sanctions are in NOTES.md. +- Slide 17 has no indirect-tax row (it is on slides 14 and 16), and + interfaces sit in the platform row, so the table fits at a readable size. +- Slide 13 lists RF's published analyses; slide 14 follows slide 12's five + steps, then a separate group, "Also in RF's analysis", for rows outside + them (indirect taxes, Council Tax Support, running PolicyEngine's rules + on RF's own file). +- Slide 12 marks step 3 as largely the model RF uses, as Annex 1 says + ("largely through the IPPR Tax Benefit Model"), with the WAS savings + imputation RF's own. +- Slide 19 shows all seven measures, each with its year (2026–27 for the + three with a figure that year; 2029–30 for the three income tax + measures; 2031–32 for the Carer's Allowance taper), a main reason + per row ("not yet explained" where the briefing gives none) and + like-for-like rows: the Pension Tax Allowance as income tax only and the + Carer's Allowance taper before income tax, each footnoted. The slide + gives no Pension Tax Allowance net figure until the coincidence below is + confirmed. The foot states the year choice and that the trading allowance + is 53% in 2028–29. Fuel duty is footnoted: the OBR used the government's estimate. +- Slide 20 has no scorecard panel: RF's three rows (No half measures, + October 2025) predate the two-child limit's abolition and use an earlier + forecast, data year and baseline, so they are not like-for-like. They are + in the notes to slide 20, for questions only. +- IPPR model column: headed "what we found published", with "please + correct us"; empty cells read "Not found in published sources". No quote + from the 2018 description. +- UKMOD column: headed "as we read CeMPA's 2026 country report and website". +- Think tanks on slide 3: only those with a public source. +- Table cells on slides 13, 14, 16 and 17 are shortened to fit; the full + wording is in NOTES.md. The method flow on slide 12 is shortened the same + way. Commit hashes and file pins sit in the notes, except the "Checked + against" foot on slide 13 and the version labels on slides 7 and 15. +- HM Treasury's pilot is stated as its record has it (slide 3 caption, + slide 20), with no year the record does not give. +- TAXBEN has no column: too little is published for a fair one. NOTES.md + says so on slide 17. +- Slide 5 gives no count of Budget measures, because sources differ. +- The 1p basic-rate comparison is left off slide 19 until the build behind + it is named. +- Slide 23 gives an indicative scope (one chart; who does what) and no dates, prices or commitments. +- The Nuffield credit on the closing slide follows the Autumn Budget 2026 + deck: "Funded by" with the Foundation's white logo. +- The config description is shorter than first drafted, to fit the + 200-character limit the registry tests set. + +## Open checks + +- Nuffield: whether each area on slide 4 was delivered inside grant 1's + dates (the slide says it shows what exists today); whether Nuffield's disclaimer + wording is needed beside "Funded by"; what AI interface work counts + under grant 1; whether the scorecard counts as grant 1's comparison + dashboard; whether training and beta testing have a public record. +- Slide 3: Mosley and Cornforth (2023) is shown as text (an LSE CFM paper + that used NIESR's NiGEM), not with NIESR's logo. +- Scorecard: re-read the counts at the commit shown before the meeting. +- Slide 18: the raw FRS 2024–25 household count, as a comparator for + 78,450 records and an effective sample of about 7,500, once sourced. +- Slide 19: the Pension Tax Allowance net cost in the briefing's Table 6 + equals the OBR's income tax line in 2028–29 and 2029–30; confirm that it + is a coincidence and not a copying error in the briefing. +- Slide 19: the briefing calls the run static. None of the seven measures + changes capital gains tax or employer NI, so the two default responses + would not move these figures either way; confirm in the run's code. +- Slide 16: whether UKMOD's regional models use reweighted data (not found + in the 2026 country report). +- Mapping rows to confirm in code: A7 (whether "The adjusted Triple Lock" + post is a model costing; NOTES.md only), A8 (running the file on + counterfactual earlier paths), B4 (series for dividends and property + income), B5 (no minimum-wage floor), B10 (nothing in + policyengine.py anchors to outturn), B12 (running PolicyEngine's rules on + an outside file has not been tried on an RF-shaped file), and whether + alcohol, tobacco and gambling duties should be "partial" in the registry. +- Billing me softly: which benefits its non-take-up estimate covers; the + dashboard pin (policyengine-uk 2.102.3) and its Microcosm build. +- 1p basic-rate comparison: the build and ready-reckoner edition, before it + goes back on slide 19. +- Comparison cells: any public description of the IPPR model newer than + 2018; whether Home economics states the model it used; whether RF's + top-income treatment can be described more precisely than "HBAI + incomes". +- Sources: Counting the cost, What a ratchet, CeMPA's 2026 country report + and working paper 7/21 now have links in `content.ts`. +- Spread thin: figure numbers and 27.7% to 25.1% (no PDF saved; read once in round 1). +- The Claude connector's status on the day. +- Slide 5's live frame: load it once on the day (it needs a network + connection); no view button opens the constituency map tab directly, so + open that tab inside the frame. +- Re-read the version pins on the morning of the meeting. + +## Exporting + +```bash +bun run export rf-2026 rf-2026.pdf --size 1440x810 --scale 2 +``` diff --git a/slideshows/rf-2026/config.ts b/slideshows/rf-2026/config.ts new file mode 100644 index 00000000..82bb80a0 --- /dev/null +++ b/slideshows/rf-2026/config.ts @@ -0,0 +1,81 @@ +import type { SlideshowConfig } from "@/lib/types"; +import { + BreakdownsSlide, + BudgetDashboardSlide, + BudgetObrSlide, + CalibrationSlide, + ClosingSlide, + CoverageSlide, + DataCompareSlide, + EnergySlide, + InBriefSlide, + LimitsSlide, + MethodSlide, + MicrocosmBuildSlide, + ModelSlide, + NuffieldSlide, + OptionsSlide, + PilotSlide, + QuestionsSlide, + ReportsSlide, + RoutesSlide, + RulesCompareSlide, + RulesSlide, + StepsSlide, + TitleSlide, + UsesSlide, + WhoSlide, + whole, +} from "./slides"; + +// 25 slides in six parts, shown by the part tracker along the top of each +// slide; there are no divider slides. Builds only where the order carries +// meaning (slides 4, 12, 14's second group, 22 and 23); reference slides, +// which are jumped to in discussion, are shown whole ("whole"). Slides with +// "builds" reveal their content in steps when presented live; +// "exportBuilds: 1" gives each one page in a PDF export, where every step is +// shown (slides/Reveal.tsx). +export const rf2026Config: SlideshowConfig = { + id: "rf-2026", + title: "PolicyEngine UK and the Resolution Foundation's modelling", + description: + "The Nuffield Foundation grants, PolicyEngine UK and its Microcosm data, RF's published analyses mapped to PolicyEngine, and checks against official figures.", + date: "2026-11-30", + location: "Resolution Foundation", + footerText: "Resolution Foundation · 30 November 2026", + countSlides: true, + hideNavHint: true, + slides: [ + // Part 1. Introduction. + TitleSlide, + InBriefSlide, + whole(WhoSlide), + // Part 2. The Nuffield Foundation grants. + { component: NuffieldSlide, builds: 3, exportBuilds: 1 }, + BudgetDashboardSlide, + // Part 3. The model and the data. + whole(ModelSlide), + whole(RulesSlide), + whole(CoverageSlide), + whole(MicrocosmBuildSlide), + whole(BreakdownsSlide), + // Part 4. The Resolution Foundation's research. + ReportsSlide, + { component: MethodSlide, builds: 5, exportBuilds: 1 }, + whole(UsesSlide), + { component: StepsSlide, builds: 2, exportBuilds: 1 }, + whole(EnergySlide), + // Part 5. Checks. + whole(DataCompareSlide), + whole(RulesCompareSlide), + whole(CalibrationSlide), + { component: whole(BudgetObrSlide) }, + LimitsSlide, + // Part 6. Routes in and a possible pilot. + whole(RoutesSlide), + { component: OptionsSlide, builds: 3, exportBuilds: 1 }, + { component: PilotSlide, builds: 3, exportBuilds: 1 }, + QuestionsSlide, + ClosingSlide, + ], +}; diff --git a/slideshows/rf-2026/content.ts b/slideshows/rf-2026/content.ts new file mode 100644 index 00000000..3de9ed9d --- /dev/null +++ b/slideshows/rf-2026/content.ts @@ -0,0 +1,1820 @@ +// Content for PolicyEngine's slides for the Resolution Foundation, +// 30 November 2026. +// +// Every figure and claim below carries a comment naming its source; the +// links are in "sources", pinned to a commit or a publication date. Two +// kinds of source appear: +// - Figures about the Microcosm UK data come from one build only: the +// certified national build of 22 November 2026 +// (microcosm-uk-2024-25-national/uk-frs-calibration-attempt- +// 20261122T100732Z-b891aa69, certified in policyengine.py 6.20.3 on 24 +// November; manifest at tag 6.20.3, commit 81bac43), as the public +// calibration dashboard reports it (its data routes, read 25 November +// 2026; the method reproduces every 15 November figure the BIST deck +// cites). Results run on other builds carry a run label where they are +// shown (on the slide, or in the notes for the scorecard rows). +// - Statements about what the code can do (the mapping tables on slides 13 +// and 14, the routes on slide 21) were read on 25 November 2026 at +// policyengine-uk 5987eb3 (v2.180.0), microcosm cac12ab, policyengine.py +// 81bac43 (v6.20.3) and policyengine-app-v2 d27867f. These are +// capabilities of the code, not figures from a build. +// +// Descriptions of the IPPR tax-benefit model and of the Resolution +// Foundation's method come only from published sources, each dated: the +// Living Standards Outlook 2026 (Annex 1), the figure notes of the reports +// listed in "rfReports", the Scottish Government's 2018 description and +// CeMPA working paper 7/21. Where we found nothing published, the slides say +// "Not found in published sources", which means only that. +// +// The six parts are "parts" below; the slide order is in config.ts. + +import { + IconAdjustmentsHorizontal, + IconProgress, + IconArrowsSplit, + IconBolt, + IconBook, + IconBrandPython, + IconBuildingBank, + IconBuildingCommunity, + IconBuildingEstate, + IconBuildingFactory2, + IconBuildingMonument, + IconCalculator, + IconCalendarStats, + IconChartBar, + IconChartHistogram, + IconChartLine, + IconCircleCheck, + IconCode, + IconCoins, + IconCopy, + IconEye, + IconFileDescription, + IconKey, + IconPuzzle, + IconTable, + IconDatabase, + IconFileSearch, + IconGasStation, + IconPlug, + IconBriefcase, + IconBriefcaseOff, + IconChartPie, + IconHandStop, + IconHistory, + IconPin, + IconUserCheck, + IconFlag, + IconGitCompare, + IconHeartHandshake, + IconHome, + IconHomeDollar, + IconLockOpen, + IconMap, + IconMap2, + IconMathFunction, + IconMessageChatbot, + IconMessageQuestion, + IconPigMoney, + IconReceiptTax, + IconRefresh, + IconRoute, + IconScale, + IconSchool, + IconShoppingCart, + IconTargetArrow, + IconTestPipe, + IconTrendingUp, + IconUser, + IconUsers, + IconWallet, + IconWorld, + type Icon, +} from "@tabler/icons-react"; + +const ukCommit = "5987eb3"; +const microcosmCommit = "cac12ab"; +const pythonCommit = "81bac43"; +const appCommit = "d27867f"; +const scorecardCommit = "771c028d2647b36c6ced19504d9f772637dcaa3b"; +const ukRepo = `https://github.com/PolicyEngine/policyengine-uk/blob/${ukCommit}/policyengine_uk`; +const ukTree = `https://github.com/PolicyEngine/policyengine-uk/tree/${ukCommit}/policyengine_uk`; +const mcRepo = `https://github.com/PolicyEngine/microcosm/blob/${microcosmCommit}/packages/microcosm-build/src/microcosm/build`; +const pyRepo = `https://github.com/PolicyEngine/policyengine.py/blob/${pythonCommit}/src/policyengine`; +const appRepo = `https://github.com/PolicyEngine/policyengine-app-v2/blob/${appCommit}/app/src`; + +export type Source = { label: string; href: string }; + +export const sources = { + home: { label: "policyengine.org/uk", href: "https://www.policyengine.org/uk" }, + model: { label: "policyengine-uk", href: "https://github.com/PolicyEngine/policyengine-uk" }, + data: { label: "Microcosm", href: "https://github.com/PolicyEngine/microcosm" }, + python: { label: "policyengine.py", href: "https://github.com/PolicyEngine/policyengine.py" }, + // Ahmadi, Ghenis, Woodruff, Makarchuk and Volk (2026), Journal of Open + // Source Software 11(125), 11115. + joss: { + label: "Ahmadi et al. (2026), Journal of Open Source Software", + href: "https://doi.org/10.21105/joss.11115", + }, + // policyengine.org/uk/donate, as quoted in the Autumn Budget 2026 deck + // (slideshows/autumn-budget-2026/content.ts, "about"). + about: { label: "About PolicyEngine", href: "https://www.policyengine.org/uk/donate" }, + // The BIST deck in this repository, commit ed87705 (21 November 2026): the + // source of the rule-base counts, the Microcosm build steps, the + // calibration fit, the breakdowns and the users. + bist: { + label: "BIST deck, 19 November 2026", + href: "https://github.com/PolicyEngine/policyengine-slides/tree/ed87705/slideshows/bist-2026", + }, + // ---- Users and records (the same links as the BIST deck) ---- + no10: { + label: "PolicyEngine at No 10", + href: "https://www.policyengine.org/uk/research/policyengine-10-downing-street", + }, + // HM Treasury's algorithmic transparency record, 17 December 2024: a pilot + // alongside IGOTM (the record gives no start date; PolicyEngine's event + // report of 10 November 2025 gives March 2025, later than the record + // itself, so no start date is quoted); "not + // currently deployed"; National Insurance results close; income tax + // comparisons "less promising". + hmt: { + label: "HM Treasury algorithmic transparency record, 17 December 2024", + href: "https://www.gov.uk/algorithmic-transparency-records/hmt-modelling-policy-engine", + }, + obr: { + label: "OBR annual report 2025-26", + href: "https://assets.publishing.service.gov.uk/media/6a3cfb3c33bc5beefd3c49d2/E03598728_OBR_ARA_25-26_Accessible.pdf", + }, + hansard: { + label: "Hansard, 24 February 2026", + href: "https://hansard.parliament.uk/Lords/2026-02-24/debates/A381F7D6-0A3C-48FD-8D9E-67751E25877A/NationalInsuranceContributions(EmployerPensionsContributions)Bill", + }, + cps: { label: "Centre for Policy Studies, July 2023", href: "https://cps.org.uk/research/family-friendly-taxation/" }, + nef: { + label: "New Economics Foundation, July 2026", + href: "https://neweconomics.org/2026/07/insecure-low-quality-work-a-major-driver-of-uks-neets-and-inactivity-crisis", + }, + // An LSE Centre for Macroeconomics discussion paper that combined + // PolicyEngine UK with NIESR's NiGEM model (as the BIST deck cites it). + niesr: { + label: "Mosley and Cornforth (2023)", + href: "https://www.lse.ac.uk/CFM/assets/pdf/CFM-Discussion-Papers-2023/CFMDP2023-16-Paper.pdf", + }, + // ---- Nuffield Foundation ---- + // Grant 1, Nuffield project page (the same address as the Autumn Budget + // 2026 deck's "nuffield" source): "Enhancing, localising and democratising + // tax-benefit policy analysis", £251,296, September 2024 to September + // 2025; areas listed: childcare and public services at household level; + // local-authority and constituency datasets; an open dashboard comparing + // outputs with other models; an AI-capable interface; training, beta + // testing and a symposium. Read 24 November 2026. + nuffieldGrant1: { + label: "Nuffield Foundation project page, grant 1", + href: "https://www.nuffieldfoundation.org/project/enhancing-localising-and-democratising-tax-benefit-policy-analysis", + }, + // Grant 2: "Advancing evidence-based policy with AI & tax-benefit + // microsimulation", £300,000, from July 2026 (policyengine.org/uk/ + // supporters); Nuffield's project page gives July 2026 to June 2029. + // Funds constituency-level Budget analysis, local Council Tax Reduction + // variation and outreach to local journalists. Read 24 November 2026. + supporters: { label: "PolicyEngine supporters", href: "https://www.policyengine.org/uk/supporters" }, + nuffieldGrant2: { + label: "Nuffield Foundation project page, grant 2", + href: "https://www.nuffieldfoundation.org/project/advancing-evidence-based-policy-with-ai-tax-benefit-microsimulation", + }, + // ---- Code, pinned to the commits read on 25 November 2026 ---- + programs: { label: "policyengine-uk programme registry", href: `${ukRepo}/programs.yaml` }, + growth: { + label: "Growth parameters (OBR October 2026)", + href: `${ukRepo}/parameters/gov/economic_assumptions/yoy_growth.yaml`, + }, + uprating: { label: "Uprating code", href: `${ukRepo}/data/economic_assumptions.py` }, + datedReforms: { label: "Dated reforms", href: `${ukRepo}/utils/dated_reforms.py` }, + povertyVariables: { label: "Poverty variables", href: `${ukTree}/variables/household/income` }, + equivalisation: { + label: "HBAI equivalisation", + href: `${ukRepo}/variables/household/demographic/household_equivalisation_bhc.py`, + }, + twoChildLimit: { + label: "Two-child limit parameter", + href: `${ukRepo}/parameters/gov/dwp/universal_credit/elements/child/limit/child_count.yaml`, + }, + lha: { label: "LHA parameters", href: `${ukTree}/parameters/gov/dwp/LHA` }, + lhaRate: { label: "LHA rate by BRMA", href: `${ukRepo}/variables/gov/dwp/BRMA_LHA_rate.py` }, + entitlement: { + label: "Take-up flags (would_claim_uc and others)", + href: `${ukRepo}/variables/gov/dwp/universal_credit/would_claim_uc.py`, + }, + housingBenefit: { + label: "Housing Benefit eligibility", + href: `${ukRepo}/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py`, + }, + councilTax: { + label: "Band D amounts", + href: `${ukRepo}/parameters/gov/local_authorities/council_tax/band_d/amounts.yaml`, + }, + ctr: { + label: "Council Tax Reduction schemes", + href: `${ukRepo}/variables/gov/local_authorities/council_tax_reduction/config.py`, + }, + indirect: { label: "VAT and duties", href: `${ukTree}/variables/gov/hmrc` }, + takeUp: { label: "Take-up contract", href: `${mcRepo}/uk/take_up_contract.json` }, + ucTakeUp: { label: "UC take-up draw", href: `${mcRepo}/uk_runtime/uc_take_up.py` }, + bundleSpec: { label: "UK bundle spec (target period 2025)", href: `${mcRepo}/uk/spec/bundle.yaml` }, + sourcesSpec: { label: "UK source stages", href: `${mcRepo}/uk/spec/sources.yaml` }, + targetReferences: { label: "Calibration target references", href: `${mcRepo}/uk/target_references.json` }, + staticAging: { + label: "Static ageing (no UK projection reader)", + href: `https://github.com/PolicyEngine/microcosm/blob/${microcosmCommit}/docs/static-aging.md`, + }, + manifest: { label: "Data bundle manifest", href: `${pyRepo}/data/bundle/manifest.json` }, + deciles: { label: "Decile impacts", href: `${pyRepo}/outputs/decile_impact.py` }, + decileGrouping: { label: "Custom grouping", href: `${pyRepo}/outputs/decile_grouping.py` }, + povertyOutputs: { label: "Poverty outputs", href: `${pyRepo}/outputs/poverty.py` }, + appReport: { + label: "Web app UK report outputs", + href: `${appRepo}/types/metadata/ReportOutputSocietyWideUK.ts`, + }, + appSearch: { label: "Web app parameter search", href: `${appRepo}/libs/parameterSearch.ts` }, + // ---- Dashboards and analyses ---- + // The calibration dashboard, pinned to the certified build of 22 November + // 2026. + dashboard: { + label: "Calibration dashboard, pinned to the 22 November build", + href: "https://calibration-diagnostics.vercel.app/calibration/dashboard/microcosm?country=uk&release=microcosm-uk-2024-25-national/uk-frs-calibration-attempt-20261122T100732Z-b891aa69", + }, + // Untargeted checks against HBAI (HBAI is not a calibration target): + // microcosm#1334 on the 19 October build (absolute poverty before housing + // costs 12.2% against HBAI's 15.9%; median income about 6% high; the + // relative-after-housing-costs figure, 18.1% against 19.6%, is from + // uk-living-standards-outlook#1 on the same file), and microcosm#1710 on the + // 22 November build (children below the AHC line: 3.40m, 23.7%, against + // HBAI's 3.97m, 27%). + hbaiCheck: { label: "microcosm#1334: Microcosm against HBAI", href: "https://github.com/PolicyEngine/microcosm/issues/1334" }, + hbaiCheckChildren: { + label: "microcosm#1710: child poverty on the 22 November build", + href: "https://github.com/PolicyEngine/microcosm/issues/1710#issuecomment-7133021113", + }, + budgetDashboard: { label: "Autumn Budget 2026 dashboard", href: "https://policyengine.org/uk/budgets/autumn-2026" }, + // The Autumn Budget 2026 briefing (policyengine-app-v2 9cdc75a, 31 + // October 2026): the PolicyEngine against OBR table, the reasons for the + // gaps, and the headline figures for the seven measures. + budgetBriefing: { + label: "Autumn Budget 2026 briefing, 31 October 2026", + href: "https://github.com/PolicyEngine/policyengine-app-v2/blob/9cdc75a/app/src/data/posts/articles/uk-autumn-budget-2026-briefing.md", + }, + // PolicyEngine's dashboard of the Billing me softly proposal, 5 October + // 2026, and its analysis code at uk-energy-reforms 14bf3b0. + energyDiscount: { + label: "Targeted energy bill discount dashboard", + href: "https://www.policyengine.org/uk/targeted-energy-discount", + }, + energyCode: { + label: "uk-energy-reforms, commit 14bf3b0", + href: "https://github.com/PolicyEngine/uk-energy-reforms/tree/14bf3b0/analyses/rf-billing-me-softly", + }, + // The public scorecard (policyengine-scorecard 771c028): app/public/data/ + // lanes.json lists 25 UK lanes, including UKMOD statistics (758 claims) + // and an Autumn Budget 2025 harvest of published results from UKMOD, IPPR + // (the think tank's publications), the Resolution Foundation and the IFS + // (2,649 claims, 628 with a PolicyEngine counterpart, harvested 24 + // September 2026). populations.json, a different count: 755 rows with a + // result from eight outside modellers (RF 489, UKMOD 152, IFS 86, IPPR 20, + // JRF 4, CPAG 2, FAI 1, WBG 1). The case-level UKMOD comparison is listed + // as pending. It has no TAXBEN lane. + scorecard: { + label: "PolicyEngine scorecard", + href: "https://policyengine-scorecard.vercel.app/scorecard", + }, + scorecardCode: { + label: "policyengine-scorecard, commit 771c028", + href: `https://github.com/PolicyEngine/policyengine-scorecard/tree/${scorecardCommit}/app/public/data`, + }, + // ---- The Resolution Foundation's reports (see rfReports) ---- + lso26: { + label: "Living Standards Outlook 2026, 10 February 2026", + href: "https://www.resolutionfoundation.org/app/uploads/2026/02/LSO-2026.pdf", + }, + spreadThin: { + label: "Spread thin, 29 October 2026", + href: "https://www.resolutionfoundation.org/publications/spread-thin/", + }, + // Aldridge, Brewer and Cavanagh. + homeEconomics: { + label: "Home economics, 24 September 2026", + href: "https://www.resolutionfoundation.org/publications/home-economics/", + }, + // Brewer, Clegg, Leather, Marshall and Smith, 8 October 2026 ("The impact + // of five years of high inflation on living standards"; not RF's 2019 + // report of the same name): median non-pensioner income −1.3% (£450), + // 2020-21 to 2026-27; its figure notes name the IPPR model and FRS 2024-25. + countingTheCost: { + label: "Counting the cost, 8 October 2026", + href: "https://www.resolutionfoundation.org/publications/counting-cost/", + }, + // Curtice and Clegg, 10 June 2026, p.5: a smoothed earnings link from + // 2027-28 would save around £650 million in 2029-30, net. + whatARatchet: { + label: "What a ratchet!, 10 June 2026", + href: "https://www.resolutionfoundation.org/publications/what-a-ratchet/", + }, + // Brewer, Clegg and Marshall. + billingMeSoftly: { + label: "Billing me softly, 10 August 2026", + href: "https://www.resolutionfoundation.org/publications/billing-me-softly/", + }, + // ---- Other models ---- + // Scottish Government, Tackling child poverty delivery plan: forecasting + // child poverty in Scotland, 29 March 2018, page 8: the IPPR model's + // coverage as described then (FRS for direct taxes and benefits, LCF for + // indirect taxes, a partial take-up algorithm since 2017 calibrated to DWP + // and HMRC figures; council tax, LHA and disability benefits modelled + // "with lower accuracy"). + scotGov2018: { + label: "Scottish Government, 29 March 2018", + href: "https://www.gov.scot/publications/tackling-child-poverty-delivery-plan-forecasting-child-poverty-scotland/pages/8/", + }, + // Manchester Metropolitan University staff profile (the IPPR model's + // maintainer). CeMPA working paper 7/21 (2021), IJM page 2 (PDF page 4): PERU at + // Manchester Metropolitan University maintains the IPPR model; it is + // licensed to users for a fee; users named are IPPR, the Resolution + // Foundation, JRF, NEF and Legatum. + mmu: { + label: "Manchester Metropolitan University staff profile", + href: "https://www.mmu.ac.uk/staff/profile/professor-ashwin-kumar", + }, + // CeMPA, University of Essex: microsimulation.ac.uk and its 2026 UKMOD + // country report (CeMPA working paper 8/26, April 2026). + ukmod: { label: "UKMOD, CeMPA", href: "https://www.microsimulation.ac.uk/" }, + // UKMOD Country Report 2023-2030 (van de Ven and Popova, CeMPA working + // paper 8/26, April 2026). Printed page = PDF page minus 1. + ukmodReport: { + label: "UKMOD Country Report 2023–2030, CeMPA WP 8/26", + href: "https://www.iser.essex.ac.uk/wp-content/uploads/files/working-papers/cempa/cempa8-26.pdf", + }, + // CeMPA's release B2026.03, 22 June 2026: input data from the 2024 wave + // of the FRS (UK_2024_a1 single year, UK_2024_b1 three-year pooled, + // UK_2024_d1). + ukmodB202603: { + label: "UKMOD release B2026.03, 22 June 2026", + href: "https://www.microsimulation.ac.uk/about/news/2026/06/22/ukmod-b2026-03/", + }, + // UKMOD Explore: the UK, its four nations and London. + ukmodExplore: { label: "UKMOD Explore", href: "https://www.microsimulation.ac.uk/ukmod/ukmod-explore/" }, + // Richiardi, Collado and Popova, CeMPA working paper 7/21 (July 2021), + // IJM page 2: the IPPR model "is licensed to users for a hefty fee"; + // structural reforms are commissioned from PERU; with UKMOD it "completes + // the list of publicly available tax-benefit models for the UK". Users + // named for UKMOD and for the IPPR model. + cempa721: { + label: "CeMPA working paper 7/21, July 2021", + href: "https://www.iser.essex.ac.uk/wp-content/uploads/files/working-papers/cempa/cempa7-21.pdf", + }, + // IPPR, 10 June 2024: a 2p cut to National Insurance, average gains for + // working-age households in all 12 regions and nations ("Source: IPPR Tax + // and Benefit Model" on the chart beside the list). + ipprNics: { + label: "IPPR, 10 June 2024: the 2p National Insurance cut", + href: "https://www.ippr.org/media-office/national-insurance-cut-would-disproportionately-benefit-highest-earners-and-londoners-finds-ippr", + }, + // Fraser of Allander Institute, Meeting Scotland's child poverty targets + // (March 2025); its technical appendix: "We use the IPPR tax-benefit + // microsimulation model (v2.7.8)". + faiChildPoverty: { + label: "Fraser of Allander Institute, March 2025", + href: "https://fraserofallander.org/publications/meeting-scotlands-child-poverty-targets-modelling-and-policy-packages", + }, +} satisfies Record; + +export type Tone = "built" | "muted" | "caution"; +export type Tag = { label: string; tone: Tone }; + +// Status tags, in the body only, never beside a title. "Done": the code or a +// standard output does it today. "Partly": it works in Python but not in the +// web app, or covers only part of what is needed. "Not yet": it would need +// building or hand-written code. Muted tags mark a preview, an in-sample +// figure, something outside the model, or a step done by a different method. +const tag = (label: string, tone: Tone): Tag => ({ label, tone }); +export const tags = { + done: tag("Done", "built"), + partly: tag("Partly", "caution"), + notYet: tag("Not yet", "muted"), + different: tag("Different method", "muted"), + preview: tag("Preview", "muted"), + inSample: tag("In-sample", "muted"), + outside: tag("Outside the model", "muted"), +}; + +export const parts = [ + { key: "intro", icon: IconFlag, title: "Introduction", short: "Introduction", text: "Who we are" }, + { + key: "nuffield", + icon: IconHeartHandshake, + title: "The Nuffield Foundation grants", + short: "Nuffield", + text: "What they named and what exists today", + }, + { + key: "model", + icon: IconScale, + title: "The model and the data", + short: "Model and data", + text: "PolicyEngine UK and Microcosm UK 2024–25", + }, + { + key: "uses", + icon: IconFileSearch, + title: "The Resolution Foundation’s research", + short: "RF’s uses", + text: "RF’s published analyses, mapped to PolicyEngine", + }, + { + key: "compare", + icon: IconGitCompare, + title: "Checks", + short: "Checks", + text: "Data, calibration, official costings, known limits", + }, + { + key: "next", + icon: IconRoute, + title: "Routes in and a possible pilot", + short: "Next steps", + text: "Options and questions", + }, +] as const; + +export type PartKey = (typeof parts)[number]["key"]; + +// ---------- Slide 24: our reading so far, before the questions ---------- +// Summaries of slides 4 and 13 to 14, with no tally of statuses. On slide 24, +// not slide 2, so RF has seen the mapping before the summary, and question 1 +// asks whether it is right. +export const inBrief = [ + { + label: "Nuffield", + icon: IconHeartHandshake, + text: "Local-area data done; childcare and public services in part; scorecard and AI interface in progress", + }, + { + label: "RF’s uses", + icon: IconFileSearch, + text: "Decile charts, the LHA freeze and OBR uprating done; most others part-built, in Python", + }, + { + label: "Main gaps", + icon: IconPuzzle, + text: "Poverty below HBAI’s, future-year weights, take-up fixed at build, an earlier-policy baseline", + }, +]; + +// ---------- Slide 3: who we are ---------- +// Facts: policyengine.org/uk/donate ("about"); Nuffield grants made in 2024 +// and 2026 ("nuffieldGrant1", "supporters"); the policyengine.py paper +// ("joss"); licences from the LICENSE files as pinned in the BIST deck +// (policyengine-uk and policyengine.py AGPL-3.0, microcosm MIT). +// Government row: 10 Downing Street built 10ds-microsim, described as +// experimental, on PolicyEngine ("no10"); HM Treasury's pilot, recorded on 17 +// December 2024, not deployed ("hmt"); a Lords debate of 24 February 2026 +// cited House of Commons Library research that used PolicyEngine +// ("hansard"). Shown as a text list, not logos: the links are a use, a pilot +// and a citation, and official logos would overstate them (Parliament's +// portcullis is also restricted in use). The OBR's listing of PolicyEngine +// among organisations it engaged with ("obr") is left off as too weak. +// Think tanks: only those with a public source (the BIST deck's links); the +// Good Growth Foundation and WPI Economics, which have none, are left off. +export type Logo = { + name: string; + logo?: string; + width?: number; + pixelHeight?: number; + height: number; + darken?: boolean; + source?: Source; + caption?: string; + icon?: Icon; +}; + +export const whoWeAre = { + facts: [ + { + icon: IconHeartHandshake, + title: "A non-profit", + text: "Free, open-source tax and benefit tools; funded in the UK by the Nuffield Foundation", + }, + { + icon: IconWorld, + title: "UK and US models", + text: "One Python package, policyengine.py", + cite: { text: "Ahmadi et al., 2026, JOSS", source: sources.joss }, + }, + { + icon: IconLockOpen, + title: "Open licences", + text: "AGPL\u20113.0 for policyengine-uk and policyengine.py; MIT for the Microcosm pipeline", + }, + ], + government: [ + { + name: "10 Downing Street", + icon: IconBuildingEstate, + height: 2.7, + source: sources.no10, + caption: "Built 10ds-microsim (experimental) on PolicyEngine", + }, + { name: "HM Treasury", icon: IconBuildingBank, height: 3.4, source: sources.hmt, caption: "Pilot (record of 17 Dec 2024); not deployed" }, + { + name: "House of Lords", + icon: IconBuildingMonument, + height: 2.2, + source: sources.hansard, + caption: "Debate cited Commons Library research using it, 24 Feb 2026", + }, + ] as Logo[], + thinkTanks: [ + { + name: "New Economics Foundation", + logo: "/logos/orgs/new-economics-foundation.png", + width: 567, + pixelHeight: 241, + height: 3.8, + source: sources.nef, + caption: "New Economics Foundation", + }, + { + name: "Centre for Policy Studies", + logo: "/logos/orgs/centre-for-policy-studies.png", + width: 223, + pixelHeight: 223, + height: 3.8, + source: sources.cps, + caption: "Centre for Policy Studies", + }, + { + name: "Mosley and Cornforth (2023)", + height: 2.7, + source: sources.niesr, + caption: "LSE CFM paper, with NIESR’s NiGEM model", + }, + ] as Logo[], +}; + +// ---------- Slide 6: how a run works ---------- +// The rules: policyengine-uk ("model"). The households: Microcosm UK +// 2024-25, uprated with the OBR's October 2026 EFO, outturn to 2025 and +// forecasts to 2031 ("growth"). The reform example is the BIST deck's +// (policyengine-uk tests/microsimulation/reforms_config.yaml, "Raise basic +// rate by 1pp"). Outputs: the BIST deck's breakdowns. Behaviour, in one +// wording across the deck: labour supply elasticities are 0 unless switched +// on; capital gains +// realisations (elasticity 1.0, Advani, Lonsdale and Summers 2024) and +// employer NI passed to pay run by default (BIST NOTES, slide 5; policyengine- +// uk parameters/gov/simulation/capital_gains_responses/elasticity.yaml). +export const modelFlow = [ + { + icon: IconScale, + title: "The rules", + text: "Tax and benefit law as parameters and formulas, by year", + }, + { + icon: IconUsers, + title: "The households", + text: "Microcosm UK 2024–⁠25, uprated with the OBR’s October 2026 forecast to 2031–32", + }, + { + icon: IconCopy, + title: "Run twice", + text: "Baseline law and a reform: a parameter path and a value", + code: "gov.hmrc.income_tax.\u200Brates.uk[0].rate: 0.21", + }, + { + icon: IconChartBar, + title: "The difference", + text: "Exchequer cost, incomes by decile, poverty, by place", + }, +]; + +// The one wording for behaviour, used on slides 6 and 17, and the notes. +export const behaviourLine = + "No labour-supply response by default; two responses are on (capital gains realisations, employer NI passed through to pay)."; + +export const modelFoot = behaviourLine; +export const modelFootItems = [ + { icon: IconBriefcaseOff, text: "No labour-supply response by default" }, + { icon: IconTrendingUp, text: "On by default: capital gains realisations" }, + { icon: IconCoins, text: "Also on: employer NI passed through to pay" }, +]; + +// ---------- Slide 7: how the rules are encoded ---------- +// The snippet is the BIST deck's (abridged from policyengine-uk 2.179.0, +// variables/gov/hmrc/income_tax/allowances/personal_allowance.py). Counts at +// 2.179.0 from the BIST deck: 1,086 parameter files under parameters/gov, +// 998 with a reference; 1,513 variables; 6,782 YAML test cases. The registry +// line is programs.yaml at 2.180.0 ("programs"): 58 programmes, 39 complete +// and 19 partial. +export const rulesCode = { + title: "The personal allowance, abridged", + code: `class personal_allowance(Variable): + value_type = float + entity = Person + definition_period = YEAR + + def formula(person, period, parameters): + params = parameters(period) + PA = params.gov.hmrc.income_tax.allowances.personal_allowance + ANI = person("adjusted_net_income", period) + excess = max_(0, ANI - PA.maximum_ANI) + reduction = excess * PA.reduction_rate + return max_(0, np.ceil(PA.amount - reduction))`, +}; + +export const rulesFacts = [ + { icon: IconAdjustmentsHorizontal, value: "1,086", label: "parameter files", text: "998 with a reference" }, + { icon: IconMathFunction, value: "1,513", label: "variables", text: "Inputs, and formulas over arrays" }, + { icon: IconTestPipe, value: "6,782", label: "YAML test cases", text: "Inputs and the expected output" }, +]; + +export const rulesEntities = [ + { icon: IconUser, label: "Person" }, + { icon: IconUsers, label: "Benefit unit" }, + { icon: IconHome, label: "Household" }, +]; + +export const rulesRegistry = { + text: "58 programmes in the registry: 39 complete, 19 partial", + label: "policyengine-uk 2.180.0, programs.yaml", +}; + +// ---------- Slide 8: coverage ---------- +// policyengine-uk programs.yaml at 2.180.0 ("programs"), complete and +// partial, with the BIST deck's "outside the model" (corporation tax; firms +// as entities). The registry lists alcohol, tobacco and gambling duties as +// partial; the code models them on imputed spending (variables/gov/hmrc: +// vat.py, fuel_duty, alcohol_duty, tobacco_duty, gambling_duty), and +// the slide follows the registry. Council Tax Reduction: Scotland, Wales, +// England's pensioner scheme and five English working-age schemes (Merton, +// Kingston, Newham, Westminster, Oxford) are simulated ("ctr"). +export const coverage = [ + { + icon: IconReceiptTax, + title: "Taxes", + tag: tags.done, + items: [ + "Income tax, with Scottish rates; National Insurance; capital gains tax", + "VAT; fuel duty", + "SDLT and LBTT; council tax (Great Britain)", + ], + }, + { + icon: IconHeartHandshake, + title: "Benefits", + tag: tags.done, + items: [ + "Universal Credit, Pension Credit, State Pension, Housing Benefit, legacy benefits and tax credits", + "Child Benefit; PIP, DLA, Attendance Allowance, Carer’s Allowance; benefit cap", + "Winter Fuel Payment; Scottish Child Payment; Household Energy Payment", + "England childcare entitlements; Tax‑Free Childcare", + ], + }, + { + icon: IconProgress, + title: "Partial", + tag: tags.partly, + items: [ + "Council Tax Reduction: Scotland, Wales, England’s pensioner scheme and five English working‑age schemes", + "Alcohol, tobacco and gambling duties; vehicle excise duty", + "Business rates, allocated by shareholding; Warm Home Discount", + ], + }, + { + icon: IconBuildingFactory2, + title: "Firms", + tag: tags.outside, + items: ["Corporation tax", "Firms as entities"], + }, +]; + +export const coverageFootItems = [ + { icon: IconHomeDollar, text: "Welsh LTT" }, + { icon: IconHome, text: "LHA" }, + { icon: IconUsers, text: "The two-child limit" }, + { icon: IconBuildingCommunity, text: "The council tax surcharge" }, +]; + +export const coverageFoot = + "In the code, not yet in the registry: Welsh LTT, LHA, the two-child limit, the council tax surcharge."; + +// ---------- Slide 9: the household file ---------- +// The Microcosm build (22 November build, microcosm 41053d9, whose +// source_stages.json lists 57 stages; the BIST deck's 15 November build had +// 56, without uc_new_claimant_draw): 57 source stages, each survey file pinned by SHA-256; FRS +// 2024-25 base; copies of FRS households take incomes from the SPI 2022-23 +// public-use file, with more copies in the bands above £200k, £500k, £1m +// and £2m; WAS round 8, LCF 2024-25, the Effects of Taxes and Benefits +// (ETB) and the National Travel Survey (NTS); quantile-regression forests; +// take-up drawn to DWP and HMRC rates or caseloads, reporters always claim; +// calibration to 1,536 targets with each weight bounded at 10 times its +// starting weight; 78,450 household records. +export const microcosmFlow = [ + { icon: IconUsers, owner: "FRS 2024–25", title: "Base", text: "Family Resources Survey households" }, + { + icon: IconReceiptTax, + owner: "HMRC SPI 2022–23", + title: "Top incomes", + text: "FRS copies take SPI incomes; more above £200k", + }, + { + icon: IconWallet, + owner: "WAS, LCF, ETB, NTS", + title: "Wealth and spending", + text: "Imputed with quantile-regression forests", + }, + { + icon: IconHeartHandshake, + owner: "DWP and HMRC", + title: "Take-up", + text: "Reported recipients always claim; others drawn to official rates or caseloads", + }, + { + icon: IconTargetArrow, + owner: "Official totals", + title: "Calibration", + text: "1,536 targets; each weight at most 10 times its start", + }, +]; + +export const microcosmResult = { + icon: IconDatabase, + owner: "The result", + title: "Microcosm UK 2024–⁠25", + text: "78,450 household records; certified build of 22 Nov 2026", +}; + +export const microcosmFootItems = [ + { icon: IconPin, text: "57 source stages, each pinned" }, + { icon: IconLockOpen, text: "Open code" }, + { icon: IconKey, text: "Records not public: access by token" }, +]; + +export const microcosmFoot = + "57 source stages, each pinned. Open code. Records are FRS-derived (UK Data Service licence): not public, access by token."; + +// ---------- Slide 10: breakdowns ---------- +// The BIST deck's breakdowns (policyengine.py 810a59e outputs). Vigintiles: +// calculate_decile_impacts(..., quantiles=20) and decile_variable= in +// policyengine.py 81bac43 ("deciles", "decileGrouping"); the web app shows +// deciles only ("appReport"). +export type Breakdown = { text: string; tag?: Tag }; + +export const breakdowns: { icon: Icon; title: string; items: Breakdown[] }[] = [ + { + icon: IconChartBar, + title: "By income", + items: [ + { text: "Income and wealth deciles" }, + { text: "Shares gaining and losing, in five bands" }, + { text: "Gini and top shares" }, + { text: "Vigintiles, custom groups: Python only", tag: tags.partly }, + ], + }, + { + icon: IconUsers, + title: "By people", + items: [ + { text: "Four HBAI poverty measures: absolute, relative; BHC, AHC" }, + { text: "By age and by sex" }, + { text: "Household type, tenure, children: in Python", tag: tags.partly }, + ], + }, + { + icon: IconMap, + title: "By geography", + items: [ + { text: "12 regions and nations" }, + { text: "650 constituencies, 361 local authorities (separate file)" }, + { text: "Published where 10+ survey households lie behind a number; 90% intervals" }, + ], + }, + { + icon: IconReceiptTax, + title: "By programme", + items: [{ text: "14 programme lines" }, { text: "The net Exchequer cost" }], + }, +]; + +// ---------- Slide 4: the Nuffield Foundation grants ---------- +// Grants: "nuffieldGrant1" and "supporters". The table lists the areas +// Nuffield names for grant 1 and what exists today in each; it does not +// say each was completed within the grant period (the foot says so). +// - Childcare: England childcare entitlements and Tax-Free Childcare are +// complete in programs.yaml; the Childcare Offer for Wales is partial; +// Nuffield names all childcare subsidies. PolicyEngine's childcare +// programmes report, 6 June 2025 (policyengine-app-v2 posts). +// - Public services: variables for NHS, education and transport subsidy in +// policyengine-uk; Nuffield also names adult social care, which a search +// of policyengine-uk 5987eb3 did not find. +// - Local areas: 650 constituencies and 361 local authorities, certified +// local-area file of 23 November 2026 (7081d968, certified in +// policyengine.py 6.20.3; the constituency and local authority lists are +// unchanged). +// - Comparison dashboard: Nuffield describes a dashboard validating against +// other microsimulation models at household level. What exists is the +// public scorecard ("scorecard", "scorecardCode"); its IPPR rows are the +// think tank's publications (77 rows, one with a PolicyEngine value), not +// runs of the IPPR model; the case-level UKMOD comparison is pending. +// - AI interface: the Claude Code plugin (PolicyEngine/policyengine-claude) +// and a Claude connector in preview. +// - Symposium: a London event on 3 November 2025, "Supported by the +// Nuffield Foundation" (policyengine-app-v2 posts, +// policyengine-2-event-report.md). It falls after grant 1's stated end; +// the slide does not call it a grant deliverable. +// Grant 2 foot: Autumn Budget 2026 dashboard with its constituency map +// ("budgetDashboard"); Nuffield's council tax item is local Council Tax +// Reduction variation, which is under way. +export const grants = [ + { + title: "Grant 1", + name: "Enhancing, localising and democratising tax-benefit policy analysis", + amount: "£251,296", + dates: "September 2024 to September 2025", + }, + { + title: "Grant 2", + name: "Advancing evidence-based policy with AI & tax-benefit microsimulation", + amount: "£300,000", + dates: "July 2026 to June 2029", + }, +]; + +export const grantRows: { icon: Icon; area: string; today: string; tag: Tag }[] = [ + { + icon: IconSchool, + area: "Childcare at household level", + today: "England entitlements, Tax-Free Childcare; Wales in part", + tag: tags.partly, + }, + { + icon: IconBuildingCommunity, + area: "Public services at household level", + today: "NHS, education and transport; no adult social care", + tag: tags.partly, + }, + { + icon: IconMap2, + area: "Local-authority and constituency datasets", + today: "650 constituencies, 361 local authorities", + tag: tags.done, + }, + { + icon: IconGitCompare, + area: "Open dashboard validating against other models", + today: "Public scorecard of published Autumn Budget 2025 results; household-level check pending", + tag: tags.partly, + }, + { + icon: IconMessageChatbot, + area: "An AI-capable interface", + today: "A Claude Code plugin; a Claude connector in preview", + tag: tags.partly, + }, + { + icon: IconUsers, + area: "A symposium", + today: "London event, 3 Nov 2025", + tag: tags.done, + }, +]; + +export const grant1Foot = + "What exists today, not what was delivered within the grant period."; + +export const grant2Foot = + "Grant 2, under way: Budget analysis by constituency; local Council Tax Reduction; outreach to local journalists."; + +// ---------- Slide 5: the Autumn Budget 2026 dashboard ---------- +// Tabs and run: the Autumn Budget 2026 deck (commit c6c7d53) and the +// dashboard's run receipt (uk-autumn-budget-dashboard-2026): +// policyengine 6.11.1, Microcosm build of 25 October 2026, OBR October 2026 +// forecast. The number of measures differs between sources, so the slide +// gives none. View buttons: the BIST deck's deep links. +export const budgetTabs = [ + { icon: IconBuildingBank, title: "Public finances", text: "With an OBR comparison" }, + { icon: IconMap2, title: "Constituency map", text: "Every measure by constituency" }, + { icon: IconUsers, title: "Living standards, poverty", text: "By age; who gains and loses" }, + { icon: IconCalculator, title: "Household calculator", text: "Enter any household" }, + { icon: IconChartLine, title: "Pre-measures forecast", text: "Baseline before the measures" }, + { icon: IconBook, title: "Policies and methodology", text: "What is and is not modelled" }, +]; + +export const budgetRunLabel = "policyengine 6.11.1; Microcosm build of 25 Oct 2026; OBR October 2026 forecast"; + +export const budgetViews = [ + { label: "Public finances", query: "?tab=dashboard" }, + { label: "Policies", query: "?tab=policies" }, + { label: "Living standards", query: "?tab=dashboard&sub=living" }, + { label: "Household calculator", query: "?tab=household" }, +]; + +// ---------- Slide 11: RF's 2026 reports ---------- +// Figures as each report states them; judgements in quotes. Model use from +// the figure notes: Spread thin Fig 8 ("HBAI using the IPPR Tax-Benefit +// Model; ONS, LCF"), Fig 20 and Figs 21–23 ("RF projection including use of +// the IPPR Tax Benefit Model, ONS data, and OBR forecasts"); Billing me +// softly runs the model at full take-up and subtracts FRS-reported receipt; +// LSO 2026 Annex 1. Counting the cost (8 October 2026) and What a ratchet +// (10 June 2026) are cited by title and date; What a ratchet's figure is its +// recommendation's net saving (report text, not the retrospective £6.5bn). +// Home economics: the model used is not stated on RF's page. RF's 2019 +// report of the same name as Counting the cost is not linked. Hard truths on PIP (survey and DWP data) and +// Saving private renters (VOA and Stat-Xplore) do not use the model. +export const rfReports = [ + { + report: "Spread thin", + icon: IconReceiptTax, + date: "29 Oct 2026", + what: "Autumn Budget 2026; RF calls the £4.4bn package “poorly targeted”", + use: "Vigintiles (Fig 8); cumulative impact (Fig 20); projections", + }, + { + report: "Counting the cost", + icon: IconRefresh, + date: "8 Oct 2026", + what: "Median non-pensioner income −1.3%, 2020–21 to 2026–27", + use: "A no-inflation-crisis counterfactual", + }, + { + report: "Home economics", + icon: IconHomeDollar, + date: "24 Sep 2026", + what: "A 0.7% property tax in place of council tax", + use: "Model not stated", + }, + { + report: "Billing me softly", + icon: IconBolt, + date: "10 Aug 2026", + what: "Energy discount: about 40% of households, £2bn", + use: "Full take-up run minus reported receipt", + }, + { + report: "What a ratchet!", + icon: IconPigMoney, + date: "10 Jun 2026", + what: "Smoothed earnings link in place of the triple lock: about £650m net saving, 2029–30", + use: "Pensions costing", + }, + { + report: "Living Standards Outlook 2026", + icon: IconChartLine, + date: "10 Feb 2026", + what: "Two-child limit repeal: 510,000 families; average gain £4,560", + use: "Projections to 2029–30 (Annex 1)", + }, +]; + +export const rfReportsFoot = + "Some work uses no model: Hard truths (PIP); Saving private renters."; + +// ---------- Slide 12: RF's projection method ---------- +// Living Standards Outlook 2026, Annex 1 ("lso26"), with the October 2026 +// base year from Spread thin ("spreadThin"). The split between RF's own +// processing and the IPPR model is our reading of the annex; the slide asks +// to be corrected. Annex 1 says market incomes are projected "largely +// through the IPPR Tax Benefit Model" and lists the wage floor, spillovers, +// earnings uprating and the RPI cap under that heading; the WAS savings +// imputation is RF's. Rents follow ONS PIPR, then earnings with a 12-month +// lag. Annex 1 names "DWP's Family Resources Survey and Households Below +// Average Income statistics, 2023-24" (p.34) and does not mention the SPI; +// that HBAI incomes carry DWP's SPI adjustment is our inference from HBAI's +// published method, so the slide says so. Annex 1 also says benefit +// deductions (debt and advance repayments) are modelled and sanctions are +// not (p.37). +export const rfMethod = [ + { + icon: IconDatabase, + owner: "RF", + title: "Base data", + text: "FRS and HBAI 2023–24 (2024–25 in the October 2026 work); HBAI’s SPI adjustment, our inference", + }, + { + icon: IconScale, + owner: "RF", + title: "Reweight", + text: "To ONS population projections, OBR participation and unemployment, PIP caseloads", + }, + { + icon: IconTrendingUp, + owner: "Largely the model RF uses", + title: "Uprate and impute", + text: "OBR earnings with a wage floor; private pensions RPI capped at 5%; WAS savings (RF); rents (whose, not stated)", + }, + { + icon: IconCalculator, + owner: "The model RF uses", + title: "Taxes and benefits", + text: "Each year’s rules, with benefit deductions; UC take-up 80%, Pension Credit 65% rising to 70%", + }, + { + icon: IconChartLine, + owner: "RF", + title: "Anchor", + text: "Modelled growth rates and changes in poverty applied to outturn", + }, +]; + +export const rfMethodFoot = "Not modelled by RF (Annex 1): local Council Tax Support, sanctions. Nor sanctions in PolicyEngine."; +export const rfMethodFootItems = [ + { icon: IconBuildingCommunity, text: "Local variation in CTS" }, + { icon: IconHandStop, text: "Sanctions" }, +]; + +// ---------- Slides 13 and 14: the mapping tables ---------- +// Each row: RF's use (or method step), where RF publishes it (or whose step +// it is), a short cell on what PolicyEngine does today, and a status. The +// long text and the code paths for each row are in NOTES.md; the sources +// are named per row below. Rows with "also" set sit in a second group on +// slide 14, under "Also in RF's analysis": they are not among slide 12's +// five steps. +export type MapRow = { + icon: Icon; + label: string; + where: string; + today: string; + tags: Tag[]; + step: number; + also?: boolean; +}; + +// Table A. Sources by row: +// A1 "deciles", "decileGrouping", "appReport". Ranking income: "deciles" +// (default ranking is unequivalised household net income; decile_variable= +// takes any grouping). A2 "datedReforms" (nothing in policyengine.py). A3 +// "manifest", "bundleSpec", "growth". A4 "povertyVariables", +// "povertyOutputs", "twoChildLimit": Done for the policy difference, Partly +// for the child definition and projected levels. A5 "lha", "lhaRate". A6 +// "entitlement", "takeUp", "housingBenefit" (the CTR override works only +// where the scheme is simulated). A7 "growth" (triple-lock index). A8 +// "growth" (growth rates are parameters; running the file on a +// counterfactual earlier path was not checked). A9 "councilTax", +// "sourcesSpec" (was_wealth); RF's page does not state the model used. +export const usesTable: MapRow[] = [ + { + icon: IconChartHistogram, + label: "Budget measures by income group", + where: "Spread thin, Oct 2026", + today: "Deciles everywhere; vigintiles in Python", + tags: [tags.done, tags.partly], + step: 1, + }, + { + icon: IconScale, + label: "Ranking income for distributional charts", + where: "RF’s distributional charts", + today: "Unequivalised by default; equivalised HBAI deciles built in; any grouping can be passed in Python", + tags: [tags.partly], + step: 1, + }, + { + icon: IconCalendarStats, + label: "Cumulative impact of a Parliament", + where: "Spread thin, Oct 2026", + today: "No earlier-policy baseline; hand-written reform", + tags: [tags.notYet], + step: 1, + }, + { + icon: IconTrendingUp, + label: "Income and poverty projections", + where: "LSO, Feb 2026", + today: "OBR uprating to 2031–32; no future reweighting", + tags: [tags.partly], + step: 1, + }, + { + icon: IconUsers, + label: "Child poverty, with and without a policy", + where: "LSO, Feb 2026", + today: "Runs on four HBAI measures; poor larger families under-weighted, so effects likely understated", + tags: [tags.partly], + step: 2, + }, + { + icon: IconHome, + label: "LHA freeze", + where: "Spread thin, Oct 2026", + today: "Rates by rental area (BRMA); freeze is a parameter", + tags: [tags.done], + step: 2, + }, + { + icon: IconHeartHandshake, + label: "Non-take-up", + where: "Billing me softly, Aug 2026", + today: "Entitlement run in Python for five benefits", + tags: [tags.partly], + step: 2, + }, + { + icon: IconPigMoney, + label: "Pensions costings", + where: "What a ratchet!, Jun 2026", + today: "State Pension; smoothed earnings link needs a hand-written path", + tags: [tags.partly], + step: 3, + }, + { + icon: IconRefresh, + label: "Counterfactual histories", + where: "Counting the cost, Oct 2026", + today: "Projects forward from 2024–25 only; earlier years untested", + tags: [tags.notYet], + step: 3, + }, + { + icon: IconHomeDollar, + label: "Council tax reform (RF’s model not stated)", + where: "Home economics, Sep 2026", + today: "Inputs held (council tax, WAS property wealth); the reform is not written", + tags: [tags.notYet], + step: 3, + }, +]; + +// Foot of slide 13: "twoChildLimit" (abolished from 6 April 2026), the +// benefit cap, and UC rebalancing (parameters/gov/dwp/universal_credit/ +// rebalancing, applied in every baseline by simulation.py). +export const usesFoot = [ + "In the baseline today: two-child limit abolished from 6 April 2026; the benefit cap; the Universal Credit rebalancing.", + "Checked against policyengine-uk 5987eb3, microcosm cac12ab and policyengine.py 81bac43, 25 November 2026.", +]; + +// Table B. Sources by row: +// B1 "equivalisation" and the BIST deck; HBAI checks on +// Microcosm. B2 "manifest", "bundleSpec" (target_period 2025), +// "staticAging". B3 "targetReferences" (dwp.pip.*). B4 "growth", +// "uprating"; Annex 1 puts earnings uprating, the wage floor and the RPI +// cap under market incomes, projected "largely through the IPPR Tax Benefit +// Model". B5 "growth" (obr.private_pension_index; no minimum-wage floor +// found). B6 "sourcesSpec" (was_wealth, hmrc_spi_income_spine). B7 +// "uprating" (uprate_rent), "growth" (ons.private_rental_prices: regional +// outturn to 2025, the OBR's UK forecast from 2026; obr.consumer_price_index_ahc, +// the AHC deflator). B8 "takeUp", +// "ucTakeUp": every benefit unit carries a stored flag, including units not +// entitled today (microcosm uk_runtime uc_take_up.py, +// pension_credit_take_up.py, child_benefit_take_up.py). B10 not in the +// model. Also in RF's analysis: B9 "indirect", "sourcesSpec" (VAT and fuel +// duty complete; alcohol, tobacco and gambling duties partial in +// programs.yaml); B11 "ctr"; B12 policyengine-uk docs/book/usage/ +// simulations.md: UKSingleYearDataset and UKMultiYearDataset load entity +// tables, the multi-year class "loaded as-is" year by year; take-up flags +// default to claiming (would_claim_uc default_value True). +export const stepsTable: MapRow[] = [ + { + icon: IconDatabase, + label: "Latest FRS and HBAI", + where: "RF", + today: "FRS 2024–25; HBAI income computed; poverty below HBAI in checks so far", + tags: [tags.partly], + step: 1, + }, + { icon: IconScale, label: "Reweight to future populations", where: "RF", today: "One dataset, fitted to 2025", tags: [tags.notYet], step: 1 }, + { icon: IconHeartHandshake, label: "PIP caseloads", where: "RF", today: "Calibrated for 2025 only", tags: [tags.partly], step: 1 }, + { + icon: IconTrendingUp, + label: "OBR uprating", + where: "Model RF uses (largely)", + today: "OBR October 2026 forecast, to 2031–32", + tags: [tags.done], + step: 1, + }, + { + icon: IconCoins, + label: "Minimum-wage floor; private-pension RPI cap", + where: "Model RF uses (largely)", + today: "OBR private-pension index; no wage floor found", + tags: [tags.partly], + step: 1, + }, + { icon: IconWallet, label: "Savings income", where: "RF", today: "WAS wealth; interest from FRS and SPI", tags: [tags.different], step: 1 }, + { icon: IconHome, label: "Rents", where: "Not stated in Annex 1", today: "ONS rents by region to 2025–26, then the OBR’s UK forecast; AHC deflator built in", tags: [tags.partly], step: 1 }, + { + icon: IconUsers, + label: "Partial take-up", + where: "Model RF uses", + today: "Drawn at build, also for those not entitled today; not set per run", + tags: [tags.partly], + step: 1, + }, + { icon: IconChartLine, label: "Growth rates applied to outturn", where: "RF", today: "In RF’s code, or could be added", tags: [tags.notYet], step: 1 }, + { + icon: IconShoppingCart, + label: "Indirect taxes", + where: "Model RF uses", + today: "LCF 2024–25; VAT and fuel duty; three other duties partial", + tags: [tags.done, tags.partly], + step: 2, + also: true, + }, + { + icon: IconBuildingCommunity, + label: "Council Tax Support variation", + where: "Not modelled by RF", + today: "Five English schemes, Scotland, Wales, pensioners", + tags: [tags.partly], + step: 2, + also: true, + }, + { + icon: IconArrowsSplit, + label: "PolicyEngine’s rules on RF’s own file", + where: "In place of step 4", + today: "Possible in Python, not yet tried; variables to map, take-up flags to supply", + tags: [tags.notYet], + step: 2, + also: true, + }, +]; + +export const stepsAlsoLabel = "Also in RF’s analysis, outside the five steps"; + +// The known gap makes slide 9's point (one calibrated year; take-up drawn +// at build). Behaviour, managed migration and sanctions are in NOTES.md +// (sanctions: none found by a search of policyengine-uk 5987eb3). +export const stepsCaution = + "Known gap: calibrated to one year (2025), on FRS 2024–25 data; take-up drawn at build; RF projects to 2029–30."; + +// ---------- Slide 15: Billing me softly ---------- +// Left: "billingMeSoftly" (Great Britain; passported by a means-tested +// benefit or a £24,000 test on the highest individual income in the +// household; about 40% of households pass the income test; a £2bn scheme, +// about £175 each). Right: "energyDiscount", "energyCode" (flat option, +// 2026-27: 28.6m households, 11.95m recipients, 42% of GB households, +// passported or passing the test; the income test alone 35% in 2026-27, +// 38% on 2024-25 incomes; £2.09bn; Microcosm UK 2024-25, policyengine-uk +// 2.102.3, analyses/rf-billing-me-softly README.md and rf_comparison.md). +export const energy = { + proposal: [ + { icon: IconBolt, title: "A targeted energy discount", text: "Resolution Foundation proposal" }, + { + icon: IconScale, + title: "£24,000 test, or a means-tested benefit", + text: "On the highest individual income in the household; GB", + }, + { icon: IconChartPie, title: "About 40% pass the income test", text: "A £2bn scheme, about £175 each" }, + ], + run: [ + { icon: IconHome, title: "28.6 million GB households", text: "In the run; flat option, 2026–27" }, + { + icon: IconUsers, + title: "11.95 million recipient households", + text: "42% of GB households, passported or passing; income test alone 35% (RF: about 40%)", + }, + { icon: IconCoins, title: "£2.09bn", text: "Cost in 2026–27" }, + ], + runLabel: "Microcosm UK 2024–25; policyengine-uk 2.102.3", + foot: "An illustration of encoding a proposal, not a test of either model.", +}; + +// ---------- Slides 16 and 17: comparison tables ---------- +// Columns: PolicyEngine UK | IPPR model, as RF uses it | UKMOD. +// PolicyEngine cells from the BIST deck and the code read on 25 November; +// IPPR cells only from published notes, each dated (LSO 2026, Spread thin, +// the Scottish Government's 2018 description, the MMU staff page); UKMOD +// cells from CeMPA's 2026 country report (UKMOD Country Report 2023-2030, +// working paper 8/26, April 2026) and microsimulation.ac.uk ("ukmod"): FRS +// 2023-24, 16,754 households (Table 3.1, p.74); FRS grossing weights, "no +// other updating adjustments"; no data on capital gains, inheritances, +// property transactions or property value. Since then: CeMPA's release +// B2026.03 (22 June 2026, "ukmodB202603") added input data from the 2024 +// wave of the FRS (2024-25 in CeMPA's naming), single-year and three-year +// pooled. HBAI extension: recommended for cross-sectional analysis with +// data from 2018 (p.101), used in the validation (p.83), off by default +// (p.31), with "adjustments that account for high income tax payers" (p.85; +// the report does not name the SPI). Take-up: on by default (p.79), by +// claimant type (Table 3.4), reported recipients first (p.31), editable; +// only tax credits vary by area. Region of residence is in the data; LHA +// uses the 12 regions (p.47); UKMOD Explore covers the UK, the nations and +// London. Three-year pooled data (p.81). IPPR model: take-up method from the +// Scottish Government's 2018 appendix ("scotGov2018": a probit, calibrated +// to DWP and HMRC take-up statistics); regional results for all 12 regions +// and nations in IPPR's 2p NI cut analysis ("ipprNics", 10 June 2024); +// users from CeMPA WP 7/21 ("cempa721", 2021) and the Fraser of Allander +// Institute ("faiChildPoverty", March 2025). "Not found in published +// sources" means only that. On-slide cells are short; the fuller wording is in NOTES.md. +export type CompareRow = { icon: Icon; label: string; cells: [string, string, string]; step: number }; + +export const compareHeads: [string, string, string] = [ + "PolicyEngine UK", + "IPPR model, as RF uses it: what we found published", + "UKMOD, as we read CeMPA’s 2026 country report and website", +]; + +export const notFound = "Not found in published sources"; + +export const dataCompare: CompareRow[] = [ + { + icon: IconDatabase, + label: "Base survey", + cells: [ + "FRS 2024–25", + "FRS and HBAI 2024–25 (2023–24 in LSO 2026)", + "FRS 2024–25 since June 2026; the 2026 report documents 2023–24 (16,754 households)", + ], + step: 1, + }, + { + icon: IconReceiptTax, + label: "Top incomes", + cells: [ + "Copies of FRS households take SPI 2022–23 incomes; more above £200k", + "HBAI incomes; treatment in the model not found published", + "HBAI extension, adjusted for high-income taxpayers; off by default, recommended for cross-sections", + ], + step: 1, + }, + { + icon: IconWallet, + label: "Wealth", + cells: [ + "WAS round 8, imputed; savings interest from FRS and SPI", + "Savings income modelled in WAS, imputed by RF (LSO 2026)", + // WP 8/26: financial capital ($f_afc, printed p.108) used for capital limits + // and tariff income in the means tests (printed p.14). + "Financial capital for means tests; no data on gains, inheritances or property sales", + ], + step: 2, + }, + { + icon: IconShoppingCart, + label: "Spending", + cells: ["LCF 2024–25, imputed; also ETB and NTS", "LCF (Spread thin, 2026; Scottish Government, 2018)", "LCF, through the indirect-tax add-on"], + step: 2, + }, + { + icon: IconHeartHandshake, + label: "Benefit take-up", + cells: [ + "Reported recipients claim; others drawn at build to DWP and HMRC rates or caseloads", + "Take-up model calibrated to DWP and HMRC (2018); in LSO 2026, UC 80%, Pension Credit 65% to 70%", + "Official rates by claimant type, on by default; reported recipients first; editable", + ], + step: 2, + }, + { + icon: IconScale, + label: "Weights and effective sample", + cells: [ + "1,536 official targets; 78,450 records, effective about 7,500; poverty below HBAI’s (slide 18)", + "Base weights not found published; RF reweights projection years", + "FRS grossing weights; a three-year pooled option; no other reweighting", + ], + step: 3, + }, + { + icon: IconMap, + label: "Geography", + cells: [ + "12 regions and nations; 650 constituencies, 361 local authorities (separate file, same survey)", + "12 regions and nations (IPPR, June 2024)", + "Region in the data; nation and London extensions; UKMOD Explore", + ], + step: 3, + }, + { + icon: IconCalendarStats, + label: "Years ahead", + cells: [ + "OBR uprating to 2031–32; one set of weights, fitted to 2025", + "Projected to 2029–30 (LSO 2026)", + "Policy years 2023–2030; a release after each Budget", + ], + step: 3, + }, +]; + +export const rulesCompare: CompareRow[] = [ + { + icon: IconCode, + label: "Platform and interfaces", + cells: [ + "Python package (YAML parameters, Python formulas); web app; Claude connector (preview)", + notFound, + "EUROMOD platform, own rule language; Windows interface, UKMOD Explore web tool, EUROMOD’s Python connector (JRC)", + ], + step: 1, + }, + { + icon: IconLockOpen, + label: "Licence and maintainer", + cells: [ + "AGPL-3.0 and MIT; PolicyEngine, public pull requests", + "Licensed for a fee (CeMPA WP 7/21, 2021); PERU, Manchester Metropolitan University", + "EUPL-1.2 software, CC BY-NC-ND model, free; CeMPA, Essex", + ], + step: 1, + }, + { + icon: IconDatabase, + label: "Access to the data", + cells: ["Code open; FRS-derived records restricted", notFound, "Input data to users with UK Data Service permission"], + step: 1, + }, + { + icon: IconCoins, + label: "Direct taxes and benefits", + cells: [ + "Income tax incl. Scottish rates, NI, CGT; UC, legacy, pensions, disability", + "On the FRS (Scottish Government, 2018)", + "Income tax incl. Scottish and Welsh rates, NI, UC, legacy, Scottish benefits", + ], + step: 2, + }, + { + icon: IconBuildingCommunity, + label: "Council tax and support", + cells: [ + "Council tax; CTR for Scotland, Wales, pensioners, five English schemes", + "Modelled (Scottish Government, 2018); RF does not model CTS variation", + "Council tax from the data; CTR modelled", + ], + step: 2, + }, + { + icon: IconHomeDollar, + label: "Capital and property taxes", + cells: ["CGT, SDLT, LBTT, on imputed gains and drawn property purchases", notFound, "Not simulated; no data on gains or property sales"], + step: 2, + }, + { + icon: IconArrowsSplit, + label: "Behaviour", + cells: [ + "No labour-supply response by default; capital gains and employer NI responses on", + "Static (Fraser of Allander, 2025)", + "Static; behavioural add-on", + ], + step: 3, + }, + { + icon: IconCircleCheck, + label: "Validation, tests, documentation", + cells: [ + "Calibration dashboard (in-sample); OBR comparisons; 6,782 tests", + notFound, + "Annual country report against administrative data and HBAI", + ], + step: 3, + }, + { + icon: IconUsers, + label: "Published work using it", + cells: [ + "No 10 (10ds-microsim, experimental), NEF, CPS, Mosley and Cornforth (with NiGEM)", + "IPPR, RF, JRF, NEF, Legatum (CeMPA, 2021); Fraser of Allander (2025)", + "Scottish and Welsh Governments, SFC, SPICe, GLA, Commons Library, CPAG, WBG (CeMPA, 2021)", + ], + step: 3, + }, +]; + +// ---------- Slide 18: calibration ---------- +// The certified build of 22 November 2026, from the public calibration +// dashboard's data routes ("dashboard"), read 25 November 2026: 1,536 +// targets; 1,517 within 10% (98.8%, in-sample); 78,450 household records; +// effective sample size 7,471 (shown as about 7,500). Starting weights +// (already including the SPI copies): 679 of 1,536 within 10% (44%); +// Universal Credit 19 of 107 (18%) to 104 (97%), Pension Credit 1 of 13 (8%) +// to 13 (100%), PIP 3 of 18 (17%) to 18 (100%). By publisher: HMRC 776, ONS +// 366, DWP 234, MHCLG 82, others 78. Still no out-of-sample page for the UK. +export const calibration = { + stats: [ + { value: "1,536", label: "official targets", icon: IconTargetArrow }, + { value: "98.8%", label: "within 10% of the official figure", icon: IconCircleCheck }, + { value: "78,450", label: "household records, incl. SPI copies of FRS households", icon: IconDatabase }, + { value: "about 7,500", label: "effective sample size", icon: IconUsers }, + ], + beforeAfter: [ + { label: "All targets", before: "44%", after: "98.8%" }, + { label: "Universal Credit", before: "18%", after: "97%" }, + { label: "Pension Credit", before: "8%", after: "100%" }, + { label: "PIP", before: "17%", after: "100%" }, + ], + publishers: [ + { name: "HMRC", count: 776 }, + { name: "ONS", count: 366 }, + { name: "DWP", count: 234 }, + { name: "MHCLG", count: 82 }, + { name: "Others", count: 78 }, + ], + foot: "Untargeted check (2024–25, HBAI’s latest year): 3.40m children below HBAI’s AHC line, against HBAI’s 3.97m; 4.02m before calibration.", + footNote: "microcosm#1710. Targets are for 2025.", +}; + +// ---------- Slide 19: Autumn Budget 2026 against the OBR ---------- +// "budgetBriefing": PolicyEngine's estimates against the OBR's detailed +// table 1.1, £m, for all seven measures the briefing models. Run: +// policyengine 6.11.1, Microcosm build of 25 October 2026. The percentage +// column is computed on the slide. Years: 2026-27 for the three measures +// with a figure that year; 2029-30 for the three income tax measures (after +// the Self Assessment timing gap for property income and the trading +// allowance; the last year of the Pension Tax Allowance, whose 2027-28 +// figures are close, 42 against 44); 2031-32, the first full year, for the +// Carer's Allowance taper. +// - Fuel duty: the official figure is the government's estimate, which the +// OBR used but could not certify. +// - Pension Tax Allowance: income tax only, from the briefing's text +// (£42m, £112m, £193m against £44m, £83m, £144m for 2027-28 to 2029-30). +// Its Table 6 shows the net cost after Pension Credit, Housing Benefit and +// Council Tax Reduction (−30, −83, −144), which the package uses; the net +// figure equals the OBR's income tax line in two years. +// - Carer's Allowance taper: before income tax (£79m), like the OBR's +// spending line (£69m); net of income tax, £48m. +// - Trading allowance: 2029-30, −119 against −165; in 2028-29, the OBR's +// catch-up year, −118 against −221. +// - Reasons: the briefing's "Why each differs". Where it gives no reason +// for the size of a gap, the row says "not yet explained". +// - The package: all seven run together in 2026-27, when only the first +// three are non-zero (Table 3; the sum of those rows). +export const budgetRows = [ + { + measure: "Household Energy Payment", + icon: IconBolt, + year: "2026–27", + pe: -1969, + obr: -2627, + reason: "Scope: devolved share and £100m for English councils not modelled", + step: 1, + }, + { + measure: "Zero VAT on electricity", + icon: IconPlug, + year: "2026–27", + pe: -840, + obr: -734, + reason: "Coverage: a different spending base (ONS series 10–12% lower)", + step: 1, + }, + { + measure: "Fuel duty*", + icon: IconGasStation, + year: "2026–27", + pe: -301, + obr: -574, + reason: "Coverage: household fuel only, about £13bn of a £24bn base", + step: 1, + }, + { + measure: "Pension Tax Allowance†", + icon: IconPigMoney, + year: "2029–30", + pe: -193, + obr: -144, + reason: "Not yet explained; 670,000 gainers against HMT’s 500,000 (2027–28)", + step: 2, + }, + { + measure: "Property income tax", + icon: IconHome, + year: "2029–30", + pe: 429, + obr: 394, + reason: "Behaviour: the OBR includes small responses (about £0.1bn)", + step: 2, + }, + { + measure: "Trading allowance", + icon: IconBriefcase, + year: "2029–30", + pe: -119, + obr: -165, + reason: "Behaviour and coverage: expense switching; no gross receipts in data", + step: 2, + }, + { + measure: "Carer’s Allowance taper‡", + icon: IconHeartHandshake, + year: "2031–32", + pe: -79, + obr: -69, + reason: "Not yet explained", + step: 2, + }, +]; + +export const budgetPackage = { + measure: "All seven, run together", + icon: IconCalculator, + year: "2026–27", + pe: -3110, + obr: -3935, + reason: "Only rows 1–3 are non-zero in 2026–27", +}; + +export const budgetNotes = [ + "* The OBR used the government’s estimate for fuel duty but could not certify it.", + "† Income tax only (briefing text). After lower Pension Credit, Housing Benefit and CTR, PolicyEngine’s net cost is smaller (briefing Table 6).", + "‡ Before income tax, like the OBR’s spending line; net of income tax, −48.", +]; + +export const budgetYears = + "Income tax measures shown for 2029–30 (Self Assessment timing; trading allowance 53% in 2028–29). Negative = cost."; + +export const budgetBehaviour = "Most official costings include behaviour; the briefing calls this run static."; + +export const budgetLabel = "As published, 31 Oct 2026: policyengine 6.11.1; Microcosm build of 25 Oct 2026"; + +// ---------- Slide 20: what we do not claim ---------- +// Not claimed: "scorecard", "scorecardCode"; "hbaiCheck" (untargeted +// checks against HBAI, case by case); "hmt". +// Known limits, only those no other slide states (behaviour is on slides 6, +// 17 and 19; take-up at build on 14; restricted data on 9 and 21; CTR on 8 +// and 14): the BIST deck; "manifest" and "bundleSpec" (one dataset). +// The scorecard rows that were on this slide are in NOTES.md (slide 20): +// RF's figures predate the two-child limit's abolition and use an earlier +// forecast, data year and baseline, so they are not like-for-like. +export const notClaimed = [ + { icon: IconGitCompare, text: "No reconciled model comparison yet; a scorecard is in progress" }, + { icon: IconTargetArrow, text: "Calibration fit is in-sample; untargeted checks case by case" }, + { icon: IconBuildingBank, text: "HM Treasury pilot (record of Dec 2024): NI close, income tax “less promising”; not deployed" }, +]; + +export const knownLimits = [ + { icon: IconUsers, text: "Poverty below HBAI’s: 3.40m children (AHC) against 3.97m (slide 18)" }, + { icon: IconBuildingFactory2, text: "No firms, no corporation tax" }, + { icon: IconCalendarStats, text: "One set of weights, fitted to 2025" }, + { icon: IconChartBar, text: "Effective sample about 7,500; areas need 10+ households" }, + { icon: IconCopy, text: "SPI copies’ industry is imputed" }, +]; + +// Source for the scorecard rows now in NOTES.md (slide 20): policyengine-scorecard +// 771c028, app/public/data/populations.json (built 30 October 2026), +// harvest sources/harvest-uk-ab2025-2026-09-24/. The three RF rows labelled +// "comparable", all from RF's No half measures (October 2025). PolicyEngine +// runs: policyengine-uk 2.132.6, Microcosm UK 2024-25 build +// 20261019T083323Z-6cba5d71 (read from each row's "latest" record). RF's +// figures predate the two-child limit's abolition from April 2026. 755 +// Autumn Budget 2025 rows have a result from RF, UKMOD, the IFS, IPPR and +// four others; 633 carry a PolicyEngine value, and most of those ran on +// policyengine-uk 2.89.2 and an earlier data build (bundle dated 19 June +// 2026), including the £46k +// example (higher-rate threshold and NI upper earnings limit to £46k: RF +// £9.0bn, PolicyEngine £6.62bn). The notes give the rows; they do not quote +// the gaps as agreement. +// ---------- Slide 21: routes in ---------- +// Web app: a parametric reform with a national report needs no data access +// ("appReport"); structural reforms without code are not available (only +// pre-coded switches, hidden from parameter search: "appSearch"); vigintiles +// and entitlement runs are Python only. Connector: a hosted PolicyEngine +// connector for Claude, in preview and not yet launched; example prompt +// as used in PolicyEngine's demonstrations of the connector. Plugin: PolicyEngine/ +// policyengine-claude. Python: policyengine.py README (pip install +// policyengine; pe.uk.calculate_household; pe.uk.economic_impact_analysis). +// Population runs in Python need an access token for the restricted data. +export const routes = [ + { + icon: IconWorld, + title: "Web app", + text: "policyengine.org/uk: parametric reforms and a national report, in the browser", + tag: tags.done, + extra: { text: "Structural reforms and vigintiles need code" }, + }, + { + icon: IconMessageChatbot, + title: "Ask in plain English", + text: "A Claude connector: “Score a 21p basic rate”; not yet launched", + tag: tags.preview, + }, + { + icon: IconCode, + title: "An AI coding assistant", + text: "A Claude Code plugin writes and runs it; the analyst reviews", + tag: tags.done, + }, + { + icon: IconBrandPython, + title: "Python", + text: "pip install policyengine", + code: ["pe.uk.calculate_household(...)", "pe.uk.economic_impact_analysis(...)"], + tag: tags.done, + }, +]; + +export const routesFootItems = [ + { icon: IconWorld, text: "Web app: no data access" }, + { icon: IconKey, text: "Population runs: a token for Microcosm UK" }, + { icon: IconEye, text: "Code and outputs reviewable like any script" }, +]; + +export const routesFoot = + "Web app: no data access. Python: an access token for Microcosm UK (FRS-derived). Code and outputs reviewable like any script."; + +// ---------- Slide 22: three options ---------- +export const options = [ + { + icon: IconWorld, + title: "A. Use what is public", + rows: [ + { label: "What it is", text: "Web app, dashboards and analyses as a second source" }, + { label: "What it needs", text: "No data access, no code" }, + { label: "What it gives", text: "A quick cross-check" }, + ], + }, + { + icon: IconArrowsSplit, + title: "B. PolicyEngine runs, RF specifies", + rows: [ + { label: "What it is", text: "RF specifies; PolicyEngine runs it and returns tables and code" }, + { label: "What it needs", text: "A specification; time to review" }, + { label: "What it gives", text: "A side-by-side and a first reconciliation" }, + ], + }, + { + icon: IconCode, + title: "C. RF runs it", + rows: [ + { label: "What it is", text: "RF analysts run it, in Python or with an AI assistant" }, + { label: "What it needs", text: "A token, a data route and the missing steps" }, + { label: "What it costs", text: "A break in RF’s series; past figures reconciled" }, + { label: "What it gives", text: "Open code, local-area outputs, changes by pull request" }, + ], + }, +]; + +export const optionsFootItems = [ + { icon: IconCalendarStats, text: "Future-year weights" }, + { icon: IconHistory, text: "An earlier-policy baseline" }, + { icon: IconUserCheck, text: "Run-time take-up" }, + { icon: IconChartLine, text: "Anchoring to outturn" }, + { icon: IconUsers, text: "Poverty closer to HBAI’s" }, +]; + +export const optionsFoot = + "C would also need: future-year weights, an earlier-policy baseline, run-time take-up, anchoring to outturn, poverty closer to HBAI’s."; + +// ---------- Slide 23: a possible pilot ---------- +export const pilotFlow = [ + { icon: IconTargetArrow, title: "Choose", text: "One published chart and its definitions" }, + { icon: IconRefresh, title: "Reproduce", text: "The same measures, year and income definition in PolicyEngine" }, + { icon: IconArrowsSplit, title: "Reconcile", text: "Split each difference into data, rules, take-up and uprating" }, + { icon: IconBook, title: "Decide", text: "A short note on what matched, what did not and what it would take" }, +]; + +export const pilotBrings = { + rf: [ + { icon: IconFileDescription, text: "The chart’s specification: income, equivalisation, take-up" }, + { icon: IconChartLine, text: "The published series" }, + { icon: IconEye, text: "A reviewer’s time" }, + ], + pe: [ + { icon: IconCode, text: "The run, with code, versions and data recorded" }, + { icon: IconTable, text: "The reconciliation table and note" }, + { icon: IconPuzzle, text: "Small missing pieces, such as vigintiles in the web app" }, + ], +}; + +export const pilotScope = + "Indicative scope: one chart. PolicyEngine runs it and writes the note; RF specifies, reviews and supplies intermediate results where needed."; + +export const pilotCandidates = [ + { + icon: IconReceiptTax, + title: "Candidate 1: Spread thin, Fig 8", + text: "Agree the measures first (RF £4.4bn; PolicyEngine £3.11bn). Deciles too: about 375 effective households per vigintile", + }, + { icon: IconBolt, title: "Candidate 2, smaller: Billing me softly", text: "Already encoded; add the non-take-up method" }, +]; + +// ---------- Slide 24: questions ---------- +export const questions = [ + { icon: IconFileSearch, text: "Is our list of RF’s uses right, and which matters most?" }, + { icon: IconGitCompare, text: "Which analysis is most worth reproducing side by side?" }, + { icon: IconArrowsSplit, text: "Which projection steps would stay in RF’s own code?" }, + { icon: IconTargetArrow, text: "What agreement, against which benchmark, would you want to see?" }, + { icon: IconDatabase, text: "How could RF hold FRS-derived data such as Microcosm UK?" }, + { icon: IconMessageQuestion, text: "Which route in suits RF, and should a pilot’s code be public?" }, +]; + +// ---------- Slide 25: closing ---------- +// Emails as used in other decks in this repository. The Nuffield credit +// follows the Autumn Budget 2026 deck: "Funded by" and the white logo on a +// dark background, linking to the grant 1 project page. +export const closingLinks: { label: string; href: string }[] = [ + { label: "policyengine.org/uk", href: sources.home.href }, + { label: "github.com/PolicyEngine/policyengine-uk", href: sources.model.href }, + { label: "github.com/PolicyEngine/microcosm", href: sources.data.href }, + { label: "Calibration dashboard (22 Nov 2026 build)", href: sources.dashboard.href }, + { label: "policyengine.org/uk/budgets/autumn-2026", href: sources.budgetDashboard.href }, + { label: "policyengine.org/uk/targeted-energy-discount", href: sources.energyDiscount.href }, + { label: "doi.org/10.21105/joss.11115", href: sources.joss.href }, + { label: "vahid@policyengine.org · max@policyengine.org", href: "mailto:vahid@policyengine.org,max@policyengine.org" }, +]; + +export const funder = { + label: "Funded by", + name: "Nuffield Foundation", + logo: "/logos/funders/nuffield-foundation-white.svg", + width: 118, + height: 70, + source: sources.nuffieldGrant1, +}; diff --git a/slideshows/rf-2026/slides/Embed.tsx b/slideshows/rf-2026/slides/Embed.tsx new file mode 100644 index 00000000..5dc52665 --- /dev/null +++ b/slideshows/rf-2026/slides/Embed.tsx @@ -0,0 +1,101 @@ +"use client"; + +import { useState } from "react"; +import { + IconArrowsMaximize, + IconArrowsMinimize, + IconExternalLink, + IconWorld, +} from "@tabler/icons-react"; +import styles from "./deck.module.css"; + +/** + * A live page on the slide, after the Autumn Budget 2026 deck's + * DashboardEmbed. Expand stretches the same frame over the whole screen, so + * whatever is open in it is kept when it goes back to the slide. Clicks in + * the frame go to the page, and so do the arrow keys until the slide is + * clicked outside it. The view buttons load one of the page's tabs into the + * same frame. + */ +export type EmbedView = { + label: string; + /** The deep link's query string, such as "?tab=household". */ + query: string; +}; + +export default function Embed({ + href, + title, + views = [], + zoom = 1, +}: { + href: string; + title: string; + /** Buttons that open a tab or sub-tab in the frame. */ + views?: readonly EmbedView[]; + /** Shows the page smaller than life, so more of it fits: 0.7 is 70%. */ + zoom?: number; +}) { + const [expanded, setExpanded] = useState(false); + const [src, setSrc] = useState(href); + // Bumped on every view button, so a second click on the same view reloads it. + const [load, setLoad] = useState(0); + const ToggleIcon = expanded ? IconArrowsMinimize : IconArrowsMaximize; + const address = new URL(href); + + return ( +
event.stopPropagation()} + > +
+ + + {views.length > 0 && ( +
+ {views.map((view) => ( + + ))} +
+ )} + + + +
+
+