# NHL moneyline model: backtest summary (v1.0, run 2026-12-02)

**Bottom line: the model is well calibrated and clearly better than a naive or Elo-only model, but it does NOT beat the closing line.**
Out of sample it is slightly worse than the de-vigged closing moneyline in every season, and flat betting its "edges" at closing
prices lost money overall (about -0.6% to -0.8% ROI over 8 seasons, and about -3% to -5% per season since 2022-23).
Do not market it as a winning picks service. It is a solid, transparent baseline to publish free and track honestly.

## Setup
- Games: every regular-season game 2019-20 through 2026-27 to date (Dec 1, 2026), **8,954 games**, all with a matched closing line (100% coverage).
- Walk-forward: each test season is predicted by a model trained only on earlier seasons (training starts 2018-19; 2017-18 is warm-up only).
  Every feature uses only games finished before that game's date. The shot xG model was fit on 2017-18 and 2018-19 shots only.
- The starting goalie is the one who actually started. In live use that is known once starters are confirmed, which is before the closing line.
- Closing odds: SBR archive (one closing line) for 2019-20 to 2021-22. ESPN public odds for 2022-23 onward (the closing ML of each listed book,
  using the book closest to the median de-vigged price). De-vig is proportional. Bets are graded at the listed closing price, including the vig.

## Accuracy vs the closing line (lower is better)
| Season | Games | Market log loss | Model log loss | Market Brier | Model Brier | Elo-only LL | GBM LL |
|---|---|---|---|---|---|---|---|
| 2019-20 | 1082 | 0.6791 | 0.6801 | 0.2432 | 0.2437 | 0.6784 | 0.7044 |
| 2020-21 | 868 | 0.6535 | 0.6554 | 0.2307 | 0.2318 | 0.6616 | 0.6585 |
| 2021-22 | 1312 | 0.6421 | 0.6450 | 0.2252 | 0.2265 | 0.6514 | 0.6594 |
| 2022-23 | 1312 | 0.6522 | 0.6533 | 0.2302 | 0.2308 | 0.6590 | 0.6661 |
| 2023-24 | 1312 | 0.6552 | 0.6581 | 0.2318 | 0.2332 | 0.6612 | 0.6627 |
| 2024-25 | 1312 | 0.6582 | 0.6616 | 0.2331 | 0.2351 | 0.6691 | 0.6712 |
| 2025-26 | 1312 | 0.6817 | 0.6882 | 0.2444 | 0.2475 | 0.6902 | 0.6910 |
| 2026-27 (to Dec 1) | 444 | 0.6563 | 0.6591 | 0.2321 | 0.2336 | 0.6697 | 0.6624 |
| **All** | **8954** | **0.6600** | **0.6629** | **0.2339** | **0.2354** | 0.6674 | 0.6727 |

Always picking the base rate scores a log loss of 0.6906. The model gets about 90% of the way from that to the market (0.0277 of the 0.0306 improvement).
Gradient boosting overfit and did worse than the logistic model. Dropping the goalie features changed log loss by only 0.0001 overall,
though it helped by 0.0025 in 2026-27.

**Blend test:** a logistic blend of market and model, fit only on prior seasons, scored 0.65747 vs 0.65733 for the market alone over 7,872 games.
So the model adds no out-of-sample information beyond the close. (Fit in-sample, the weights are 0.84 on the market logit and 0.23 on the model logit.)

## Betting simulation (1 unit flat, closing odds, bet the side whose model prob exceeds the de-vigged market by more than the threshold)
| Threshold | Bets | Units | ROI | Win rate |
|---|---|---|---|---|
| 2% | 6,177 | -37.3 | -0.6% | 53.3% |
| 3% | 4,975 | -39.3 | -0.8% | 53.4% |
| 4% | 3,848 | -23.8 | -0.6% | 53.5% |
| 6% | 2,086 | -2.9 | -0.1% | 53.5% |

At the 3% threshold the bootstrap 95% CI on ROI is -3.5% to +2.0%. That is consistent with zero edge before vig.

By season at the 3% threshold: 2019-20 +22.0u (+3.9%), 2020-21 +11.2u (+2.3%), 2021-22 +31.9u (+4.0%), 2022-23 +2.1u (+0.3%),
2023-24 -22.5u (-3.2%), 2024-25 -24.9u (-3.6%), 2025-26 -37.8u (-5.1%), 2026-27 -21.3u (-9.2%, 231 bets).

**Read this carefully.** The profitable years all use the SBR odds file. In the 342 games where SBR and ESPN overlap (fall 2022), the two
sources' implied probabilities differ by only 0.5 points on average. But SBR's overround is about 2.4% vs about 4.2% for the ESPN-listed US
books, so the SBR prices are cheaper to bet into. Against the vig-heavier ESPN lines from 2022-23 on, the 3% rule lost about 104 units on
3,120 bets (-3.3%). The decline also lines up with sharper modern markets. Either way, there is no evidence of a durable edge.

## What the model learned (standardized logistic coefficients, final fit)
Elo diff 0.23, xG-share diff 0.17, last-10 xG diff 0.10, home back-to-back -0.10, away back-to-back +0.13, goalie GSAx diff 0.07,
goal-share diff 0.06. Recent-form goal diff and points% got about zero or slightly negative weight once the ratings were in, which echoes
MoneyPuck's finding. Travel distance and rest-day difference got about zero weight.

## What could improve it (most promising first)
1. **Bet earlier than the close, and price-shop.** The model can only win where the price is soft: opening lines and books slower than the
   market. Log the price at publish time vs the close (CLV). Beating the close on average is the real test, and the ledger now records the price taken.
2. **Use player-level lineups and injuries.** The market knows when a top-line center is out and this model doesn't. Free historical injury data
   wasn't available, so injuries are shown in the output but not used by the model. Building a lineup value from daily rosters (TOI-weighted player ratings) is the biggest missing piece.
3. **Improve xG.** Add pre-shot movement (rush, rebound angle change, east-west passes need tracking data), shooter talent, and score effects.
4. **Use a market-anchored model.** Model the residual vs the opening line and pick only spots where goalie news broke after the open.
5. **Totals and puck lines.** These are softer markets than the moneyline and haven't been built yet.
