
Article · Nov 10, 2026 · 7 min read
How I test a sports betting model using log loss and calibration
A model that says 70% is making a claim. These are the two formulas I use to check that claim, and what they showed when I pointed them at three seasons of NBA games.
I'm not a sports person, so I lean on the numbers. EdgeBet looks at a game and says something like "the home team wins 64% of the time." That's a claim. The question I keep coming back to is how I'd know whether it's a good one.
Getting one game right or wrong tells you almost nothing. A 64% call that loses isn't wrong. It's what happens 36% of the time. You only find out whether a sports betting model knows anything by grading thousands of its calls at once, and two formulas do most of that work for me: log loss and calibration.
This is the first piece on the maths behind EdgeBet. I'll keep it plain.
Why win rate is the wrong grade
The obvious score is "how often did it pick the winner?" It's also the least useful one. Pick the favourite every game and you'll be right most of the time without knowing anything the price didn't already tell you.
Win rate also throws away the number that matters: how sure the model was. A model that says 51% and a model that says 90% get the same credit for the same winner. For betting, that difference is the whole point.
Log loss: the formula that grades a probability
Log loss scores every call by the probability it gave to what actually happened:
Here p is the model's probability that the home team wins, y is 1 if they won and 0 if they didn't, and ln is the natural log. In plain words: for each game, take the chance the model gave to the result that happened, take its log, flip the sign, and average across every game. Lower is better. Zero would be perfect, and you'll never see it.
What makes it useful is how it treats confidence:
| The model said | What happened | Score |
|---|---|---|
| 50% | Either result | 0.69 |
| 70% | That side won | 0.36 |
| 70% | That side lost | 1.20 |
| 95% | That side lost | 3.00 |

Say 50% and you score 0.69 whatever happens. That's the coin flip.
A model that's loud and wrong gets punished hard, and a model that hides at 50% never gets rewarded. The only way to score well over a big sample is to say exactly as much as you know. (Statisticians call that a proper scoring rule. I call it the formula that can't be gamed.)
It's also the regression link. Logistic regression, the workhorse for "will this happen, yes or no", is fit by finding the settings that make log loss as small as possible on past games. So the same formula builds the model and then grades it, on games the model has never seen.
Beat the dumb answer first
A log loss number means nothing alone. It needs something to beat, and the first thing to beat is the dumbest honest answer: the league's home-win rate so far this season, given to every game. If a model full of team statistics can't beat that, it doesn't belong anywhere near a decision.
Here's the ladder from the last three NBA seasons, all graded the same way on the same games:
| Model | What it reads | Log loss |
|---|---|---|
| Coin flip | Nothing: 50% every game | 0.693 |
| League home-win rate | How often home teams have won so far this season | 0.690 |
| Logistic regression | Team statistics only | 0.605 |
| Closing line | The market's last price, bookmaker's margin taken out | 0.582 |
That regression reads the home-minus-away gaps in net rating, pace, the Four Factors (shooting, turnovers, offensive rebounding, free throws) and rest. Nothing else. No injuries, no lineups, no news, and no betting market at all.
It clears the dumb answer easily. The closing line clears it by more. Hold that thought.
Calibration: when it says 70%, does it happen 70%?
Log loss gives one number for the whole model. Calibration asks something more specific: when the model says 70%, do those teams win about 70% of the time?
The check is simple:
Sort every game into ten buckets by the probability the model gave: 0–10%, 10–20%, up to 90–100%.
In each bucket, compare the average probability stated with how often that side actually won.
Average the gaps, weighting each bucket by how many games are in it.
That last number is the expected calibration error, or ECE. My bar is 0.03, so on average the model can't be off by more than 3 percentage points.
Here are the buckets for that NBA regression, by the chance it gave the home team:
| Home team's chance | Games | Said, on average | Home team won |
|---|---|---|---|
| 0–10% | 10 | 8.5% | 0.0% |
| 10–20% | 96 | 16.6% | 11.5% |
| 20–30% | 283 | 25.5% | 20.1% |
| 30–40% | 470 | 35.2% | 33.4% |
| 40–50% | 565 | 45.2% | 43.9% |
| 50–60% | 762 | 54.9% | 54.2% |
| 60–70% | 737 | 64.9% | 63.0% |
| 70–80% | 602 | 75.0% | 76.9% |
| 80–90% | 378 | 84.0% | 82.0% |
| 90–100% | 59 | 91.8% | 89.8% |

The buckets from 30% to 90% hold 3,514 of the 3,962 games, and every one of them sits within about 2 points. The low end is looser: when it gives the home team under 30%, it's about 5 points too generous to them, on far fewer games (and 10 games in the bottom bucket says next to nothing). Weighted together, the ECE is 0.019, under the bar.
I also check the confident end on its own, because that's where a model gets you into trouble. These are the games where it gave either side at least the chance shown:
| It gave one side | Games | Said, on average | That side won |
|---|---|---|---|
| 60% or more | 2,635 | 72.3% | 73.0% |
| 65% or more | 1,989 | 75.5% | 76.8% |
| 70% or more | 1,428 | 78.6% | 80.3% |
When it says 79%, it means about 79%. If anything it's a touch modest at the top. That's what calibrated looks like.
Why I need both
They catch different failures, and I've seen both.
A model can rank teams well and still get the number wrong: right side, wrong percentage. Too sure, or not sure enough. One NBA model said 75% on its confident games, and those teams won 78% of the time. Its log loss looked good, and the calibration check is what caught it. In the study below, 14 of the 22 NBA moneyline models that beat the dumb answer were in that bucket.
It works the other way too. A model that says 50% for every game is calibrated, technically, and useless. Log loss is what shows that.
So a model needs both to pass: it has to beat the dumb answer, and it has to mean what it says.
How I use it: grading 229 models with no market in them
This October I ran both formulas over a lot of models. 229 of them across MLB, the NBA, the NHL, the NFL, NCAA football, NCAA basketball and the CFL, each one built from team statistics and schedule only. Not one of them was allowed to see a price.
The rules mattered more than the models:
Only the past. Each game was predicted using only games played before that date. No peeking at the season's final numbers.
Fit first, grade later. Every model's settings were fit on older seasons and locked before I looked at 2023 to 2025.
Checked twice. A second, independent set of code re-graded everything from scratch and tried to break it, looking for any way future results could leak back into a prediction. It found none.
What came out:
Team strength predicts winners. A lot of these models beat the dumb answer, and plenty were calibrated.
In every sport, the closing line still scored better than every one of them. The games a model felt surest about were almost always the market's favourite anyway, and those teams didn't win more often than the price said they would.
Which is the honest lesson: team strength is real, and it's already in the price. It's the same thing I said on the EdgeBet page: the market is usually first to know.
So the team-statistics line isn't where a position comes from. It's a check. It sits beside each game as a plain second opinion that reads team numbers and nothing else, next to everything else EdgeBet runs: the main model, the simulations, the analyst's view. Trust, but validate. When they line up, good. When they don't, I want to know why before I take anything.
What's next
Log loss and calibration tell me whether a model knows anything. They don't tell me whether it's worth a position, and they never size one. That's different maths.
This is the first of a few. Next up, from the same work: margin error (how far off a predicted score is, in points), taking the bookmaker's margin out of a price, and why sample size kills most "findings".
None of this makes betting a plan or a sure thing. The record is on the Positions page, win or lose, and if betting stops being fun, here's where to start.