council_tax_benefit switches from simulated to reported when a reform moves a household out of a simulated scheme, creating spurious losses
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
Locate the council_tax_benefit variable in policyengine-uk and the where(scheme_supported, simulated, reported) fallback described in the issue; trace how council_tax_reduction_scheme_supported and simulated_council_tax_reduction_benunit are set for household 367. Reproduce the 2026-27 +£30 UC standard allowance reform on the certified build and compare source flags baseline vs reform. Done means reform scoring no longer substitutes reported for simulated (or an explicit source-switch flag is exposed), with a regression test covering the household.
由索引模型根据 Issue 内容生成。
描述
@juaristi22, could you take a look? It shows up as spurious losers in reform scoring on the certified build.
What's wrong
council_tax_benefit returns where(scheme_supported, simulated, reported). When a reform moves a household from a scheme the model simulates to one it doesn't, the household's reduction switches from the simulated amount to the survey-reported one. The resulting change is the gap between two different measurements, not an effect of the reform.
Example
policyengine 6.20.2 / policyengine-uk 2.177.7, certified build uk-frs-calibration-attempt-20261115T104657Z-fcfac709, 2026-27. Reform: +£30 a month on all four UC standard allowance rates (gov.dwp.universal_credit.standard_allowance.amount.*).
Household id 367 (England, Yorkshire; couple aged 66 and 59, cap-exempt, no UC in the baseline):
| Baseline | Reform | |
|---|---|---|
universal_credit |
£0.00 | £141.80 |
council_tax_reduction_pensioner |
true | false |
council_tax_reduction_scheme_supported |
true | false |
simulated_council_tax_reduction_benunit |
£1,426.09 | £0.00 |
council_tax_benefit |
£1,426.09 (simulated) | £293.67 (reported) |
hbai_household_net_income |
£17,250.23 | £16,259.61 (−£990.62) |
The small UC award ends the family's pension-age CTR. No English working-age scheme is simulated for this household (see also PolicyEngine/microcosm#1711: local_authority is absent and defaults to MAIDSTONE), so the model falls back to the reported £293.67. The household loses £1,132.43 of reduction from a £30 a month rise.
Suggestions
- Under a reform, hold the source (simulated or reported) fixed at its baseline value, or scale the reported amount by the change in the simulated one.
- At minimum, expose a flag when the source switches so reform analyses can find these cases.
- 主要语言
- Python
- 星标
- 53
- 派生
- 34
- 平均合并
- 3 天 7 小时
- 30 天内合并 PR
- 100
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-uk 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
PolicyEngine/policyengine-uk#2948 ·
维护者通常 3 天内回复
-
Let the shard-assignment properties draw up to 16 shards可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
PolicyEngine/policyengine-uk#2920 · 已指派 1 人 ·
维护者通常 3 天内回复
-
Lift the Universal Credit benefit cap for a claimant who receives War Widow's Pension可能已有人在做 @juaristi22 于 25 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
PolicyEngine/policyengine-uk#2792 · 1 条评论 · 已指派 1 人 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
PolicyEngine/policyengine-uk#2947 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
PolicyEngine/policyengine-uk#2946 ·
维护者通常 3 天内回复
查看 PolicyEngine/policyengine-uk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
bad-antics/lateralus-lang#1140 ·
维护者通常 4 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 3 天内回复
-
fixture good first issue help wanted vendor:cisco
难度 1/5 1-3 小时 新手友好度 85/100