World Cup, 104 matches, and roughly as many assured predictions as there are followers. Constructing a mannequin that says “Group X wins, likelihood p” is straightforward — a day’s work with public knowledge and a Poisson distribution. The lure is believing the quantity. A single mannequin arms you a single reply and no sense of how a lot it hinges on the handfuls of selections buried inside it: which ranking system, which purpose distribution, which studying algorithm. Change any considered one of them and the “reply” can transfer by double digits.
So as an alternative of trusting one mannequin, I constructed eleven — one for (nearly) each chapter of a machine-learning textbook — educated or computed all of them on the identical actual match knowledge, ran every via the identical match simulator, and allow them to argue. Three ranking methods (Elo, Colley, PageRank), two purpose fashions (Poisson, Detrimental Binomial), 5 classifiers (logistic regression, KNN, random forest, XGBoost, a neural community), and the betting market as a benchmark. Similar 48 groups, identical knowledge, eleven strategies.
They crown 4 totally different champions — and that disagreement, not the consensus, seems to be probably the most helpful factor a set of fashions can provide you. This text is about the best way to construct it and the best way to learn it. (In case you simply desire a single clear forecast, the Elo-plus-Poisson model is its personal brief article; right here we’re after one thing extra sincere than one quantity.)
The info
All the things is match on 358 actual worldwide matches: each sport from the 2010–2022 World Cups (256 matches) plus the 2020 and 2024 European Championships (102), pulled from the openfootball mission — particularly its worldcup.json and euro.json datasets, that are devoted to the general public area. The classifiers be taught a mapping from match options to outcomes on these video games; the ranking methods are computed instantly from the outcomes graph. The sector is the true, confirmed 2026 draw — 48 groups, 12 teams.
Three options describe every match from the “residence” (first-named, neutral-venue) staff’s perspective: the power hole between the groups, their mixed power, and a knockout flag. The goal is the three-way consequence (win / draw / loss).
One interface, eleven engines
The one method to race totally different mannequin households pretty is to power them via the identical contract: given two groups, return P(win), P(draw), P(loss) plus an anticipated purpose distinction for group-stage tiebreakers. All the things downstream is an identical throughout fashions: the 12 teams, the best-third qualification, and the 32-team knockout. The simulator is even vectorized so that each one 20,000 tournaments per mannequin run as NumPy array operations moderately than Python loops.
def match_probs(mannequin, a, b):
"""Each mannequin implements this -> (p_win, p_draw, p_loss)."""
...
def simulate(mannequin, n_sims=20_000):
# teams -> prime 2 + 8 finest thirds -> 32-team knockout -> champion
...

What differs is how every mannequin fills in match_probs. That’s the place the disagreement is born, so let’s undergo the households.
The ranking fashions: power from outcomes
Elo is the one most individuals have heard of — the chess ranking, tailored for soccer: a self-correcting quantity up to date after every match by R' = R + Ok(S − E), the place S is the precise consequence and the win expectancy is E = 1/(1 + 10^(−Δ/400)) for a ranking hole Δ. To get a match likelihood we run the Elo hole via that logistic curve and cut up off a draw likelihood match individually (extra on that beneath).
Colley scores drop the temporal updating totally and remedy a single linear system. Construct the Colley matrix C and vector b over all matches:
C_ii = 2 + (video games performed by i)
C_ij = -(video games between i and j)
b_i = 1 + (wins_i - losses_i) / 2
then remedy C r = b for the ranking vector r. The +2 on the diagonal is a Laplace-style prior that makes the system strictly diagonally dominant and subsequently at all times solvable — each staff is implicitly seeded at 0.5 earlier than any video games. Colley is elegant exactly as a result of it has no free parameters and no notion of “present kind”: it’s a pure, closed-form abstract of who beat whom.
PageRank treats the season as a directed graph. Each match provides weight to an edge from the loser to the winner (attracts cut up the burden each methods), so pointing at a staff is an endorsement. Normalize every node’s out-edges right into a stochastic transition matrix T, then discover the stationary distribution underneath a damped random stroll:
r = (1 - d)/n + d · Tᵀ r # d = 0.85, solved by energy iteration
A staff scores extremely if sturdy groups “level to” it — i.e., misplaced to it. It’s the identical algorithm Google used to rank internet pages, utilized to soccer outcomes.
Colley and PageRank stay on their very own scales, so I z-score every and map onto an Elo-like scale earlier than operating them via the identical win-expectancy curve. Groups absent from the 358-match graph fall again to the prior. For this reason they’re attention-grabbing: they ignore repute totally and price solely what’s within the knowledge — and on this knowledge window the Netherlands graded out far larger than the market believes.
The purpose fashions: Poisson and Detrimental Binomial
These mannequin scorelines, not outcomes. I match a Poisson GLM with a log hyperlink on the true match targets, stacking every match as two observations (every staff’s targets vs. its signed power hole):
import statsmodels.api as sm
# targets ~ exp(beta0 + beta1 * strength_diff)
match = sm.GLM(targets, sm.add_constant(sdiff), household=sm.households.Poisson()).match()
# -> lambda = exp(0.167 + 0.00164 * strength_diff)
From λ_home, λ_away we get better P(W/D/L) by forming the outer product of the 2 groups’ Poisson purpose distributions and summing the cells the place the house staff scores extra, the identical, or fewer targets than the away staff.
The Detrimental Binomial variant relaxes Poisson’s most restrictive assumption — that the imply equals the variance. Actual purpose knowledge is mildly overdispersed, so NB introduces a dispersion parameter α with variance μ + αμ². Right here the fitted α ≈ 0.008 is tiny (worldwide targets are near equidispersed), so NB barely departs from Poisson — itself a helpful empirical discovering price a sentence in any writeup.
The classifiers: final result from options
5 fashions predict P(W/D/L) instantly from the three options:
- Logistic regression: a multinomial/softmax mannequin, linear within the log-odds. Its inductive bias — that consequence likelihood is a easy, monotone operate of the power hole — occurs to match the issue nearly completely.
- Ok-Nearest Neighbours: no parametric kind in any respect; it predicts a match from the category stability of its 30 nearest historic matchups. With solely three options the curse of dimensionality isn’t a risk, so KNN is surprisingly aggressive.
- Random Forest: bagged choice bushes, every grown on a bootstrap pattern and a random function subset, then averaged — variance discount by ensembling.
- XGBoost: gradient-boosted bushes, match sequentially so every tree corrects the earlier ensemble’s residuals.
- Neural community: a small multilayer perceptron (16→8 hidden items) that learns its personal function interactions.
All 5 expose predict_proba, so that they drop straight into the frequent interface — I simply batch-predict over all 48×48 ordered staff pairs as soon as and cache the likelihood matrices.
The draw downside
One subtlety binds the ranking fashions collectively. Elo, Colley, and PageRank natively give a win expectancy, not a three-way cut up — so the place does P(draw) come from?
I match it from the information as a logistic operate of absolutely the power hole: evenly matched groups draw way more usually than mismatches. That single calibrated curve is shared by all three ranking fashions, which retains the comparability honest.
One match, eleven opinions
Earlier than simulating a complete match, it helps to see the disagreement on the stage of a single sport. Take Spain vs. Morocco — a powerful favourite in opposition to an excellent underdog. Right here is the win / draw / loss likelihood every mannequin assigns to Spain:
| Mannequin | Spain win | Draw | Morocco win |
|---|---|---|---|
| PageRank (Ch 8) | 69% | 24% | 7% |
| Poisson (Ch 4) | 63% | 22% | 15% |
| Detrimental Binomial (Ch 4) | 62% | 22% | 15% |
| Logistic (Ch 5) | 61% | 24% | 15% |
| Elo (Ch 8) | 61% | 26% | 13% |
| Colley (Ch 8) | 57% | 26% | 17% |
| Neural internet (Ch 7) | 56% | 20% | 24% |
| KNN (Ch 4/5) | 47% | 27% | 27% |
| Random Forest (Ch 6) | 40% | 39% | 22% |
| XGBoost (Ch 6) | 25% | 64% | 11% |
Desk: Spain vs Morocco modeled outcomes. Numbers calculated by creator
Spain’s win likelihood runs from 69% (PageRank) all the way down to 25% (XGBoost) — and XGBoost truly makes the draw the probably consequence, at 64%. PageRank loves Spain as a result of sturdy groups have misplaced to them within the knowledge; XGBoost, over-flexible on solely 358 matches, smears likelihood onto the draw class — a calibration failure price a complete separate publish.
These aren’t rounding variations — they’re totally different theories of the identical sport. Now multiply that disagreement throughout 64 group matches and a 32-team knockout, 20,000 instances over, and also you get genuinely totally different tournaments.
The consequence: they don’t agree

