PuckQLAsk PuckQL

Methodology

Team ratings

Methodology note Β· revised 4 December 2026 Β· parameters fitted on 2014-15 to 2018-19

Abstract

Each team is described by four latent strengths on a log scale: how much expected-goal danger it creates, how much it allows, how well it finishes relative to its chances, and how well its goaltending does relative to the chances against it. Two league-wide terms set the scoring environment. The strengths evolve as random walks within a season and are shrunk toward the mean between seasons. We estimate them with a Kalman filter that treats each game's log xG as a Gaussian observation and each game's goal count, given its xG, as a Poisson observation linearised around the prediction. Ten hyperparameters are fitted by maximising predictive likelihood on five seasons that play no part in any later test. The central empirical result is that shot generation and suppression persist across seasons (carry-over 0.75) while finishing and goaltending largely do not (0.47).

1Why decompose team strength

A single rating, such as Elo or goal differential, mixes two things that behave differently. Control of shot quality stabilises quickly and carries over from one season to the next. Conversion of those chances into goals, at either end, is dominated by small-sample noise for much longer. A model that pools them has to choose one speed of learning for both, and any choice is wrong for one of them. Separating the shot process from the conversion process lets each be learned at the rate the data justify, and the data choose those rates through the fitted hyperparameters rather than through our judgement.

2State and notation

For team 𝑖 the state contains four components, all in natural-log units, so a difference of 0.10 is roughly a 10% difference in rate:

SymbolComponentPositive values mean
π‘œπ‘–Creating chancesmore xG generated than average
𝑑𝑖Preventing chancesless xG conceded than average
𝑓𝑖Finishingmore goals scored than the team's own xG implies
𝑠𝑖Goaltendingfewer goals conceded than the xG against implies
πœ‡League xG levellog xG per team per game
𝑐League conversion levellog goals per unit of xG

The full state vector πœƒ stacks every team's four components with πœ‡ and 𝑐. The filter carries its posterior mean π‘₯ and full covariance 𝑃, so correlations created by shared games (two teams that just played each other) are preserved. At the start of the record πœ‡ is initialised at ln 2.3 and 𝑐 at 0, each with standard deviation 0.1; one burn-in season, 2013-14, washes out most of their influence before any forecast is scored.

3Observation model

Each completed game yields, for each side 𝐴 attacking side 𝐡, the regulation-time expected goals and actual goals at even strength, on the power play and short-handed. We exclude overtime, empty-net attempts and attempts made with the shooting team's own goalie pulled. Those situations are driven by the score and the clock rather than by the teams' underlying quality, and including them would make trailing teams look better at generating chances than they are.

The two observations for side 𝐴 are

ln⁡π‘‹π΄π΅βˆΌNormal⁡(πœ‡+πœ‚β„Žπ΄+π‘œπ΄βˆ’π‘‘π΅,𝜎π‘₯2)(1)𝐺𝐴𝐡∼Poisson⁡(𝑋𝐴𝐡exp⁡(𝑐+π‘“π΄βˆ’π‘ π΅))(2)

where 𝑋𝐴𝐡 is the observed xG (floored at 0.05 before taking logs), 𝐺𝐴𝐡 the goals, β„Žπ΄=1 for the home side, and πœ‚ the home advantage in log xG. Equation (2) conditions on the xG that actually occurred, which is what isolates finishing and goaltending: given the chances a team really had, did more or fewer go in than the league rate would predict?

4Filtering

Within a game the two sides' xG observations are processed first, then their goal observations. Equation (1) is linear in the state, so its update is the standard Kalman update. For an observation 𝑦 with design vector β„Ž and noise variance 𝑅:

𝑆=β„Žπ‘ƒβ„ŽβŠ€+𝑅(3)𝐾=π‘ƒβ„ŽβŠ€/𝑆π‘₯←π‘₯+𝐾(π‘¦βˆ’β„Žπ‘₯)π‘ƒβ†π‘ƒβˆ’πΎπ‘†πΎβŠ€

Here β„Ž has three non-zero entries (+1 on πœ‡, +1 on π‘œπ΄, βˆ’1 on 𝑑𝐡), the home term is added as an offset, and 𝑅=𝜎π‘₯2.

Equation (2) is not Gaussian. Write the log goal rate as β„“=ln⁡𝑋𝐴𝐡+𝑐+π‘“π΄βˆ’π‘ π΅ and let πœ†=exp⁡(β„“Λ†) be its value at the current mean. The Poisson log-likelihood has score πΊβˆ’πœ† and Fisher information πœ† with respect to β„“, so a second-order (Laplace) approximation around β„“Λ† is equivalent to observing β„“ directly with

pseudo-innovationπΊβˆ’πœ†πœ†,noise variance1πœ†(4)

and applying (3). This is the extended Kalman filter for a log-link Poisson observation. The variance term makes the behaviour intuitive: a game with 3.0 expected goals carries three times the information about finishing of a game with 1.0, and even then the update is small, because one game's goal count is mostly noise.

5Dynamics

Within a season each team component follows a random walk. When a team next plays, Δ𝑑 days after its previous update, the variance of each component grows by π‘žΞ”π‘‘, with one rate for π‘œ and 𝑑 and another for 𝑓 and 𝑠. The league terms drift at their own rate π‘žπ‘”. Drift is applied lazily, per team, only when that team is next observed or predicted.

Between seasons every team component is shrunk toward zero and receives fresh uncertainty:

π‘₯π‘˜β†πœ“π‘˜π‘₯π‘˜(5)π‘ƒπ‘—π‘˜β†πœ“π‘—πœ“π‘˜π‘ƒπ‘—π‘˜π‘ƒπ‘˜π‘˜β†π‘ƒπ‘˜π‘˜+πœπ‘˜2

with πœ“ and 𝜏 shared within the pair (π‘œ, 𝑑) and within (𝑓, 𝑠). The league terms are not shrunk; each gains variance 0.1Β². A team with no history, such as an expansion franchise, starts at zero with the stationary variance of this process, 𝜏2/(1βˆ’πœ“2). A relocated franchise keeps its predecessor's state.

6Prediction

For a future game, the predicted log goal rate of side 𝐴 combines both observation equations,

π‘šπ΄=πœ‡+πœ‚β„Žπ΄+π‘œπ΄βˆ’π‘‘π΅+𝑐+π‘“π΄βˆ’π‘ π΅(6)

with variance equal to the posterior variance of that linear combination, plus accumulated drift to the game date, plus a game-level term πœŽπ‘”2. To score goal forecasts we need the distribution of a Poisson count whose log rate is approximately Normal⁡(π‘š,𝑣). We use the negative binomial with matching mean and variance:

E[𝐺]=exp⁡(π‘š+𝑣/2),π‘Ÿ=1exp⁡(𝑣)βˆ’1(7)

7Estimation of hyperparameters

The model has ten free parameters: 𝜎π‘₯, πœŽπ‘”, the three drift rates, the two carry-overs πœ“, the two shocks 𝜏, and πœ‚. We run the filter from 2013-14 (burn-in) through 2018-19 and, at checkpoints through each season, score its forecasts of every remaining game: the log density of each side's log xG under the predictive normal, plus the log probability of each side's goals under (7). The objective is the mean of that combined log score over the five scored seasons, 2014-15 to 2018-19, maximised by Nelder–Mead. Because forecasts are scored at every horizon from the next game to the end of the season, the fit has to get both the short-run response and the long-run uncertainty right.

Two things went wrong on the way, and both shaped the final specification. Fitting on goals alone drove every variance toward zero: Poisson noise in goal counts is large enough that the likelihood could not tell a frozen model from a responsive one, so the cheapest solution was to stop learning. Scoring the xG observations as well identified the variance scale. Second, goal counts are over-dispersed relative to the Poisson even after conditioning on ratings, so the game-level variance πœŽπ‘” earns a parameter of its own rather than being forced to zero.

