Repository navigation
UK: source the extended-hours usage draw from DfE additional-hours PTEs (#1126) - #1127
Closed
vahid-ahmadi wants to merge 1 commit into
Closed
vahid-ahmadi wants to merge 1 commit into
vahid-ahmadi wants to merge 1 commit into
Conversation
#1126) The frozen clip(N(15.019, 4.972), 0, 30) gave a working-parent 3- or 4-year-old about 15 funded hours a week, the universal offer alone. DfE's January 2025 census funds 341,988.09 additional-hours PTEs for 379,000 registered 3-4-year-olds: 28.535 weekly hours in total. The mean becomes 31.141 (sd and bounds held), status sourced_administrative_derived. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 of 80 tasks
This was referenced Oct 16, 2026
Collaborator
|
Superseded by #1299 (merged 16 October), which carries this PR's commit with your authorship as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1126
What changes
take_up_contract.jsonchanges themaximum_extended_childcare_hours_usageentry. The entry was frozen by adjudication; it is now sourced from DfE:frozen_by_adjudication(#834)sourced_administrative_derivedThe derivation and both DfE sources are recorded in the entry. #834 froze the draw "pending evidence on hours actually used". That evidence:
The engine variable caps a family's total weekly extended hours, so the anchor is the total (universal plus additional). Only the 3-4 cohort is used as the anchor, because DfE's under-2 and 2-year-old PTEs are partly forecast.
Effect: offline check, no rebuild
On the certified national release (
f9d1922c, policyengine-uk 2.102.3), I inverted the release's own draws through N(15.019, 4.972) to recover the identity-keyed uniforms, mapped them through N(31.141, 4.972), clipped to [0, 30] and set the result as input. A rebuild with this contract would produce the same draws. Results for 2026-27 (£bn):The remaining £0.6bn sits on the policyengine-uk side and is out of scope here. It is made up of hourly rates 1-6% below DfE's 2026-27 averages (+£0.21bn) and under-1s (whole-year ages), offset by 4-year-olds in reception who are still funded. The universal-hours switch-off, policyengine-uk#1930, adds +£0.11bn on the old draw and has essentially no effect on the new one.
Tests
test_extended_hours_usage_reproduces_dfe_additional_hours_ptes(engine-free UK). It checks the entry is sourced and that its clipped mean reproduces the DfE-implied 28.535 hours to within 0.01.uv run pytestontests/engine_free/ukandtests/engine_free/shared, plusruff check, run locally. The stochastic-tool tests use their own fake contract, so they are unaffected.Not in this PR (needs a decision or a build)
tools/fit_uk_childcare_takeup.pyfits the four childcare rates using the hours draw, and its extended-rate row is bilinear with the hours through the engine's exclusions. It needs the engine and the spine, so it was not re-run here. The landed rates should be refit, or the decision to keep them recorded, before the next UK build.experiments/or the tracking issue, I will add one.🤖 Generated with Claude Code