AI & ML 10 min read

Expected Goals (xG) & Machine Learning: How Our AI Predicts Markets

How our ML model calculates xG from shot data, feeds it into Poisson models, and generates probabilities for 1X2, Over/Under, Correct Score and more.

Behind every ProSoccer probability — whether it's "Over 2.5: 64%" or "Home Win: 47%" — is a two-stage pipeline: Expected Goals (xG) estimated by our machine learning model, followed by Poisson distribution to translate those xG values into full market probabilities. Here's exactly how it works.

What Is xG — and How We Define It Differently

Most xG models assign a probability to each individual shot based on its location and type. Our approach is different. Instead of asking "how likely is this specific shot to go in?", we ask a broader question:

When a team with similar attacking profile, form, and home/away record faces a team with similar defensive profile — how many goals do teams like these typically score in matches like this one?

This is a situational, team-level xG model. We don't evaluate individual shot quality. Instead, our ML model looks at thousands of historical matchups between similarly profiled teams and uses the observed goal output as the basis for the expected goals figure. The result is a pre-match xG estimate for each team that reflects the full context of the fixture — not just shot locations.

What the ML Model Looks At

For each fixture, our model takes in features describing both teams' recent history and context:

  • Goals scored and conceded — rolling averages over the last 5, 10, and 20 matches, weighted by recency
  • Home vs away split — teams perform significantly differently at home vs on the road; the model treats these separately
  • Opponent quality — a goal against Manchester City carries more weight than one against a relegation side
  • Form momentum — recent results trend (winning streak, collapsing run) beyond just averages
  • League and competition context — goal rates differ meaningfully across Premier League, La Liga, Bundesliga etc.
  • Head-to-head patterns — some tactical matchups consistently suppress or inflate scoring regardless of form

The model is trained on hundreds of thousands of historical fixtures across top European leagues. It learns which combinations of team profiles produce high-scoring or low-scoring matches, and outputs a pre-match xG for each team.

A Concrete Example: How xG Is Derived

Suppose Brighton (home) vs Crystal Palace (away). Our model identifies historical fixtures where:

  • The home team scores 1.8–2.2 goals per game at home on average
  • The away team concedes 1.3–1.7 goals per game on the road
  • The away team scores 0.8–1.1 goals per game away from home
  • The home team concedes 1.0–1.4 goals per game at home

From the pool of thousands of similar historical fixtures, the observed average goals for home teams in these situations was 1.72 goals, and for away teams 0.95 goals. These become our xG values: λhome = 1.72, λaway = 0.95.

From xG to Market Probabilities: The Full Pipeline

1
ML model generates xG estimates
Based on both teams' profiles vs similar historical matchups: e.g., Home xG = 1.72, Away xG = 0.95
2
Poisson distribution applied
λhome = 1.72, λaway = 0.95 fed into Poisson to generate a full scoreline probability matrix (0–0 through 5–5)
3
Market probabilities derived
1X2, BTTS, Over/Under (1.5, 2.5, 3.5, 4.5), Correct Score, Double Chance, HT/FT — all calculated from the same matrix
4
Live adjustment in-play
During the match, actual in-game data and our Pressure Index update λ in real time, shifting all probabilities dynamically as the match evolves

Worked Example: Brighton vs Crystal Palace

Model output: Brighton xG = 1.72, Palace xG = 0.95

MarketProbabilityFair Odds
Brighton Win56%1.79
Draw23%4.35
Crystal Palace Win21%4.76
Over 2.5 Goals59%1.69
BTTS Yes47%2.13
Correct: 2–110.6%9.43
Correct: 1–010.1%9.90
Correct: 2–09.3%10.75

Why This Approach Is More Robust

Shot-based xG models are excellent for post-match analysis — they tell you whether a team deserved to win based on what happened during the game. But for pre-match prediction, you don't yet have shot data. You need to forecast how the match will play out.

By grounding our xG in what actually happens when similar teams meet in similar situations, we avoid the noise of individual shot randomness and instead capture the structural reality of the matchup. A team that consistently creates many low-quality chances will have a lower xG forecast than a team that creates fewer but higher-danger opportunities — because historically, teams like the latter outscore teams like the former.

How Live xG Updates Change the Picture

Once the match kicks off, our model shifts to in-play mode. Suppose it's minute 55, still 0–0. Brighton are dominating — our Pressure Index shows 78/100 in their favour. We update λ to reflect the remaining 35 minutes, weighting the live dominance signal:

  • Brighton's remaining expected goals increases — they're creating and pressing
  • Palace's draw probability falls — they're defending without threatening
  • Over 2.5 drops slightly (less time), but Brighton Win surges past 70%

This real-time recalculation is visible on our live match pages — every market probability updates continuously as the match evolves.

See live xG and market probabilities updating in real time →

Live Scores & xG Dashboard
HubTodayLiveCorrect ScoreAI SignalsPlayer props