Repository navigation
Add the options market data notebook and the implied-move rescaling helper - #7
Merged
Merged
Conversation
…elper Notebook 04 reads the option-implied statistics item and uses the implied move as an event-specific scale for a submission's predictions. The score is invariant to a uniform affine remap, so only a per-event factor can move it. The naive rescale (pivot 0.5, linear in the move) lowers R-squared for both reference baselines; pivoting at the submission's own mean with a square-root factor raises it for Gemini and leaves GPT-5 nano flat. The table has eight columns: surprise only, surprise plus the option statistics as regressors, and per baseline the surprise with the prediction as submitted, naively scaled, and adjusted, followed by the competition's own delta R-squared on the full quarter. scale_by_implied_move in examples.option_stats implements both rules, with tests. The bundled 2026Q3 sample now carries the item on its six events so the parsing cells run offline; the regression cells need the live archive.
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.
Summary
notebooks/04_options_market_data.ipynb: reads theoption-implied-statsitem, then uses the implied move as an event-specific scale for a submission's predictions. The score is invariant to a uniform affine remap, so only a per-event factor can move it.delta_r_squaredon the full quarter.scale_by_implied_moveinexamples.option_statsimplements both rules, with tests.data/README.md, the package docstring, and pointers in notebooks 01 and 03 updated.Test plan
uv run ruff check . && uv run ruff format --check .uv run mypyuv run pytest(108 passed)EM_API_KEY= uv run pytest --nbmake notebooks/(all five notebooks in sample mode)🤖 Generated with Claude Code