Skip to content

Scorecard: score the July SVAR rounds on the simple four-quarter rate, not the log difference - #285

Open
vahid-ahmadi wants to merge 3 commits into
mainfrom
vahid/r6-scorecard-basis
Open

vahid-ahmadi wants to merge 3 commits into
mainfrom
vahid/r6-scorecard-basis

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

Resolves the open decision in #208 the way the issue recommends: convert at scoring time, leave the vintages alone. Vahid was away, so this PR makes the call and sets out the alternative at the end.

What was wrong

forecasts/score.py compared two different quantities.

  • The two boe-svar rounds archived in July 2026 (2026-07-21, 2026-07-29) hold the model's four-quarter log difference, 100·log(P_t/P_{t-4}). That is what boe_var.forecast.yoy returns ("x_t − x_{t−4} on 100·log levels"), and the adapter passed it through until e2ef6752 on 6 Nov 2026.
  • The outturns (ONS) and every forecast shown beside them (OBR, Bank of England, no-change) are simple four-quarter rates, 100·(P_t/P_{t-4} − 1).

The simple rate is above the log difference by about x²/200, so each July CPI median was scored about 0.04pp lower than the same forecast on the outturn's basis. The 12 Nov round is already on the simple basis and is unaffected.

What changed

  • score.py gains LOG_BASIS_ROUNDS (the two July rounds, each with its evidence) and converts a listed round as it is read, with 100·expm1(x/100). The map is monotone, so the converted median and band edges are exactly the median and band edges of the converted paths. Nothing is re-estimated.
  • The round files are untouched. forecasts/rounds/** has no diff, and the append-only check passes.
  • Each affected scorecard entry keeps the archived median as forecast_archived_log_basis. scorecard.json gains a basis_note, and the scoreboard's notes on /forecasts say what was converted.
  • New tests (forecasts/tests/test_score_basis.py): the conversion against the definition on a known level path; monotonicity; an unlisted round is returned untouched; a listed round converts growth rates only; and a guard that every boe-svar round either says "simple" in its units or is listed, so a future round cannot be scored on an unknown basis.

Numbers that move

Regenerated by python3 forecasts/score.py (scorecard.json, the scorecard-* blocks on /forecasts, the record strip on the home page):

before after
Average miss, nine scored forecasts 0.34pp 0.33pp
Average signed error −0.33pp −0.31pp
CPI 2026Q2, round 21 Jul: error −0.12pp −0.09pp
CPI 2026Q3, round 21 Jul: error −0.39pp −0.35pp
CPI 2026Q3, round 29 Jul: median, error 2.54%, −0.56pp 2.57%, −0.53pp
GDP, four entries each smaller by 0.01pp

No band result changes: all nine outturns fall inside or outside the same 68% and 90% bands. The unemployment round is a level, not a growth rate, and is not converted. The no-change and official comparators do not move.

How verified

  • python3 forecasts/score.py --check: current.
  • python3 -m unittest discover -s forecasts/tests: 58 tests pass.
  • Repo root pytest tests -q: 3281 passed. site_contract.py, site_nav.py, forecasts/archive.py --check and the other generators' --check modes are clean.
  • Hand check of one entry: round 21 Jul, CPI 2026Q2, archived median 2.6785; 100·expm1(0.026785) = 2.7147; outturn 2.8; error −0.085.

Things to know

  • Page HTML. This PR changes forecasts/index.html and index.html, but only inside generated blocks, by running the generator. If another open PR touches those pages, re-run python3 forecasts/score.py after merging.
  • One dated note is left as written. notes/2026-07-25-cpi-2026q2 says the outturn was 0.12pp above the median, the log-basis figure of the day. On the simple basis it is 0.09pp. I did not edit a dated note.
  • The alternative was to leave the July rounds on the log basis and add a note. That keeps a known unit mismatch in the published errors, so I did not take it. Reverting this PR restores it.

🤖 Generated with Claude Code

#208)

The two boe-svar rounds archived in July 2026 hold the model's four-quarter
log difference; outturns and published forecasts are simple rates. score.py
now converts a listed round as it reads it (exact for medians and bands).
Round files are untouched. Average miss 0.34 -> 0.33pp, average signed
error -0.33 -> -0.31pp; no band result changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
macromod Ready Ready Preview Nov 25, 2026 12:24am UTC

Request Review

…s machine-independent

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rlier round

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vahid-ahmadi

Copy link
Copy Markdown
Contributor Author

Two additions to the description.

  • Basis of the 21 July round, checked at source. The round records site_commit a0fd90e0. At that commit papers/boe-svar/figures/make_current_forecast.py line 66 builds the paths with forecast.yoy(np.vstack([tail, levels])), the log difference. The 29 July round came through core.svar_forecast, which used the same function until e2ef6752.
  • Wording. The generated note on /forecasts now says "the two boe-svar rounds archived in July 2026", because the 28 July unemployment round on the same scoreboard is a level and is not converted. No overlap with Model pages: correct figures and labels against the pinned model artifacts (SVAR, FRB/US, HANK, DEFINE-UK, compare) #286: that PR does not touch index.html, forecasts/index.html or forecasts/score.py.

🤖 Generated with Claude Code

This branch was successfully deployed

1 active deployment
Preview — c75328d0 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant