Methodology
How we put together G+A Lab’s numbers. Some come from our own calculations; others come from public sources we cite. Here’s what comes from where and how each figure is calculated.
What we do ourselves
Our own xG: our expected goals model, trained and validated by us. It appears as “xG (G+A Lab)” and is not from any provider.
Messi vs Ronaldo, match by match: we reconstructed and reconciled both complete careers, with the source and rule for every figure.
Player identities: we link each player across sources using statistical evidence, season by season, never by name alone.
Career totals, per 90 rates, coverage and leaders: we calculate them from each season’s data using the rules below.
Our xG
xG is the probability that a shot will result in a goal. Our model considers where the shot was taken (distance and angle to goal), whether it was a header or a direct free kick, and whether it came from a set piece. Penalties are assigned a value of 0.76, the actual conversion rate.
We trained it on the 65,822 shots in StatsBomb Open Data for men’s football, using a decision tree method. We tested it on 533,963 shots from Understat in the five major leagues since 2014/15, which the model had never seen.
Result: by player and season, our figures are very close to Understat’s xG (correlation 0.98), and the total is 3 % below the actual number of goals. Since the model does not know where the defenders or goalkeeper were, it is a little less accurate at distinguishing an easy shot from a difficult one. As a result, great finishers tend to outperform it by a slightly larger margin.
We also have a version that includes the positions of defenders and the goalkeeper. It can only be used where those data are available (StatsBomb Open Data matches). For complete careers, we use the version above, which is the same for every player.
What comes from other sources
The advanced season-by-season metrics labeled “(FBref)” (FBref xG and xA, progressive passes, shot-creating actions, take-ons and defensive metrics) come from FBref’s public archive, which is based on Opta. Before 2009/10, they come from FBref’s historical archive, which contains basic metrics.
Shots with location data come from Understat and ESPN. Lineups, minutes and match-by-match goals come from ESPN (Opta), StatsBomb Open Data, Wikipedia, RSSSF and worldfootball.net. Titles come from official and club sources. We are not affiliated with any provider.
Per 90, careers and coverage
Per 90 = metric total ÷ minutes played × 90, using only the minutes from seasons in which the metric is available. Career figures combine seasons: if the metric covers less than 90 % of the minutes in the period, we do not show the value.
For percentages (shot accuracy, successful take-ons, saves, etc.), we add successful actions and attempts separately, and require a minimum number of attempts so small samples are not overvalued.
Matching players across sources
Each source has its own player ID. To link a player in Understat to one in our database, we compare goals, non-penalty goals and minutes season by season, and require the surname to match.
We only link players when the match is unique and consistent across seasons: currently 8,434 players, covering 96.7 % of shots. Uncertain matches are not linked; they remain pending review.
Messi vs Ronaldo
Every match in both careers has goals, assists, minutes and goal type, each with its source. When two sources disagree, we apply written rules; in rare cases, the play described by Opta takes precedence.
Discrepancies that are still unresolved are shown in the section itself, along with the value we publish in the meantime.
Missing data
If a figure is unavailable, we leave it blank: we never turn it into zero or estimate it. That is why some metrics are only available from certain seasons onward, which we indicate in each chart.
The calculations can be reproduced using the project’s scripts and technical documentation (xG models, reconciliation and coverage).