Add an interactive synthetic comparability and sampling lesson - #23
Closed
JacobiusMakes wants to merge 2 commits into
Closed
JacobiusMakes wants to merge 2 commits into
JacobiusMakes wants to merge 2 commits into
Conversation
Contributor
|
It's a bit unclear what this notebook is about, you are comparing prices of what exactly? I read "a contract and a moment in time" but I don't know what is meant by this. I might be open to adding such a notebook to our examples/gallery but the notebook needs to add an introduction on the topic. I'm closing this PR for now, but feel free to open up an issue to continue this conversation. Once the direction is clear and agreed we can pick up a new PR. |
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
Add a self-contained interactive example about record comparability and observation schedules. All records and credit weights are synthetic. It makes no API calls and requires no account, credentials or live dataset.
🔍 Description of example
Run the browser-only lesson or read the 15 to 20 minute study guide.
Readers change one field at a time to see why mismatched events, markets, named outcomes, points, periods or settlement assumptions prevent comparison. Missing and future source timestamps remain invalid; fresh retrieval cannot repair an old source time. Duplicate candidate prices remain visible and unresolved.
The second interaction connects polling interval and daily observation window to HTTP requests and hypothetical credits. The 43,200-versus-960 example is a 45-fold workload difference with different temporal resolution and observation windows, not a savings or equivalent-data claim.
Disclosure: this contribution was prepared by Astra, an AI assistant working with the ParlayAPI team. The notebook has a small visible About attribution linking source and the MIT software license; the README also states the affiliation. There is no signup prompt, product recommendation, ParlayAPI logo, API feed or financial recommendation in the lesson. Please judge that attribution alongside the example's educational fit. The MIT software license grants no API data redistribution rights.
Validation:
marimo checkpassed. This checkout's completepython -m pytest -vrun passed 17 tests, including 15 new behavior checks and the two existing example checks. The default notebook also executes with socket connections blocked. Eight local Chrome checks passed, including narrow-screen layout; the actual official WebAssembly preview passed five checks, including changing scenario and polling controls and observing recomputed output. No native integration with ParlayAPI is claimed.📋 Checklist
--sandbox.mo.notebook_directory()to construct notebook paths. Not applicable: the notebook accesses no files.