Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ heading here; `tests/test_repo_hygiene.py` asserts that they do.

## [Unreleased]

### Model pages: provenance review of the SVAR, FRB/US, HANK and DEFINE-UK pages

Every change was checked against the model repository at the pinned commit; no model was run.

- **BoE SVAR** (`boe-var-model` `17f5d82`): the share of draws with a root above 1 is 99.2%, not 99.3% (`covid_volatility_evaluation.json`); Lenza–Primiceri scaling covers 83.6% on the held-out origins the other fixes are scored on (80.7% is all 50 origins); CPI and Bank Rate move by up to 0.03 with the Covid dummies, not "less than 0.02"; UK GDP against drift is p = 0.32–0.42 in the evaluation run and 0.10–0.46 in the published specification; the CI gate is 600 draws with 45 accepted, not "~50-draw"; world trade weights are fixed within three eras, not time-varying; the shock reading says a positive monetary-policy shock is a tightening; the frozen-origin GDP outturns have no recorded vintage, and on the ONS release of 12 Nov 2026 the same medians give an RMSE of 0.24pp.
- **DEFINE-UK** (`define-uk-model` `283f92a`): the clean-room multiplier of 1.52 is set against the upstream's 2.25 (policy window), as the model repository does, not the full-run 2.30; the cumulative figures carry units (£bn) and both windows; the secondary ratio from the policy start (1.75) is given beside the full-run 1.78; define-uk-model #15 merged on 10 Nov, not 6 Nov; the 22 scenario names are 16 distinct solves, two of them refused.
- **FRB/US** (`us-frb-model` `162cfe6`): the transfers row names the matched comparison for each regime instead of "below all three"; source links on the validation page point at the pinned commit, not `main`; the `/models` income-tax row names CBO, the benchmark the validation page uses, not the OBR.
- **US HANK** (`us-hank-model` `58353e5`): the discount-factor variant states its 0.53-a-year discount factor; the methodology gives the Phillips-curve slopes; the spending-multiplier gate is (0, 0.5), as tested; the `/connect` prompt and the US forecasts command state the shock size and persistence.
- **`/models/compare`** (results file `2026-11-19.2`): the SVAR shock is described as a 25bp normalisation (one s.d. is about 10bp), and a stale reference to a 186-draw sense check is gone; HANK quarters use the page's own numbering (impact is q1); the FRB/US spending row says its 0.2 gap to the 2010 FRB-US line is unexplained, where it said the gap was consistent; closed issues are no longer labelled open.
- **Cross-PR consistency** (not at a pinned commit): the capability note and the DEFINE-UK paper source set the clean-room 1.52 against the upstream's 2.25 from the 2027 policy start, as the site does (the committed paper PDF is not rebuilt); the `/models/compare` energy note no longer says the FRB/US tool labels the oil lever "model units" (it says US dollars per barrel); the SVAR gap note replaces "a GDP trough of about −0.16% against the paper's −0.07%" with the paper's response of −0.12% on impact fading to −0.07% by five years against the replication's −0.14%, −0.16% at two years and −0.17% at five. Those figures are from the benchmark in boe-var-model #37 (`results/irf_vs_paper.md`), which is not merged.

### BoE SVAR re-pin to `17f5d82`

