Skip to content

NHL Model Methodology

Goal and expected-goal strengths, a Poisson goal grid, the market price, and frozen partner-book predictions, run daily

Overview

The NHL model is a Poisson goal model that started as a spreadsheet I ran by hand for a few seasons. Each team's recent goals and expected goals become attack and defense strengths relative to the league. A matchup multiplies them into expected goals for each side, and a Poisson grid turns those into win probabilities and a total. It runs each morning, and its decisions freeze before puck drop and are graded in public.

The strengths come from goals and MoneyPuck expected goals over each team's last 50 games, pulled toward the league average. For games the books have priced, the published win probability is the market's and the total is blended halfway with the market's. None of it is wagering advice.

Data

  • MoneyPuck's team game-by-game file supplies goals and expected goals (MoneyPuck's shot-based scoring chances), for and against. The spreadsheet used Natural Stat Trick, which no longer serves automated requests.
  • Schedule, scores and teams come from the NHL's public API. A shootout win counts as one goal for the winner, which is how the books settle it.
  • Prices come from the NHL's partner sportsbook feed, read each morning: DraftKings on the US feed and FanDuel on the Canadian feed. A prediction records the better of the two. The feed also carries the puck line and a three-way line on the result after regulation, and both are stored without being priced.
  • As puck drop approaches, the live worker keeps the latest two-sided partner quote stamped in the last 15 minutes before the start and freezes it as that game's closing line. A game with no such quote has no close. Closes are used only to grade the forecast and the recorded prices.
  • Opening and closing moneylines and totals for the backtest seasons come from ESPN's public odds data and are used only to check the model against the market.
  • Player grades read MoneyPuck's skater and goalie game logs and its shot file, and the NHL's shift charts for who was on the ice. Where the shift-chart feed is missing a game, the NHL's time-on-ice report for that game fills it.

Windows

Each team has one window: its last 50 games, home and road together, with goals for and against (overtime included, shootout goals excluded) and expected goals for and against. Windows end the day before the run and reach into the previous season, so opening night is priced off last season. Arizona's games count for Utah. A team with under ten games in its window is projected but not priced.

Ratings and Matchup

Attack strength averages two ratios to the league per-game average, goals for and expected goals for, each first padded with ten games of league-average play so a short hot or cold stretch moves it less. Defense strength does the same with goals and expected goals against, so 1.000 is average and a lower defense is better. League averages come from all completed seasons since 2021-22. The overall rating on the ratings page is twice attack minus twice defense, which keeps the spreadsheet's home-plus-road scale.

The home team's expected goals equal its attack times the visitor's defense times the league average home goals per game. The visitor's use its attack, the home defense and the league road average. Home ice comes from those two league averages, so it is the same for all teams. A team on the second night of a back-to-back scores about 7 percent fewer goals than that and its opponent about 5 percent more, as fitted on four seasons of backtest games. Each side's goals are independent Poisson counts. A win probability is the mass on that side of the diagonal plus half the tie mass, and the same grid gives over, under and push probabilities for a posted total.

The spreadsheet built strengths from different windows: the last 25 home and 25 road games, summed by situation and turned into goals through a linear fit on ten shot-quality rates. On the 2025-26 backtest season the 50-game method lowers log loss from 0.709 to 0.685 and the average total miss from 1.90 to 1.84 goals. Separate home and road windows, weighting recent games more heavily, and a rolling league scoring rate did not improve it.

Market Blend

On its own the model does not beat the sportsbook market on winners. Against opening lines for the backtest seasons, the model added no information to the price, and neither did rest days or the quality of the expected or actual starting goalie. The exception is a team that played the day before, which wins less often than its price says.