Seasons 2019-20 and 2020-21 are excluded from tuning (one was cut short and the other was a 56-game season in realigned divisions), and 2021-22 onward is reserved for testing.

8Fitted values

ParameterEstimateInterpretation
𝜎π‘₯0.298One game's log xG varies about its expectation with sd 0.30; a single game is weak evidence.
πœ‚0.103Home teams generate exp(0.103) β‰ˆ 1.11 times the xG they would away.
πœ“od0.750Share of a shot-quality rating carried into the next season.
πœ“fs0.469Share of a finishing or goaltending rating carried over.
𝜏od0.038Off-season shock to π‘œ and 𝑑 (sd).
𝜏fs0.052Off-season shock to 𝑓 and 𝑠 (sd).
π‘žod2.38 Γ— 10⁻⁢ per dayAbout 0.021 sd of drift over a 180-day season.
π‘žfs2.58 Γ— 10⁻⁢ per dayAbout 0.022 sd over a season.
π‘žπ‘”1.26 Γ— 10⁻⁢ per dayLeague-level drift.
πœŽπ‘”0.031Game-level over-dispersion of the goal rate.

The fitted model improves the mean predictive log score by 0.098 nats per game over the same filter with every team held at league average (βˆ’4.073 against βˆ’4.171).

The implied stationary spread of team strength is similar for both pairs, about 0.057 for π‘œ and 𝑑 and 0.059 for 𝑓 and 𝑠. What differs is persistence. A shot-quality edge keeps three-quarters of its size into the next season; a finishing or goaltending edge keeps less than half. That is consistent with the long-standing finding in hockey analytics that shooting and save percentages regress heavily, and here the regression is estimated rather than assumed.

9Posterior predictive checks

On the tuning seasons, where about ten parameters were fitted to many thousands of games, we checked whether the model's predictive distributions match what happened.

CheckResultTarget
Next-game P(home regulation win), by decilewithin Β±0.03on the diagonal
Long-horizon P(home regulation win), by decilewithin Β±0.02on the diagonal
Rest-of-season points, 50 / 80 / 95% interval coverage49.7 / 79.2 / 95.9%50 / 80 / 95%
PIT standard deviation; χ² (9 df)0.290; 8.50.289; below 16.9
Early season only (more than 900 games left), 80% coverage82.2%80%
Simulated against actual: regulation ties; home wins23.0 vs 22.5%; 54.3 vs 54.2%equal

PIT: probability integral transform of each team's actual rest-of-season points under its predictive distribution. A well-specified model gives uniform PIT values, whose standard deviation is 1/√12 β‰ˆ 0.289.

One misfit did not show in these checks but did show in game results: actual goal differentials moved about 1.2 times as much as predicted. The ratings are too cautious about the gap between teams. We correct for it in the outcome layer rather than here (see From ratings to a game result), because we believe the cause is structural. The four components start each season with independent priors, while real team quality is correlated across them; a good team tends to be good at several of the four at once. A correlated prior is the most likely fix for the next version.

10Limitations

  • No lineup information. Injuries, trades and goalie starts reach the ratings only through results. The drift terms allow change but cannot anticipate it.
  • Independent priors. As discussed in section 9, the component priors ignore cross-component correlation.
  • Special teams are pooled. Power-play and penalty-kill chances enter through the same π‘œ and 𝑑 as even-strength play, so a team's penalty differential is folded into its shot-quality ratings.
  • Regulation only. Overtime is modelled separately, in the outcome layer.

References

  1. Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1), 35–45.
  2. Jazwinski, A. H. (1970). Stochastic Processes and Filtering Theory. Academic Press.
  3. Nelder, J. A., & Mead, R. (1965). A simplex method for function minimization. The Computer Journal, 7(4), 308–313.
  4. Gneiting, T., & Raftery, A. E. (2007). Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477), 359–378.
PuckQL Computed from official NHL data. PuckQL is not affiliated with the NHL.
Playoff oddsGamesAsk PuckQLMethodologyGlossaryTermsPrivacy