Guide

Does soccer xG add information beyond the closing line?

Short answer: in a 97-match Premier League sample, a team rating built from location-only xG added no detectable information beyond the closing three-way line. Adding it to the market's log-odds gave a likelihood-ratio p-value of 0.95 and a slightly worse out-of-sample log loss. The sample is small, so this is a cautious null, not a verdict.

This is a measurement study. It makes no picks and gives no wagering advice.

What the data provides

StrikerAPI's xg is our location model. Each shot is valued at the league's goal rate for shots from the same distance and angle, header or not, and penalties at the league's conversion rate. It does not see defenders, the pass that set the shot up or the goalkeeper. That makes it a clean, reproducible measure of where a team shoots from, and a limited measure of chance quality.

Three tools carry the study:

  • get_team_stats (5 credits) returns each club's per-match averages for and against, including xg_for and xg_against, for a season. For 2026, the 2026-27 season, it returned 20 clubs and, for example, 1.96 xG for per match for Brighton.
  • get_game (5 credits) returns one match's box scores for both teams, with a per-team xg.
  • get_game_probabilities (5 credits) returns the market's average implied probability and fair probability for home, draw and away. The default closing snapshot is each book's last pre-match price so far. In the top leagues that is usually about 10 minutes before kickoff.

A leak to avoid

get_team_stats is the obvious source for a team's xG rating, and it is a trap for forecasting. The season average includes the match you want to predict, so the rating has seen the result. For a real test, build each team's rating from earlier matches only. That needs per-match xG from get_game, and a rolling average computed in start-time order.

The test

The sample is every completed Premier League match of 2026-27 up to December 5, 2026 for which both teams had at least four earlier matches. That gave 97 matches from September 18 to December 5. Of 139 finished matches, two from December 6 had no xG yet, and the early rounds were needed to build ratings. Home wins were 47.4 percent of the 97, draws 26.8 percent and away wins 25.8 percent.

For each match the feature is the difference between the two teams' average xG for minus xG against, using earlier matches only. The market input is the closing fair probabilities, renormalised to sum to 1, turned into two log-odds: home versus draw and away versus draw.

import json, os, urllib.request, numpy as np
from collections import defaultdict

KEY = os.environ["STRIKERAPI_API_KEY"]
def post(tool, body):
    req = urllib.request.Request("https://mcp.strikerapi.com/v1/" + tool, data=json.dumps(body).encode(),
          headers={"Content-Type": "application/json", "x-api-key": KEY})
    with urllib.request.urlopen(req, timeout=60) as r:
        return json.load(r)["data"]

games = post("list_games", {"season": 2026, "status": "final", "limit": 200})["games"]
games.sort(key=lambda g: g["starts_at"])

hist, rows = defaultdict(list), []
for g in games:
    box = {t["abbrev"]: t for t in post("get_game", {"game_id": g["game_id"]})["team_stats"]}
    h, a = g["home"]["abbrev"], g["away"]["abbrev"]
    if box[h]["xg"] is None or box[a]["xg"] is None:
        continue
    if len(hist[h]) >= 4 and len(hist[a]) >= 4:          # ratings from earlier matches only
        rate = lambda t: np.mean([f - c for f, c in hist[t]])
        ml = post("get_game_probabilities", {"game_id": g["game_id"]})["moneyline"]
        p = np.array([ml["home"]["fair_prob"], ml["draw"]["fair_prob"], ml["away"]["fair_prob"]])
        rows.append((rate(h) - rate(a), p / p.sum(), {"H": 0, "D": 1, "A": 2}[g["result"]]))
    hist[h].append((box[h]["xg"], box[a]["xg"]))         # update after the match is used
    hist[a].append((box[a]["xg"], box[h]["xg"]))

The comparison uses multinomial logistic regression with a leave-one-out score, so no match is scored by a model that saw it.

from sklearn.linear_model import LogisticRegression

xd = np.array([r[0] for r in rows]); P = np.array([r[1] for r in rows]); y = np.array([r[2] for r in rows])
L = np.log(P); M = np.c_[L[:, 0] - L[:, 1], L[:, 2] - L[:, 1]]

def loo_log_loss(X):
    out = []
    for i in range(len(y)):
        keep = np.arange(len(y)) != i
        m = LogisticRegression(C=1e6, max_iter=5000).fit(X[keep], y[keep])
        out.append(-np.log(m.predict_proba(X[i:i + 1])[0, y[i]]))
    return np.array(out)

print("market, as priced", -np.log(P[np.arange(len(y)), y]).mean())
print("xG only          ", loo_log_loss(xd[:, None]).mean())
print("market, refit    ", loo_log_loss(M).mean())
print("market + xG      ", loo_log_loss(np.c_[M, xd]).mean())

What came out

ForecastLog loss
Constant outcome rates (47 / 27 / 26)1.0562
Closing market, fair, as priced1.0305
xG difference alone (leave-one-out)1.0719
Market log-odds refit (leave-one-out)1.0690
Market plus xG difference (leave-one-out)1.0956

The market beat the constant baseline by 0.026. The xG rating alone did worse than the constant baseline, 1.0719 against 1.0562, though the 95 percent bootstrap interval on its gap to the market, -0.026 to 0.109, spans zero. That is what a noisy rating built from four to 15 matches per team would show.

The decisive row is the last one. Adding xG to the market's two log-odds raised leave-one-out log loss from 1.0690 to 1.0956, an increase of 0.027 with an interval of 0.013 to 0.041. A full-sample likelihood-ratio test of the added feature gave a statistic of 0.10 on two degrees of freedom, p = 0.95. The coefficients on xG for home, draw and away were 0.09, -0.03 and -0.06, all small. Refitting the market's own log-odds also scored worse than using the prices as they are, 1.0690 against 1.0305, which tells you how much a 97-match sample punishes any extra fitted parameter.

The correlation between the xG difference and the market's home-minus-away log-odds was 0.71. A rating that correlated that strongly with the market already shared most of what the market knew. What is left over is too small to detect at this size.

How to read it

Read the table as three claims and no more.

  1. The closing market is a better forecast than rates alone, by a modest margin, in a sample of this size.
  2. A location-only xG rating carries real overlap with the market, since the two correlate at 0.71.
  3. After the market is accounted for, this xG feature showed no gain. The test was underpowered for a small one.

Do not read it as "xG is useless". With 97 matches, an effect of a few thousandths of log loss would be invisible, and a better rating might show one. The test shows that this rating, built this way, gave a model nothing to add to the market in this window.

Ideas for a fairer test

  • More matches. Several seasons across the top five leagues give thousands of matches. The located-shot coverage starts in 2012-13 for those leagues.
  • A better rating. Weight recent matches, adjust for opponent strength, and carry over last season with shrinkage in place of a four-match cutoff.
  • Home and away split. A single net xG per team ignores venue.
  • Opening as well as closing. snapshot_type opening gives each book's first price, which may leave more for a model to add than the close does.
  • Lineups. get_lineups and get_availability hold information on who played that a team-level average cannot.

Limits

  • 97 matches, one league, 11 weeks. Too few to detect small effects or to generalize.
  • Early-season ratings. Four to 15 earlier matches per team make the xG average noisy, and nothing carries over from last season.
  • xG ignores defenders and the keeper. It cannot separate a strong finisher's output from luck, so it understates quality in some teams.
  • Probabilities rounded to three decimals. Fine for this test, but visible if you test tiny differences.
  • Not advice. A comparison of forecasts says nothing about what to do with any price.

Get a free key Or download whole seasons as Parquet

Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.