Market Vs Model
ASecurityUse when the user puts a model's or their own number next to the betting market, or asks what a price means as a probability, for any sport, in plain wording: 'our number vs the market tonight', 'is the market higher on them than my numbers', 'fair price vs our price', 'do my ratings beat the close', 'are we off the market on favorites', 'what does +250 mean as a chance', 'take the juice out of -300/+250', 'how big a gap is real'. Use this whenever a model probability meets a market probabili...
- 6 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add PuckAPI/claude-sports-analytics --skill market-vs-model --agent claude-codeAre you the author of Market Vs Model?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/puckapi-market-vs-model)---
name: market-vs-model
description: "Use when the user puts a model's or their own number next to the betting market, or asks what a price means as a probability, for any sport, in plain wording: 'our number vs the market tonight', 'is the market higher on them than my numbers', 'fair price vs our price', 'do my ratings beat the close', 'are we off the market on favorites', 'what does +250 mean as a chance', 'take the juice out of -300/+250', 'how big a gap is real'. Use this whenever a model probability meets a market probability, or odds need converting or the margin removed. Load this skill first, before calling any data tool; it says which tools to call. Covers odds conversion, margin removal, the model vs no-margin gap and the sample needed before a gap means anything. Odds are information only: no stakes, no picks. Not for today's prices alone (see your sport's odds skill), testing on past seasons (see backtesting) or logging live predictions (see prediction-tracker)."
metadata:
version: 2.3.0
author: SportsDataHQ
---
# Model vs Market
Turn prices into probabilities, then compare the probability our model gives an outcome with the probability the market implies. This skill reports how the two differ and whether the model's view tends to be right. It does not tell anyone to wager and it does not size stakes. Odds are information.
## Rules for numbers
- Call your sport's SportsDataHQ MCP tools. Do not answer from memory.
- Cite the tool call behind each number (for example "get_game_probabilities, game X").
- State the sample size and the season convention (calendar year, or the year the season starts or ends; check your sport's tool notes).
- If there is not enough data, say "not enough data" instead of guessing.
- Never present a past result as a pick or a prediction of what to do next.
## Data
| Need | Tool (any sport server that offers it) |
|------|------------------------------------------|
| Market probability, implied and fair (no-margin), averaged across books | `get_game_probabilities`, `get_prop_probabilities` |
| Prices by book | `get_odds` |
| Opening to closing movement | `get_line_movement`, `get_prop_movement` |
| Period and alternate markets | `get_market_odds`, `get_alt_lines` |
| How a kind of prop did against the market, with sample size and interval | `get_prop_backtest` |
| Our model's probability | the sport's prediction tool (for hockey, `get_predictions`), or the user's own file |
Examples by sport: hockey `get_game_probabilities` for an NHL game, basketball `get_game_probabilities` for an NBA game, soccer `get_game_probabilities` for home/draw/away, tennis and UFC `get_odds` for the two-way moneyline, golf `get_winner_odds` for majors.
Not every tool exists on every server. If a tool is missing, say so and use the closest one listed in that server's tool notes. Do not invent tools such as `get_ev` or `get_clv`.
User-supplied files: require `game_id`, `model_prob`, and market odds (American or decimal). Check model probabilities are in [0, 1] and sum to about 1 per game. Warn if they were not calibrated (see `probability-calibration`), because gaps from uncalibrated probabilities are unreliable.
## Odds math
Use this part alone when the question is only about what a price means.
### Initial assessment
1. Which format: American, decimal or fractional?
2. Two-way market (moneyline, over/under) or three-way (soccer home/draw/away)?
3. How many books? More books give a steadier estimate.
### Format conversion
```
American -> decimal: +150 -> 150/100 + 1 = 2.50 -180 -> 100/180 + 1 = 1.556
Decimal -> American: 2.50 -> (2.50 - 1) * 100 = +150 1.556 -> -100 / 0.556 = -180
American -> fractional: +150 -> 3/2 -180 -> 5/9
```
Raw implied probability (margin included):
```
positive American: 100 / (american + 100) +150 -> 0.400
negative American: abs(a) / (abs(a) + 100) -180 -> 0.643
decimal: 1 / decimal
```
### Margin (vig)
On a two-way market the raw probabilities sum to more than 1.
```
total_implied = raw_home + raw_away
margin = total_implied - 1.0
```
Example: Sabres +150 / Leafs -180 gives 0.400 + 0.643 = 1.043, a 4.3% margin. Typical ranges: main moneylines 3-6%, main totals 4-5%, player props 7-12%.
### Four ways to remove the margin
#### 1. Multiplicative
Divide each raw probability by the total. Fast, assumes the margin is spread proportionally.
```
fair_i = raw_i / total_implied
```
#### 2. Power
Find exponent k so that the sum of raw_i^(1/k) equals 1 (numerical solve, for example `scipy.optimize.brentq`). Better than multiplicative on lopsided markets.
#### 3. Shin
Models a share z of informed money. Solve for z, then compute fair probabilities.
```python
import math
from scipy.optimize import brentq
def shin_gap(z, raw):
return sum(p**2 / (z + (1 - z) * p) for p in raw) - 1
z = brentq(shin_gap, 0, 0.5, args=(raw_probs,))
fair = [(math.sqrt(z**2 + 4 * (1 - z) * p**2) - z) / (2 * (1 - z)) for p in raw_probs]
```
Works for three-way markets with three raw probabilities. Check that the result sums to 1. Preferred for research and for comparison with a model.
#### 4. Worst case
Put all the margin on one side. Gives a bound, not an estimate.
| Method | Use | Accuracy |
|--------|-----|----------|
| Multiplicative | Quick check, balanced markets | Moderate |
| Power | Heavy favorites | Good |
| Shin | Research, model comparison | Best with several books |
| Worst case | Bounds only | Conservative |
Default: Shin. If the sport server offers `get_game_probabilities`, use its fair probability and say that is where it came from.
### Worked example
Sabres +150 / Leafs -180: raw 40.0% / 64.3% (total 104.3%).
| Method | Sabres | Leafs |
|--------|--------|-------|
| Multiplicative | 38.4% | 61.7% |
| Power | 38.5% | 61.5% |
| Shin | 38.3% | 61.7% |
| Raw | 40.0% | 64.3% |
Comparing a model against raw probabilities would compare it with a number inflated by the margin. Always use fair probability.
### No-margin line
Convert a fair probability back to American odds:
```
fair_prob > 0.5: -100 * p / (1 - p)
fair_prob < 0.5: +100 * (1 - p) / p
```
Fair 38.3% gives +161 / -161. A posted +150 is the price with the margin built in.
### Line movement
Pull opening and closing prices with `get_line_movement`. Report the move in fair probability points, not just in American odds, because the same cents mean different things at different prices. Movement has many causes (injury news, lineup news, volume, repositioning). Describe it, with the time and the books involved; do not claim a cause unless a tool result shows it. Lack of movement is no information.
## Model vs market
### Step 1: Market probability without the margin
Convert each price to implied probability, then remove the margin to get the fair probability (see Odds math above). Prefer the fair probability from `get_game_probabilities`, which averages across books. Show both the raw implied and the fair number.
### Step 2: The model vs market gap
```python
gap = model_prob - market_fair_prob # in percentage points
```
Report per outcome: model probability, market fair probability, gap. A positive gap means our model rates the outcome higher than the market does.
Read gaps with care:
- A gap under about 3 points is within typical calibration error. Say so.
- A gap over about 10 points is far more often a model error or missing information (injury, lineup, starter) than a true difference. Check calibration and inputs first.
- Compare against several books and the average, not one price. A gap that exists against one book only is a book difference, not a model view.
### Step 3: Rank a slate by gap
Sort games by absolute gap. Present as "where our model differs most from the market", with the likely reason (rest, starter, injuries) taken from tool output. Frame it as a list of disagreements to investigate, not a list of things to do.
### Step 4: Closing-line comparison (model quality)
The closing line is the market's best final estimate. If the model's probabilities move toward the closing fair probability more often than away from it, the model is picking up real information.
```python
# for each prediction: model_prob, open_fair, close_fair
moved_toward_model = (abs(close_fair - model_prob) < abs(open_fair - model_prob))
share = moved_toward_model.mean()
```
Pull `get_line_movement` for opening and closing prices. Report the share, the sample size and an interval. Sustained movement toward the model over 100+ predictions is a good sign. Near 50% means the model adds little beyond the market. Consistently away means the market knows something the model does not.
Also compare log loss or Brier score of the model against the market's closing fair probability on the same games (see `prediction-tracker` and `backtesting`). The market is a hard benchmark; matching it is a good result.
### Step 5: How big a sample is enough
At small samples, apparent differences are noise. For a hit rate p over n predictions, the 95% interval is about p +/- 1.96 * sqrt(p(1-p)/n). With n = 40 that is roughly 15 points wide each way at p = 0.5. Do not call a pattern real unless the interval excludes the benchmark. For historical tests, use `get_prop_backtest` where it exists: report its sample size, interval and by_season breakdown, and say that a past result is not a forecast.
## Anti-patterns
| Rationalization | Why it is wrong | Do this instead |
|-----------------|-----------------|-----------------|
| "The model says 65% and the market says 55%, so the model found something" | A 10-point gap is usually a calibration or input error | Check calibration and lineup information first |
| "The line has not moved, so the market agrees with us" | No movement is silence, not agreement | Treat movement as signal and absence of movement as no information |
| "Our hit rate is 60%" | A rate without sample size and odds context says little | Report n, interval, and the market's own rate on the same games |
| "One book differs, so the model is right" | A single book can be stale | Compare to the cross-book fair probability |
| "Recent results confirm the gap" | Small samples mislead | Report by-season results and the interval |
| "Use the raw implied probability" | It includes the margin | Remove the margin first |
| "Multiplicative is fine on a heavy favorite" | It diverges from Shin by 1-2 points at -300 and beyond | Use Shin or the cross-book fair probability |
| "Props have the same margin as moneylines" | Props carry 7-12% | Compute the margin from the two sides each time |
| "The line moved, so informed money did it" | Movement has many causes | Describe the move; do not assign a cause without evidence |
## Output format
Odds question only:
```
Game: [Away] at [Home] Book: [name] Source: get_odds
Raw odds: [A] +150 / [B] -180
Raw implied: 40.0% / 64.3% (total 104.3%, margin 4.3%)
Fair (Shin): 38.3% / 61.7% No-margin line: +161 / -161
```
Model against the market:
```
MODEL VS MARKET: [Date] (season convention: [..])
[Home] vs [Away]
Our probability: [X.X%] (source: [tool or file])
Market, implied: [X.X%] (get_odds, [book])
Market, fair: [X.X%] (get_game_probabilities)
Gap (model - market): [+/-X.X points]
Context: [injury, starter, rest notes from tools]
SLATE SUMMARY
Games compared: N Median absolute gap: X.X points
Largest gaps: [list]
```
## What to do next
| Finding | Next skill |
|---------|-----------|
| Probabilities look off | `probability-calibration` |
| Want to log predictions and grade them | `prediction-tracker` |
| Want historical validation | `backtesting` |
| Hockey slate view | `nhl-daily-slate` |
| Current prices across books (hockey) | `nhl-odds-explorer` |
| Odds term unclear | `docs/market-glossary.md` |
## Credits
- Sequences (last 5, recent form, a run of results) are quoted in the order the tool returns them, with dates; never retell them from memory. Lists in the answer must match the tool rows.
- Out of credits: if a call is refused for credits, pass on the API's message as it comes (it says when free credits refill and how to add more), and stop; don't retry or switch tools to get around it.
Files in this skill
- SKILL.md
- evals/evals.json
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.