Team ratings
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:
| Symbol | Component | Positive values mean |
|---|---|---|
| Creating chances | more xG generated than average | |
| Preventing chances | less xG conceded than average | |
| Finishing | more goals scored than the team's own xG implies | |
| Goaltending | fewer goals conceded than the xG against implies | |
| League xG level | log xG per team per game | |
| League conversion level | log 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
where is the observed xG (floored at 0.05 before taking logs), the goals, 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 :
Here has three non-zero entries (+1 on , +1 on , β1 on ), the home term is added as an offset, and .
Equation (2) is not Gaussian. Write the log goal rate as and let 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
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:
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, . A relocated franchise keeps its predecessor's state.
6Prediction
For a future game, the predicted log goal rate of side combines both observation equations,
with variance equal to the posterior variance of that linear combination, plus accumulated drift to the game date, plus a game-level term . To score goal forecasts we need the distribution of a Poisson count whose log rate is approximately . We use the negative binomial with matching mean and variance:
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
| Parameter | Estimate | Interpretation |
|---|---|---|
| 0.298 | One game's log xG varies about its expectation with sd 0.30; a single game is weak evidence. | |
| 0.103 | Home teams generate exp(0.103) β 1.11 times the xG they would away. | |
| 0.750 | Share of a shot-quality rating carried into the next season. | |
| 0.469 | Share of a finishing or goaltending rating carried over. | |
| 0.038 | Off-season shock to and (sd). | |
| 0.052 | Off-season shock to and (sd). | |
| 2.38 Γ 10β»βΆ per day | About 0.021 sd of drift over a 180-day season. | |
| 2.58 Γ 10β»βΆ per day | About 0.022 sd over a season. | |
| 1.26 Γ 10β»βΆ per day | League-level drift. | |
| 0.031 | Game-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.
| Check | Result | Target |
|---|---|---|
| Next-game P(home regulation win), by decile | within Β±0.03 | on the diagonal |
| Long-horizon P(home regulation win), by decile | within Β±0.02 | on the diagonal |
| Rest-of-season points, 50 / 80 / 95% interval coverage | 49.7 / 79.2 / 95.9% | 50 / 80 / 95% |
| PIT standard deviation; ΟΒ² (9 df) | 0.290; 8.5 | 0.289; below 16.9 |
| Early season only (more than 900 games left), 80% coverage | 82.2% | 80% |
| Simulated against actual: regulation ties; home wins | 23.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
- Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1), 35β45.
- Jazwinski, A. H. (1970). Stochastic Processes and Filtering Theory. Academic Press.
- Nelder, J. A., & Mead, R. (1965). A simplex method for function minimization. The Computer Journal, 7(4), 308β313.
- Gneiting, T., & Raftery, A. E. (2007). Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477), 359β378.