Skip to contents

Before the Owls hosted the Comets, Model A gave the Owls a 60% chance to win. Model B said 90%. The Owls won. Both models got a tick in the win column. The next night they backed the Breakers at those same probabilities. The Breakers lost.

Over twelve fictional basketball games, both models picked the same eight winners and missed the same four. Which forecast would you trust more on this slate?

Score the misses

Grade the home team’s probability against the result, using 1 for a home win and 0 for a loss. Square the difference. On the Owls’ win, Model B scores 0.01, better than Model A’s 0.16. On the Breakers’ loss, B scores 0.81 and A scores 0.36. A confident miss costs B much more than a confident hit saves it.

The mean across games is the binary Brier score. Zero is perfect. A forecast of 50% for every game scores 0.25 whatever the results. Definition and formula, Japan Meteorological Agency (Appendix A.3).

source("score-games.R")
scores <- score_games("basketball.csv")
knitr::kable(scores, digits = 4,
             col.names = c("Forecast", "Games", "Picks", "Correct picks", "Brier score"))
Forecast Games Picks Correct picks Brier score
Model A 12 12 8 0.2267
Model B 12 12 8 0.2767
Always 50% 12 0 0 0.2500

Model A scores 0.2267, below the 50% baseline. Model B scores 0.2767, above it. A 50% forecast makes no directional pick and still gets scored on every game. Eight wins alone concealed the difference.

Check where the confidence came from

games <- read.csv("basketball.csv")
groups <- aggregate(cbind(home_wins = home_won, games = rep(1, nrow(games))) ~ p_a + p_b,
                    data = games, FUN = sum)
groups$home_win_rate <- groups$home_wins / groups$games
knitr::kable(groups, digits = 3,
             col.names = c("Model A", "Model B", "Home wins", "Games", "Home win rate"))
Model A Model B Home wins Games Home win rate
0.4 0.1 2 6 0.333
0.6 0.9 4 6 0.667

B called the home team a 90% favorite six times. Four won. It called the home team a 10% long shot six times. Two won. These groups explain B’s result on this exercise. To assess calibration on your own forecasts, use a larger held-out slate and keep the game count beside each rate.

Score your own slate in base R

Save the twelve-game CSV and the R scorer in one folder, then run this command there.

Rscript score-games.R basketball.csv

Replace the sample with one row per settled game. Both probabilities refer to a home win under the same settlement rule. Use a common pregame snapshot for both models, represent probabilities on a 0–1 scale, and set home_won to 1 or 0. The scorer stops on duplicate game IDs, incomplete results or snapshots recorded at or after tipoff. Use the time the forecasts were actually saved. A timestamp entered afterward cannot establish what either model knew.

To see how much a model estimate matters to a price calculation, open the Kelly calculator and hold the offered price at +100 while changing the assumed win probability. To start recording a forward test, inspect the public NBA preview and save the event ID and quote observation time before the game. The preview supplies prices; you supply the forecast and obtain the settled result separately.