The simulator behind this site exists to answer one question: given the same shot, how differently do published xG models see it? Chapter 5 of my 2024 undergraduate project at UFRJ put that question to three shots, two real and one invented, and the answers ranged from “they basically agree” to “one model thinks this is a coin flip and another thinks it is nearly certain”. This article walks through those three shots, explains the mechanics behind each disagreement and ends with a practical guide to reading the results table when the rows do not match.

The four models, in one paragraph each

Rathke divides the attacking half into eight zones and returns the historical goal rate of the zone the ball is in. Nothing else matters: not the keeper, not the defenders, not the body part. Karim & Marwane is a gradient boosting model whose star feature is the Kos Angle, the shot angle minus the slices blocked by every body in the lane, alongside distance, location, pressure, body part and technique. Matteotti & Sotudeh is a convolutional neural network that sees the shot as a 30×40 image with two channels, ball and opponents, and nothing else; the simulator runs both the authors’ original network and one re-trained on the site’s own data. Aggregated is a gradient boosting model on sixteen features merged from Anzer & Bauer, Hewitt & Karakuş and Narayanan & Pifer, and it is the only one that knows where the goalkeeper is standing. The Average row is the plain mean of Karim & Marwane, Matteotti & Sotudeh and Aggregated; Rathke is left out of it.

Each model has its own article on this site, linked at the end. What matters here is that they differ along three axes at once: the information they are given, the algorithm that turns it into a probability, and the data they were trained on. Every disagreement below traces back to one of those three.

Shot 1: the Messi miss

The first shot is a real one, imported from Statsbomb’s open data: a Lionel Messi attempt that did not go in. In the simulator, the Karim & Marwane model and the Aggregated model returned values very close to each other, while the Matteotti & Sotudeh CNN returned a much lower figure.

Open the Messi miss in the simulator

The two tree models agree for a boring but important reason: they are fed overlapping information. Both see the ball position, the distance and angle, the number of bodies in the lane, the body part and the technique, and both were trained on the same 23,098 shots. One has the Kos Angle and the other has the keeper position and the two nearest defenders, so they are not identical, but for a routine shot in a routine situation those extras tend to point the same way.

The CNN is the odd one out because it is fed something different. It does not know the technique, the body part, whether the shot was first time or whether Messi was under pressure. It knows two images: a dot for the ball and a blurred cloud for the opponents. And it was trained, as the CNN article shows, to be cautious: on a La Liga 2020/21 sample it summed to fewer expected goals than Statsbomb, and its re-trained version was more cautious still. A model that is reluctant to award high xG in general will be reluctant for Messi in particular. Note that the shot was a miss, so the lowest number was, in hindsight, the closest to what happened; but a single outcome cannot tell you which probability was right.

Shot 2: the Sergiño Dest goal

The second shot is also real: a Sergiño Dest goal in a Real Sociedad against Barcelona match. Here all four models diverge. Not two clusters, but four different numbers.

Open the Dest goal in the simulator

This is the more interesting case, because it shows that the agreement in shot 1 was situational, not structural. When a shot sits in a well-populated part of the feature space, with a keeper on the line and a familiar density of defenders, all the models are interpolating between thousands of similar training shots and they land close together. When the scene is unusual in some respect, each model reaches for the feature it trusts most, and those features are different. Rathke reaches for the zone. Karim & Marwane reaches for the open angle. The CNN reaches for the shape of the defensive cloud. Aggregated reaches for the keeper and the nearest defender. A shot that is “unusual” along one of those dimensions and ordinary along the others will split the models.

The practical lesson from this shot is that an xG value published without its model is close to meaningless for an individual chance. Over a season the differences wash out, which is why total xG from different providers tends to correlate well. For a single goal, the choice of model can move the number by more than the number itself.

Shot 3: the goal-line shot nobody would ever take

The third shot cannot be imported because it never happened. I placed the ball almost on the goal line, in front of an empty net, with no goalkeeper and no defender anywhere near it. Every human observer would call this a goal. The models did not agree on how sure to be.

ModelxG
Karim & Marwane (Kos Angle)98%
Aggregated78%
Matteotti & Sotudeh, original network67%
Matteotti & Sotudeh, re-trained32%
Rathkeat most 39.79%, the goal rate of its best zone
Open the goal-line shot in the simulator

