Repository navigation
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
Open
vahid-ahmadi wants to merge 3 commits into
vahid-ahmadi wants to merge 3 commits into
Conversation
#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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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>
Contributor
Author
|
Two additions to the description.
🤖 Generated with Claude Code |
This was referenced Nov 26, 2026
This branch was successfully deployed
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.
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.pycompared two different quantities.2026-07-21,2026-07-29) hold the model's four-quarter log difference, 100·log(P_t/P_{t-4}). That is whatboe_var.forecast.yoyreturns ("x_t − x_{t−4} on 100·log levels"), and the adapter passed it through untile2ef6752on 6 Nov 2026.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.pygainsLOG_BASIS_ROUNDS(the two July rounds, each with its evidence) and converts a listed round as it is read, with100·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.forecasts/rounds/**has no diff, and the append-only check passes.forecast_archived_log_basis.scorecard.jsongains abasis_note, and the scoreboard's notes on/forecastssay what was converted.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 itsunitsor is listed, so a future round cannot be scored on an unknown basis.Numbers that move
Regenerated by
python3 forecasts/score.py(scorecard.json, thescorecard-*blocks on/forecasts, the record strip on the home page):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.pytest tests -q: 3281 passed.site_contract.py,site_nav.py,forecasts/archive.py --checkand the other generators'--checkmodes are clean.Things to know
forecasts/index.htmlandindex.html, but only inside generated blocks, by running the generator. If another open PR touches those pages, re-runpython3 forecasts/score.pyafter merging.notes/2026-07-25-cpi-2026q2says 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.🤖 Generated with Claude Code