Learn throughout any row and a staff’s fortunes swing on who’s asking. Spain ranges from a 13% afterthought to a 29% runaway. The underside line — every mannequin’s single probably champion:
| Champion decide | Fashions backing it |
|---|---|
| Spain | Elo, Poisson, Detrimental Binomial, Logistic, KNN, PageRank, and the market |
| Argentina | Random Forest, XGBoost |
| France | Neural community |
| Netherlands | Colley |
Desk 2: Completely different fashions, totally different champions. Created by creator
Eleven fashions, 4 champions.
Why they disagree — the three actual causes
There are three distinct causes for this disagreement, and none of them have a lot to do with soccer as such:
- Info supply. Elo and the market’s implied odds encode present world kind; Colley and PageRank encode solely the ends in the dataset. When a staff’s current outcomes outrun its repute (the Netherlands right here), the graph strategies diverge sharply from the form-based ones. Neither is unsuitable — they reply totally different questions.
- Objectives vs. outcomes. The Poisson household fashions scorelines and derives the winner; the classifiers mannequin the consequence instantly. In tight matches these two routes assign totally different draw mass and subsequently totally different knockout survival.
- Bias vs. variance. The boosted bushes decide up subtler interactions within the coaching knowledge and tilt towards Argentina; the linear fashions easy these away. On solely 358 matches that flexibility is as prone to be becoming noise as sign — which, it seems, is precisely what the cross-validated scores present: the only classifier matches finest and probably the most versatile ones match worst.
You possibly can see this household construction instantly by correlating every mannequin’s 48-team likelihood vector with each different’s:

Three blocks fall out, and the clustering is just not an accident. The shape-based fashions (Elo, logistic regression, Poisson, Detrimental Binomial) agree nearly completely, as a result of all of them run off the identical power prior via totally different hyperlink features.
The machine-learning classifiers (KNN, random forest, XGBoost, the neural internet) kind a second block. And Colley and PageRank, the one fashions that ignore the prior and browse pure outcomes, sit other than everybody else (correlations down round 0.72–0.83). The chart is basically a map of which fashions share data — which is the sincere method to learn any ensemble.
The consensus — averaging the ten non-market fashions — nonetheless reads sensibly:

Spain has ~20% win likelihood, France and Argentina ~14%, then the Netherlands and England. Averaging fashions is itself a technique: a easy ensemble normally beats most of its members as a result of uncorrelated errors partially cancel.
However discover the gray bars — the min-to-max vary throughout fashions. They’re huge. Anybody who arms you a single quantity for “who wins the World Cup” is hiding these bars, and the bars are the sincere half.
What this could and might’t let you know
At this stage, a couple of caveats are apt, the primary of which is crucial for studying the settlement chart accurately. The purpose fashions and the classifiers all take the identical Elo-style power prior as their main enter, so a big a part of their settlement is mechanical, not impartial corroboration — solely Colley and PageRank derive power independently from the outcomes graph, which is precisely why they sit aside. Thus, deal with the consensus as “the place these strategies, given this knowledge, are likely to land,” not as eleven impartial witnesses.
Second, the coaching set is 358 matches, closely weighted towards World Cups and European Championships; non-European kind is under-sampled, and 6 2026 qualifiers with no match historical past fall again to the prior. Third, matches are simulated at a impartial venue with a seeded bracket moderately than FIFA’s actual Spherical-of-32 map. None of this sinks the train — however a mannequin suite is just as impartial as its inputs, and being express about that’s the distinction between an precise ensemble and an echo chamber.
Past the World Cup
The setup opens two threads price pulling by yourself knowledge. First, the market’s implied odds are simply one other column in that heatmap. So the pure subsequent step is to line the mannequin consensus up in opposition to the market’s de-vigged chances and ask the place, and why, they disagree: studying odds as chances, eradicating the margin, and asking how environment friendly the market actually is as a forecaster.
Second, you may assume the extra versatile fashions, resembling XGBoost, and the neural internet, match the historic knowledge finest. The cross-validated scores say the alternative, and the reason being that we’re overfitting on a small and low-dimensional dataset. That’s a lesson that travels far past soccer.
A fuller modeling suite, knowledge, and charts are on GitHub. Each mannequin is constructed and defined within the upcoming ebook I co-authored, titled Soccer Analytics with Machine Studying (O’Reilly, 2026). (The e-book will probably be accessible from round June 25; the printed ebook will probably be accessible by about mid-June, from in every single place you get your books.)