Karim & Marwane gives the answer a person would. An empty triangle in front of the ball is the strongest signal the Kos Angle can send, and the model was trained to trust that signal above everything else.

Aggregated is high but hedged. Several of its features, the nearest-defender distances and the player density, are degenerate when the lane is empty, and gradient boosting does not extrapolate beyond what its leaves have seen. Shots from the goal line with no one around are almost absent from real data, so the model is answering from the nearest populated region of its training set, which is less certain than the scene deserves.

Rathke cannot go above the goal rate of its best zone, because that is all it returns. Four tap-ins out of ten in the prime zone historically missed, were blocked or were saved, so four out of ten is the ceiling, even with an open net.

The CNNs are the surprise, and the gap between them is the most informative number in the table. The original network, trained on 56,362 shots, gives 67%. The same architecture re-trained on 23,098 shots gives 32%. For the pixel approach, an empty goal line is an image the network has essentially never seen, and how it responds to a never-seen image depends on how much it saw during training. With less than half the data, the re-trained network falls back towards the base rate of the dataset rather than towards the obvious answer. The conclusion in my project was that the tensor approach needs a larger volume of shots before it adjusts properly to clear-cut chances.

Why disagreement is not a bug

It would be easy to read all of this as “some models are wrong”. A fairer reading is that each model answers a slightly different question. Rathke answers “how often do shots from here go in?”. Karim & Marwane answers “how much of the goal can the shooter see?”. The CNN answers “what does the defensive shape in front of this ball usually lead to?”. Aggregated answers “given everything the event feed knows, including the keeper, what is the chance?”. When those questions have the same answer, the rows agree. When they do not, the disagreement is telling you which aspect of the chance is doing the work.

There is also a quieter source of divergence that has nothing to do with football: calibration. The hybrid model article shows an AdaBoost classifier that ranked shots almost as well as gradient boosting, with a correlation of 0.80 against Statsbomb, yet handed out nearly five times too many expected goals in total because its probabilities bunch near 0.5. That model never reached the simulator, but it is a reminder that two models can order chances the same way and still print very different numbers.

How each model lines up with Statsbomb

One external yardstick is available for every model on the site: Statsbomb’s own xG for the same shots. The comparisons below were run on different samples, so treat them as rough.

ModelSamplePearson r vs Statsbomb
Aggregated (gradient boosting)Last 20% of training data, 474 goals0.91
Karim & Marwane (gradient boosting)Same 20%0.80
Matteotti & Sotudeh, originalLa Liga 2020/21, 98 goals0.82
Matteotti & Sotudeh, re-trainedLa Liga 2020/21, 98 goals0.69

The ranking is roughly what the three shots above would predict. The model with the most Statsbomb-like inputs agrees most with Statsbomb. The model that sees the least, the re-trained CNN, agrees least. None of this says which model is closest to the “true” probability, which no one observes; it says which model is closest to one particular commercial model.

Reading the results table when the rows disagree

  • Check the inputs first. The lower half of the results table shows the angle, the Kos Angle, the distance, the goalkeeper distance and the two player counts. If the Kos Angle is near zero while the shot angle is large, the Kos Angle model will be low for a reason you can see.
  • Compare the two player counts. The Karim & Marwane count includes any player whose body overlaps the lane; the Aggregated count includes only players whose centre is inside it. A defender on the edge shows up in one and not the other.
  • Move one thing at a time. Drag only the goalkeeper and the Aggregated row will move while the Kos Angle row barely changes, unless the keeper enters the lane. Toggle under pressure and the CNN will not move at all, because it never receives that flag.
  • Treat the CNN as a second opinion on shape. When it diverges from the tree models, the defensive geometry is probably unusual. When it agrees, the scene is a familiar one.
  • Use the average sparingly. The Average row is a crude ensemble of three models with very different inputs. It smooths outliers but it also hides the information in the disagreement.

Further reading

The three experiments are from chapter 5 of Schlaepfer, A. (2024). Modelos de expected goals no futebol: desenvolvimento de um simulador de chutes. Undergraduate project, UFRJ. Real shots are taken from Statsbomb open data via the simulator’s import feature.