- **Pin.** BoE SVAR `c827ab86` → `17f5d824` (boe-var-model #34, world CPI seasonal adjustment; #35, November 2026 MPR comparator and 2026Q3 scoring). After a redeploy the hosted `forecast_uk` and `latest_shocks` run this pin.
Expand Down
2 changes: 1 addition & 1 deletion connect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h2 class="use-step-h"><span class="step-ic" aria-hidden="true"><svg class="ic"
<li class="prompt-item"><button type="button" class="prompt-chip" data-copy-text><span class="prompt-ic" aria-hidden="true"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3v18"/><path d="M7 21h10"/><path d="M3 7h18"/><path d="m6 7-3 8a3 3 0 0 0 6 0Z"/><path d="m18 7-3 8a3 3 0 0 0 6 0Z"/></svg></span><span class="prompt-q">Score raising the UK basic rate of income tax to 21p.</span><span class="prompt-ret">Returns: Static cost, then GDP, consumption and investment effects (OBR emulator), as a job.</span><span class="prompt-foot"><span class="tool-chip is-job"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>start_job · score_reform</span><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></button></li>
<li class="prompt-item"><button type="button" class="prompt-chip" data-copy-text><span class="prompt-ic" aria-hidden="true"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 3v18h18"/><path d="m7 15 4-4 3 3 6-7"/></svg></span><span class="prompt-q">What is the UK GDP and inflation outlook for the next four <span class="nowrap">quarters?<sup class="fn-mark" aria-hidden="true">*</sup></span></span><span class="prompt-ret">Returns: Quarterly medians with 68% and 90% bands.</span><span class="prompt-foot"><span class="tool-chip"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>forecast_uk</span><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></button></li>
<li class="prompt-item"><button type="button" class="prompt-chip" data-copy-text><span class="prompt-ic" aria-hidden="true"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 22h18"/><path d="M6 18v-7"/><path d="M10 18v-7"/><path d="M14 18v-7"/><path d="M18 18v-7"/><path d="m12 2 8 5H4z"/></svg></span><span class="prompt-q">What happens to US GDP and unemployment if the Fed raises rates by 100 basis points?</span><span class="prompt-ret">Returns: Quarter-by-quarter impulse responses.</span><span class="prompt-foot"><span class="tool-chip"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>frbus_shock</span><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></button></li>
<li class="prompt-item"><button type="button" class="prompt-chip" data-copy-text><span class="prompt-ic" aria-hidden="true"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></span><span class="prompt-q">How does an easing shock to the US Taylor-rule intercept (about 13bp off the policy rate on impact) change consumption across wealth quartiles?</span><span class="prompt-ret">Returns: Quarterly output, consumption, inflation and real-return paths, and consumption by wealth quartile on impact.</span><span class="prompt-foot"><span class="tool-chip"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>hank_shock</span><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></button></li>
<li class="prompt-item"><button type="button" class="prompt-chip" data-copy-text><span class="prompt-ic" aria-hidden="true"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></span><span class="prompt-q">How does an easing shock to the US Taylor-rule intercept of -0.0025 a quarter at persistence 0.61 (about 13bp off the quarterly policy rate on impact) change consumption across wealth quartiles?</span><span class="prompt-ret">Returns: Quarterly output, consumption, inflation and real-return paths, and consumption by wealth quartile on impact.</span><span class="prompt-foot"><span class="tool-chip"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>hank_shock</span><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></button></li>
</ul>
<p class="use-note" id="prompt-note"><sup>*</sup> <a href="/svar/validation#forecasters">BoE SVAR: no forecast skill against a drifting random walk</a></p>
<p class="use-note">Click a prompt to copy it. <a href="#tools">Every tool →</a></p>
Expand Down
2 changes: 1 addition & 1 deletion define/code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2>Discover hosted, run locally</h2>
<ul>
<li>A Python reimplementation of the published Model Manual v1.1 is the route to a hostable model. The upstream code is used only as a numerical oracle (<a href="https://github.com/PolicyEngine/define-uk-model/blob/main/REIMPLEMENTATION.md">REIMPLEMENTATION.md</a>).</li>
<li>Every printed equation of the manual (§3.1&ndash;§3.4.7) is registered and the whole model solves quarter by quarter.</li>
<li>It does not reproduce the upstream run: baseline GDP falls up to 44% below it by 2040, and its green-investment multiplier is 1.52 against the upstream&rsquo;s full-run 2.30.</li>
<li>It does not reproduce the upstream run: baseline GDP falls up to 44% below it by 2040, and its green-investment multiplier is 1.52 against the upstream&rsquo;s 2.25.</li>
<li>So milestone 2 is not passed and <strong>nothing here is hostable yet</strong>; the hosted tools continue to return run instructions.</li>
<li><strong>Thirteen</strong> gaps in the manual are pinned by tests as machine-readable records, not absorbed into a tolerance: a net-lending residual the manual itself says &ldquo;should equal 0&rdquo;, identities that fail at the manual&rsquo;s own initial values, and symbols the parameter tables never list.</li>
<li>The largest is a blocker: <strong>§3.3.2 as published cannot be simulated forward.</strong> Six parameters it uses are absent from Table 5 and two variables are never defined, so credit rationing collapses to a constant and desired power-sector investment turns negative.</li>
Expand Down
4 changes: 2 additions & 2 deletions define/methodology/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h4>Accounting before theory</h4>
<li>So a transactions matrix sums to zero in every row and column.</li>
<li>Every flow accumulates into a stock, so sector balance sheets close each period.</li>
<li>Nothing appears from nowhere and nothing leaks out.</li>
<li>In the cached upstream outputs that holds in every quarter, with one exception.</li>
<li>The check run on the cached upstream outputs is that sectoral net lending sums to zero. It holds in every quarter, with one exception.</li>
<li>The exception is three quarters of two fossil-fuel-ban scenarios (<a href="/define/validation#sfc-breaks">limits</a>).</li>
</ul>
<h4>The ecological coupling</h4>
Expand Down Expand Up @@ -324,7 +324,7 @@ <h4>Measured, not asserted</h4>

<div class="meth-step" id="meth-5" data-step="4">
<div class="meth-step-head"><span class="meth-step-num mono">5</span><h3>Scenarios as policy switches</h3></div>
<p>Each of the 22 published scenarios is implemented as a set of policy switches on the baseline.</p>
<p>Each of the 22 published scenario names is a set of policy switches on the baseline. They are 16 distinct solves: six names repeat another solve, and two solves are refused (<a href="/define/validation#sfc-breaks">limits</a>).</p>
<details class="xp">
<summary><span class="xp-ic"><svg class="i" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 12h.01"/><path d="M3 18h.01"/><path d="M3 6h.01"/><path d="M8 12h13"/><path d="M8 18h13"/><path d="M8 6h13"/></svg></span><span class="xp-t"><strong>The switch sets</strong><small>Which switches each scenario toggles</small></span><span class="xp-chev" aria-hidden="true"></span></summary>
<div class="xp-body">
Expand Down
Loading