For games the books have priced, the published win probability is the market's no-vig probability from each book that quotes both sides (the two implied probabilities scaled to sum to one), averaged over DraftKings and FanDuel and moved 0.15 in log-odds against a team on the second night of a back-to-back. That is the size of the effect against closing lines over the four backtest seasons. Against opening lines it is 0.19, but the market closes part of that gap during the day, and the morning prices a prediction is made at already sit close to the closing line. The model total is averaged halfway with a market total that reads the juice as well as the line. Each book's no-vig over probability is converted to the average goal total that makes it true on a Poisson curve, and the median is taken across books. Even prices on 5.5 work out to about 5.67 goals, and an over at -140 against an under at +120 to about 6.05. On the 2025-26 opening lines that market total missed by 1.86 goals against 1.88 for the bare line.

Each side's expected goals are then reset so the Poisson grid returns that win probability and that total. The expected goals, win probability, fair price, total, any prediction and the opening point of the live win probability all come from that forecast.

The partner feed only prices the current day's games, so a forecast is published the morning its game is played. The halfway total weight is my choice and was not fitted.

Pricing and Predictions

The fair price is one over the published win probability, shown in American odds with the spreadsheet's minimum acceptable price beneath it, which is the fair decimal price marked up by ten percent. The edge is the published probability minus the break-even probability of the partner-book price, vig included. Each prediction risks a flat one unit so results compare across sports. Kelly at ten percent of full is published for reference.

Each game gets one decision per market, recorded each morning for that day's slate and frozen at first publication. A moneyline qualifies when it has at least 2 percent expected value at its price, which in practice means a back-to-back the price has not absorbed or a book off the consensus. A smaller edge sits inside the uncertainty of the back-to-back shift itself, so it is not published; in practice that rules out favorites of -200 or shorter. A total qualifies when the published total differs from the posted line by at least half a goal, which is the spreadsheet's one-goal rule applied to the model's own total, and it has positive expected value at its price. A game without a two-sided price produces No Play, and so does a price the feed stamped more than 24 hours earlier, unless it is a DraftKings price found unchanged on DraftKings' public betting listing within 15 minutes of the decision. FanDuel prices have no such check. A moved, postponed or cancelled game voids its prediction, totals push on the line, and the database rejects any change to a published prediction or a settled result.

The performance page has the record by market, month, edge and pick rule, how the recorded prices compare with the closing line, and the forecast's log loss and total error against the market, for the live season and the backtest. On the games page, each game in progress opens its live win probability and how it is computed.

Earlier pick rules, kept apart on the performance page:

  • nhl-picks-v1 and v1.1 (to October 9, 2026): the spreadsheet's rules on the model alone, 13 percentage points for a moneyline and one goal for a total. v1.1 added the DraftKings listing check.
  • nhl-picks-v2 (October 9 to November 2): the model blended halfway with the market, and a moneyline needed 4.5 points of edge.
  • nhl-picks-v2.1 (36 minutes on November 2): totals also needed positive expected value.
  • nhl-picks-v3 (November 2 to 17): moneylines priced at the market consensus and a back-to-back shift of 0.19, the size fitted against opening lines. It overstated the edge on the later prices the predictions are made at.
  • nhl-picks-v3.1 (November 17 to 30): the back-to-back shift at 0.15, and any moneyline with positive expected value qualified, including heavy favorites priced 0.3 to 1.5 percent above break-even.
  • nhl-picks-v3.2 (current): the rules described above.

Backtest

A walk-forward replay of the 2022-23 through 2025-26 regular seasons prices each game from windows that end the day before it, with league averages from earlier seasons only (the two back-to-back effects are fitted on all four seasons). Across 5,248 games the model alone scores a log loss of 0.668 against 0.693 for a coin flip and predicts the winner 59 percent of the time. The model total misses by 1.85 goals on average. Between 40 and 70 percent, where most games fall, its probabilities land within a point of how often home teams won. The edges are rougher: games priced near 36 percent were won 33 percent of the time, and games near 73 percent 79 percent. Its totals ran 0.16 goals low in 2025-26, when scoring rose.

Over the 3,936 games from 2023-24 through 2025-26 the closing moneyline scores a log loss of 0.665 against 0.671 for the model, so the market is still better on winners. The closing total misses by 1.87 goals on average against 1.86 for the model. Walk-forward over 2024-25 and 2025-26, the current moneyline rule went 325-230 at the opening price, plus 5.3 percent per unit with an uncertainty of 4.0, and plus 0.8 percent at the closing price. The earlier spreadsheet model's totals showed no edge at any threshold, and the current model's totals have not shown one either.

