Today

Glossary › Expected goals (xG)

What are expected goals (xG) in hockey?

Expected goals (xG) is the probability that a shot attempt becomes a goal, judged from the circumstances of the shot alone. Add the xG of all attempts of a team or a player and you get the goals an average shooter and goalie would have produced from those chances.

Why it exists

Goals are rare and noisy: a team can create twice the chances and still lose 2-1. Shot counts treat a slap shot from the blue line and a rebound in the crease as the same thing. Expected goals weights each attempt by how dangerous it was, so it says more about how well a team played than the score does, especially over a small number of games.

How onice calculates it

The model is a logistic regression trained on unblocked shot attempts (goals, shots on goal and misses) from the NHL's play-by-play data. It uses the distance and angle of the shot, whether it came from behind the net, the shot type, whether it was a rebound (and how soon after the previous attempt), whether it was on the rush, an empty net, and the strength on the ice (power play, penalty kill, 3 on 3).

Recent seasons count more than old ones and every finished season has a level of its own, so the xG of a season matches the goals scored in it. The model does not know who the shooter or the goalie is: that is on purpose, so that finishing skill and goaltending show up as the difference between goals and xG instead of being hidden inside it. Blocked attempts have an xG of zero.

How to read it

xGF is the xG a team creates while it is on the ice, xGA the xG it allows, and xGF% = xGF / (xGF + xGA) is its share of the chances: 50% is even. Goals above expected (goals minus xG) is what a shooter or a team scored beyond its chances: it is partly skill and partly luck, and it tends to fade over time.

Formula

xG of an attempt = probability from the model (0 to 1)
xGF% = xGF / (xGF + xGA)
Goals above expected = goals - xG

See it on onice

Related

Every column of the tables is defined in the glossary, and the methods are in methodology.