DaycodedSoftware for decisions that matter

Case study · Forecast evaluation

Testing an NHL win forecast against the market

I built a win-probability model from public NHL data and tested it against market prices on 1,747 games. The market scored slightly better overall. I kept the report because it shows which inputs drive the forecast and which are still uncertain before puck drop.

1,747games compared with market prices, October 2025 to November 30, 2026
0.6758 vs 0.6755model vs market log loss on those games; lower is better, and the market scored slightly better
8,945games replayed with only what was known before each one, 2019-20 to November 30, 2026

One game, the evening before

The model and the market agreed.

On the evening before the December 5, 2026 game against Toronto, the market gave Carolina a 74% chance of winning. The model gave Carolina 73%.

The report shows that Carolina took 60% of the shots in its games, compared with Toronto’s 49%. Both starting goalies were still projected, and the model shows that a different starter could move its number by up to five points. Two Carolina forwards were listed day-to-day.

Pre-game report

Carolina 74%. The model and the market agree.

Toronto at Carolina · Sat, Dec 5, 2026 · 7:00 pm ET

  • Two estimates
  • MarketCarolina 74%
  • ModelCarolina 73%, built from public league data
  • Why60% of the shots in their games, +1.89 goals a game
  • What could change it
  • GoaliesBoth projected; a different starter moves it up to 5 points
  • LineupsTwo forwards day-to-day; lineups not official

Sent in the afternoon and again before puck drop

1 · The question

Does an independent forecast improve on the market?

I wanted to know whether a model built from public NHL data could assign better win probabilities than the market. I compared the forecasts against the actual game results.

2 · The data

Public league data, checked against two kinds of market

  • The league's public per-game statistics for every team and goalie, and play-by-play for every game
  • Lineups, scratches and injury reports near puck drop
  • The schedule, for rest and back-to-back games
  • A regulated prediction market's live prices and its historical archive
  • Closing prices from 16 to 24 sportsbooks, through a licensed odds feed

3 · The model

One engine, before the game and during it

Each team's goals arrive at a rate set by its attack and its opponent's defense. The engine works through every second left and every possible score to give a win probability, so the same model answers before puck drop and after every goal.

  • Team strength: attack and defense fit against the quality of each opponent, weighted toward recent games, with last season as a prior that fades
  • Home ice: a league-wide edge, plus each team's own home and road split, held close to the league
  • Goalie: the projected starter's save rate against his team's, confirmed once he is in net
  • Absences and rest: missing players by their scoring above a replacement, and a penalty for the second night of a back-to-back
  • Live state: score, clock, power plays, pulled goalies, overtime and the shootout

4 · The evaluation

The model did not outperform the market

On the 1,747 games with comparable market prices, the model scored a log loss of 0.6758 and the market 0.6755. Log loss measures how much probability a forecast gave to the outcome that happened: lower is better, and a forecast of 50% every game scores 0.693. The 0.0003 gap runs in the market's favor and is far smaller than its standard error of 0.0025, estimated with games grouped by night so that games played the same evening are not counted as independent evidence.

  • Model cutoff: the end of the day before each game. Ratings use only games already played, the starting goalie is projected from earlier starts, and no lineup or injury news from game day is used
  • Market cutoff: the midpoint price 30 minutes before the scheduled start, so the market had that day's news and the model did not
  • Tuning: the model's settings were tuned on the 2024-25 and 2025-26 seasons, so 1,312 of the 1,747 games were ones it had been fitted to, which flatters the model
  • Which games: every regular-season game the market priced, 2025-26 and 2026-27 through November 30; the market listed no NHL games in 2024-25
  • Fixed in advance: I defined what would count as a passing result before looking at the results

After the evaluation, I stopped looking for pregame mispricing and kept the report to show where the estimates agree and what could change the forecast.

5 · The interface

A report in chat, a longer one in the terminal

A scheduled job checks every ten minutes. It posts the report to a chat channel in the afternoon and again before puck drop, and says whether the answer changed. A longer report adds ratings, splits and how the model built its number, and a live view follows the game. The tool reads prices and never places an order.

Every forecast it makes before a game is logged with a fingerprint of the code that produced it, then scored against the result, so each model version keeps its own record.

6 · Method notes

The other tests, and what a price means

  • Price movement: from three hours out to five minutes before the start, the market's price moved about a cent, in no direction the model could foresee
  • Other markets: at game time the prediction market sat within a cent of the consensus of 16 to 24 sportsbooks on a typical game, and never 4 points away across 1,741 games
  • During the game: across 1,759 games, selling a leading favorite after a goal cost about 5 cents a contract compared with holding
  • Calibration: teams the model rated 70% or higher won 78.9% of the time against 74.4% predicted, so it is a little cautious about strong teams
  • Price and payout: at 74 cents to win a dollar, one loss undoes about three wins, so even a correct price on a strong favorite breaks even before fees
  • History in the report: each report quotes how often market favorites in the same price band have won, with a 95% range; at 70 to 75% that was 77% of 78 games

Beyond hockey

Evaluating a model before you switch

For a demand forecast or risk score, I’d start with the same question: does the new model improve enough on the current one to change what you do?

Tell me what you’re working on

Share the decision you face, the system that needs attention, or the deadline you’re working toward.

Discuss a project