Player Grades

The players page grades every qualified forward, defenseman and goalie, refreshed on Mondays and Thursdays. The grades are separate from the game model: no forecast or prediction reads them.

A skater's rating starts from who was on the ice. Shift charts and shot times cut each game into stretches with the same ten skaters, and each side's expected goals are summed within them. A penalized regression over the last one and two years of those stretches gives each skater an offense effect and a defense effect on expected goals per hour, with his linemates and opponents held constant. One-man advantages get the same treatment for the power play and the penalty kill.

A second model, fitted on the 2022-23 through 2025-26 seasons and then frozen, combines those effects with his own shot and point rates, ice time and zone starts into the effect expected of him next game. That is multiplied by the ice time he has been getting at even strength, on the power play and on the penalty kill. Finishing is added on top: his goals beyond the expected goals of his shots over his last three seasons, pulled toward average. The result is goals per 82 games above an average skater at his position, split into offense and defense. The page calls the sum Impact.

A goalie's rating is goals saved per 60 minutes above what the shots he faced were expected to yield. Recent games count more (a game 40 appearances back counts half), the result is pulled toward average until he has played a lot, and an age curve takes off about 0.016 goals per 60 for each year past 30 or short of 25. Those settings were fitted on goalie seasons back to 2008-09.

The grade places each player by his rank at his position on a bell curve: 50 is the median, 10 points is one standard deviation, and the scale stops at 20 and 80. A skater qualifies with 8 games this season and a goalie with 4. I rank because skater value is lopsided. Grading the goals themselves put seven of about 400 forwards at 80. The Impact number keeps the size of the gaps.

How it tested, each time with weights fitted only on earlier seasons:

  • Predicting 5-on-5 expected goals stretch by stretch, the skater rating beat a simpler on-ice rating plus team strength in both 2024-25 and 2025-26. The gain came from the defense side.
  • The ratings are not squeezed toward average. In 2025-26, with one of the 31 top-rated skaters on the ice at 5-on-5 his team was predicted to lead by 0.49 expected goals per hour and led by 0.52. With one of the 31 lowest-rated it was predicted to trail by 0.42 and trailed by 0.46.
  • Defense ratings are spread a little too wide: each expected goal of predicted difference between defenders showed up as about 0.8.
  • Skaters who changed teams are the weak point. The rating predicted them better than the simpler one in 2024-25 and worse in 2025-26, so some of a rating still belongs to the team around him.
  • Goalie ratings are weak, because goalie results repeat little. The rating's correlation with a goalie's next 25 games was 0.31 in 2024-25 and 0.16 in 2025-26. Averaged over 14 seasons it reached 0.20, against 0.15 for a simpler estimate from his last 40 appearances. A goalie's grade carries a ± for how much of it rests on his own record; skater grades have none yet.
  • Everything but finishing is measured in expected goals, so what a skater does to shot quality beyond what the expected-goal model sees is not counted.

Limits

  • Overtime and the shootout are treated as a coin flip on tied regulation scores.
  • Home and away goals are independent, with no Dixon-Coles style correction for low scores.
  • Home ice is one league-wide value for all teams.
  • Goalies are not modeled, so a backup start does not change the forecast.
  • MoneyPuck can revise past expected goals, so the backtest reads today's version of earlier seasons.
  • The puck line and the three-way regulation line are stored but not priced.
  • Predictions take the morning partner-feed price. The closing line is recorded only to grade them.
  • The total blend weight and the prediction thresholds are my choices and were not fitted.
  • Games beyond the current day have no market price yet, so their forecast changes when the market is applied on game day.

Tech Stack

Python with pandas, numpy and scipy in the momentumnhl repository, run each morning by GitHub Actions from the day before opening night through April. Outputs land in the nhl Postgres schema, where triggers archive each pregame forecast and enforce the ledger rules. This site reads only that schema.