Machine Learning for Sports Betting: Accuracy or Calibration?
Citation. Conor Walsh and Alok Joshi (Department of Computer Science, University of Bath). "Machine learning for sports betting: Should model selection be based on accuracy or calibration?" Machine Learning with Applications 16, 2024, article 100539, doi.org/10.1016/j.mlwa.[removed]. Preprint: arXiv:2303.06021, v4, 1 February 2024, marked "Preprint submitted to Machine Learning with Applications". The work began as an MSc dissertation at Bath. The paper reports no specific funding. The authors release no code. The data are from basketball-reference.com and the Westgate sportsbook's closing odds on sportsbookreviewsonline.com.
Status. Planned. #8 lists the metrics a strategy reports, and RQ6 (#33) asks whether closing line value predicts betting profit. This paper argues that a betting model should be chosen by calibration, and it bets against closing odds. No code in the repo uses the paper yet.
Read. Read on 2026-11-27 from arXiv v4, 17 pages, which the maintainer supplied. I read all of it in the authors' own words, with Tables 1 to 6 and the figure captions. ScienceDirect refused automated fetches, so I didn't see the printed article. The issue says the journal's numbers differ from the preprint's. v4 is the version submitted to the journal, and I couldn't check whether its numbers match the print. I didn't see the supplementary document, which holds the feature lists and the hyperparameters. I rechecked the tables' arithmetic and Table 1's stake formula, and I estimated the error of the fixed-stake result.
Summary
Claim. For betting, a model's calibration matters more than its accuracy. Choosing an NBA model by calibration, not accuracy, gave higher returns over one season: +34.69% against −35.17% on average.
Method.
- The data. NBA box scores from 2014/15 to 2018/19. The 2014/15 and 2015/16 seasons train the models, 2016/17 is the validation season, 2017/18 tests them, and 2018/19 is the betting season.
- The features. Each team's season-to-date average margin over its opponents in each box-score statistic, home minus away, plus the previous season's win rate. The pipeline drops features that a Kolmogorov–Smirnov test flags for covariate shift at the 1% level.
- Two branches. Feature selection, Bayesian hyperparameter search (TPE) and model choice run twice, once to maximise accuracy and once to minimise classwise-ECE with 20 bins. If fewer than 80% of the bins hold a prediction, the pipeline sets the ECE to 1. The candidates are logistic regression, random forest, SVM and MLP. Both branches chose an SVM.
- Betting. Bet on every "value bet", where the model's probability exceeds the one implied by the Westgate closing moneyline. Stake $100 a bet, or one eighth of a Kelly stake. The bankroll starts at $10,000. ROI is the change in bankroll over the season.
Findings, as the source reports them.
| Setting | Number | Value |
|---|---|---|
| 2017/18 test season, calibration branch: SVM | classwise-ECE | 3.23% |
| 2017/18 test season, accuracy branch: SVM | accuracy | 66.55% |
| 2018/19, fixed $100 stakes: calibration and accuracy models | ROI | 32.45% and 5.56% |
| 2018/19, eighth-Kelly stakes: the same | ROI | 36.93% and −75.9% |
| 2018/19: the same | games bet on | 87.55% and 89.89% |
| 2018/19: the same | bets won | 38.8% and 38.46% |
| 2018/19: the same | accuracy | 64.27% and 64.62% |
| 2018/19: the same | classwise-ECE | 4.46% and 5.03% |
The final bankrolls in Tables 4 and 5 match the ROIs, and the averages of the two rules are 34.69% and −35.17%, as stated.
Where the claims go beyond the evidence
The "Kelly" stake isn't Kelly. Eq. 1 gives Kelly's fraction as k = (pb − q)/b, with b the odds minus 1. Table 1, the simulation algorithm, computes K = (P × Bankroll − (1 − P))/Bankroll instead. That puts the bankroll where b belongs. For a $10,000 bankroll, K is almost exactly P, so each stake is about P/8 of the bankroll, whatever the odds. The text's "capped at 12.5% of the bankroll" agrees with Table 1, not with Eq. 1. If the code follows Table 1, the eighth-Kelly results, −75.9% and +36.93%, come from stakes that ignore the odds. They say nothing about Kelly.
One season, one book, no error. The result is one model pair on one season of about 1,160 games (Figure 3's axis). The authors state the single season as the main limit. The paper gives no interval and no test, and the two systems' bets overlap heavily in the second half of the season.
The fixed-stake profit is within noise. About 1,016 bets of $100 is about $102,000 staked. The calibration model's $3,245 profit is then a yield of about 3.2% per dollar staked, not the 32.45% that ROI on the starting bankroll suggests. With 38.8% of bets won, the average odds are about 2.66. The standard error of the yield is then about 4.1%, so the profit is about 0.8 standard errors from zero. The accuracy model's yield is about 0.5%.
Value bets on nine games in ten is a warning sign. The paper's own example puts a bookmaker's margin at about 5%, and both models found a value bet on 88% to 90% of games. A model that disagrees with the closing line that often is more likely miscalibrated against the market than right. The paper doesn't compare its probabilities with the market's on calibration.
The calibration gap is small. On the betting season the two models' classwise-ECEs are 4.46% and 5.03%, and their accuracies 64.27% and 64.62%. The paper attributes a 27-point ROI gap to that difference, with one season and no control.
No baseline. The paper doesn't compare either system with betting at random, betting every favourite, or the bookmaker's own probabilities.
The 80% bin rule is ad hoc. The authors state that it is "somewhat arbitrary".
Credit. The authors state the single season and the arbitrary bin rule. They keep the training data in time order, test for covariate shift, and bet against real closing odds.
Use in this repo
Report calibration beside accuracy for any probability model. The point holds whatever the paper's evidence. A betting edge comes from the gap between a probability and the price, so the probability must be calibrated. Strategies that output probabilities, such as sports or prediction-market models, should report two numbers: a proper score (proper-scoring-rules.md) and a calibration measure. They should report these against the market's own implied probabilities, not only in absolute terms.
Report yield on stakes, with its error. ROI on a starting bankroll hides how much the strategy staked. For betting strategies, #8 should report profit per unit staked, the number of bets, and a standard error. Here that turns 32.45% into 3.2% ± 4.1%.
Check that the stake formula matches the stated rule. Table 1 shows how a bug in a sizing rule can drive the headline result. The harness (#87) should test each sizing rule against its formula on a few hand-worked bets. MacLean, Thorp and Ziemba (#74) cover Kelly's properties.
RQ6 needs the line at the time of the bet. The paper bets at the closing line, so it can't measure closing line value. RQ6 (#33) needs the price at the time of the bet and the closing price, both recorded.
One season isn't a forward test. A season of about 1,000 bets can't separate a 3% edge from zero. Paper trading in sports betting needs a length set from the per-bet variance, as MinTRL does for Sharpe ratios (#8).
A question for the maintainer. Should betting strategies in the repo be judged by yield per unit staked with its standard error, or by bankroll growth?