simulation-sports
Skill54 starsChanged 7 days agoMITView on GitHub
Simulate game and season outcomes from user-supplied probabilities or ratings, summarize uncertainty, and test sensitivity to assumptions. Use for standings, win totals, matchup distributions, and scenario analysis.
- Installs packages
In this repository19 other files it gives its agents.
- anti-slop-analyticsSkill
- baseline-modelsSkill
- calibration-checkSkill
- data-sourcesSkill
- eda-sportsSkill
- environment-setupSkill
- experiment-logSkill
- feature-rulesSkill
- leakage-auditSkill
- model-cardSkill
- model-interpretationSkill
- predictive-modelingSkill
- ratings-strength-modelsSkill
- results-reportingSkill
- sports-modeling-doctrineSkill
- sports-visualizationSkill
- statistical-modelingSkill
- time-series-sportsSkill
- validation-designSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Do not use when:
- Distinctive: line 100
If a rating artifact must be converted, document the scale and whether home advantage is already included.
- Distinctive: line 116
Always simulate one declared perspective per event.
- Distinctive: line 129
Advanced mode: update Elo inside each simulated world (path-dependent)
- Very specific: line 137
If base probs are miscalibrated, fix/note calibration first (calibration-check).
- Distinctive: line 139
Read simulation_assumptions.md before fixing event dependence, schedule, tie, update, or missing-event rules.
- Distinctive: line 149
Do not present simulated means as guarantees.
- Distinctive: line 151
If base probs are miscalibrated, say so.
- Distinctive: line 152
Never double-count home and away panel rows as two games.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Simulation (Sports)
Overview
Turn game-level probabilities or ratings into distributions:
- win counts across a declared full-season or remaining-schedule input
- make-playoff-style tallies
- matchup series outcomes
- uncertainty around a point forecast
Simulation does not create accuracy the base model lacks — it propagates uncertainty from a base model under stated assumptions.
Work from user-supplied pre-event probabilities or ratings and a documented schedule.
When to Use This Skill
Use when:
- Season win-total distributions
- Playoff-path / remaining-schedule projections from a model
- Matchup simulations from ratings or predictive probabilities
- Stress-testing uncertainty around a point forecast
- User says “project the standings” or “simulate the season”
Do not use when:
| Need | Go instead |
| No underlying probability/rating model yet | build one first (ratings-strength-models, predictive-modeling) |
| Single-point prediction is enough | modeling skills only |
| Discrete-event engineering sims unrelated to sports outcomes | out of scope |
| Calibration of the base probs | calibration-check first |
Installation
Simulate in the user's environment:
python -m pip install pandas numpy pyarrowRequired Inputs
- Base model: pre-game win probs or as-of rating differentials
- Schedule / remaining games (one row per game, not doubled panel)
- n_sims and seed
- Dependence assumption (independent games vs path-dependent updates)
- Sport + season window
Workflow
- Define the object being simulated (game, series, rest-of-season, full season).
- Choose the base model (logistic probs, Elo expected score, etc.).
- Confirm base probs are at least usable (
calibration-checkif quoting percents). - State dependence assumptions (independent games? injury freeze? home effects?).
- Fix seeds and n_sims for reproducibility.
- Build as-of inputs (Elo table or probability table).
- Run Monte Carlo on home rows once per game.
- Summarize distributions (mean, median, p05/p95, histogram) — not only means.
- Sensitivity-check K, home advantage, independence assumptions.
- Report seeds, n_sims, assumptions, limits, repro commands.
Base Model Inputs
| Input | Source |
| Pre-game win probs | predictive-modeling, statistical-modeling, baseline-models |
| Elo / rating diffs | ratings-strength-models or a documented rating artifact |
| Schedule | user-owned event table with stable IDs and roles |
Convert rating diff to probability if needed:
P = 1 / (1 + 10 ** (-elo_diff / 400))If a rating artifact must be converted, document the scale and whether home advantage is already included. Prefer a probability column whose calibration has been evaluated on forward holdouts.
Schedule-win simulation
Expect one row per simulated event after filtering, with a pre-event win probability for the focal team:
season,game_id,is_home,team_id,opponent_id,win_probabilityFilter to one perspective per game, require unique game_id, draw binary outcomes from the supplied probabilities, and aggregate wins. Write the mean, central quantiles, and any predeclared threshold probabilities. Do not add wins from completed games left out of the input. The result is a full-season total only when the rows cover every game in that season. For a remaining schedule, add each team's known completed wins outside the draw and label that step.
Game-level only
Always simulate one declared perspective per event. Never treat home and away rows from a symmetric panel as independent games.
Design Choices
Independence
The default draw treats games as conditionally independent given pre-game probabilities. That understates variance if injuries/momentum couple games. State the shortcut.
Updating ratings inside the season sim
- Simple mode: freeze pre-game probs from historical as-of table (reproducible evaluation)
- Advanced mode: update Elo inside each simulated world (path-dependent)
Start simple.
Schedule constraints
Season sims must use the real schedule graph. One game once.
Calibration prerequisite
If base probs are miscalibrated, fix/note calibration first (calibration-check).
Read simulation_assumptions.md before fixing event dependence, schedule, tie, update, or missing-event rules. Read sensitivity.md when choosing perturbations and deciding whether conclusions are robust.
Hard Constraints
- Simulation cannot invent accuracy the base model lacks.
- Report seeds, n_sims, and assumptions every time.
- Do not present simulated means as guarantees.
- Respect schedule constraints.
- If base probs are miscalibrated, say so.
- Never double-count home and away panel rows as two games.
- Sensitivity is required before strong distribution claims.
Anti-Patterns
- Simulating with an unvalidated coin-flip model dressed as analysis
- Huge n_sims hiding bad assumptions
- Showing only expected wins with no spread
- Using both home and away panel rows as two independent games
- Silent dependence assumptions
- Quoting playoff odds from uncalibrated 0.55-ish probs
Reporting Template
Simulation: wins across supplied full-season / remaining-schedule rows
Base model: Elo→prob (K=…, home_adv=…)
Season:
n_sims: … seed: …
Dependence: independent games | path-dependent rating updates
Outputs: mean and p05/p50/p95 wins in supplied games by team
Sensitivity:
Limits:
Reproduce:Output Contract
Done means:
- Base model named and sourced
- n_sims + seed reported
- Dependence assumption stated
- Distribution summaries (not only means)
- Sensitivity note present
- Repro commands present
Worked Example
Report: “Independent-game Monte Carlo from held-out-calibrated pre-event probabilities; mean and central quantiles by participant; simulation uncertainty does not include all roster, injury, schedule, or model uncertainty.”
References
references/
| File | Contents |
| simulation_assumptions.md | assumption checklist |
| sensitivity.md | what to stress-test |
Related Skills
| Need | Skill |
| Ratings | ratings-strength-models |
| Predictive probs | predictive-modeling |
| Calibration | calibration-check |
| Reporting | results-reporting |
| Rating construction | ratings-strength-models |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

