← Back to projects
Data science

2026 World Cup prediction model

Elo rating for relative strength, Poisson goal model and full bracket Monte Carlo simulation. Assigns each team its probability of reaching each stage and is compared against the real tournament, with a strict time cutoff.

49,520
Historical matches
3,000
Tournament simulations
2/2
Correct semifinals

The Problem

Predicting a whole tournament before it starts is not about picking a favorite: it is about assigning a probability to each match and, chaining matches, a probability that each team reaches each stage and wins the title.

  • • Estimate each team's relative strength from its history (Elo rating)
  • • Turn that strength into the probability of each scoreline (Poisson goal model)
  • • Simulate the full bracket with goal-difference tiebreaks and penalty shootouts
  • • Validate against the real tournament without using information after the start (strict time cutoff)

My Process

1. Data and integration

Integrating the international match history and penalty shootouts.

  • ✓ 49,520 international matches since 1872, 100% completeness on key variables
  • ✓ Elo rating computed walk-forward, match by match, never using future information
  • ✓ Verification of goal dispersion (Poisson fit) and the H/D/A target

2. Match modeling

From strength difference to the probability of each scoreline.

  • ✓ Poisson regression on elo_diff and home advantage
  • ✓ Elo calibration validated on thousands of matches (probability groups vs. observed rates)
  • ✓ Comparison against a logistic baseline: nearly tied log-loss (0.8412 vs. 0.8363)

3. Tournament simulation

Monte Carlo to go from match prediction to tournament prediction.

  • ✓ 3,000 complete tournaments simulated, sampling each fixture from the goal model
  • ✓ Probability per stage: group, round of 16, quarterfinal, semifinal, final and champion
  • ✓ 95% confidence intervals per team

4. Post-World Cup validation

Comparison against the real result, deliberately separated from training.

  • ✓ 22/32 correct picks in the knockout bracket (68.8%)
  • ✓ 5/12 groups with the exact two qualifiers
  • ✓ Spain champion (1-0 vs. Argentina): the model ranked it 2nd favorite with 16%

The Solution

Match model

Elo provides real signal: the strength difference predicts the H/D/A result above using nothing.

• Elo difference and home advantage are the main features
• Poisson produces a full scoreline distribution, not just who wins

Why keep the Poisson model

The full model nearly ties the baseline in log-loss, but it is kept for a concrete reason.

• The baseline only classifies the result; it cannot generate scorelines
• Without a scoreline distribution you cannot simulate shootouts or group goal difference
• The decision is justified by what it enables next, not by winning the metric

Honest validation

A single observed tournament is a minimal sample; that is why the statistically meaningful calibration relies on thousands of historical matches.

• Strict time cutoff: nothing uses information after June 11, 2026
• The real result is only revealed in the validation section

Results & Impact

0.8412
Full model log-loss
0.8363
Baseline log-loss (honest tie)
22/32
Correct knockout picks
16%
Pre-tournament prob. for Spain (real champion)

Key Learnings

  • ✓ Time cutoff: no prediction uses information after the tournament started; without that rule validation would be meaningless.
  • ✓ Justified complexity: the model nearly ties a much simpler baseline; the complexity is paid for by what it allows to simulate, not by winning the metric.
  • ✓ Minimal sample: a single observed tournament (n=1) limits retrospective conclusions; the real calibration relies on thousands of matches.

Tech Stack

Language and data

• Python 3
• Pandas
• NumPy
• requests

Modeling

• statsmodels (GLM Poisson)
• scipy
• Walk-forward Elo rating
• Monte Carlo (3,000 reps)

Visualization and app

• Plotly
• Multi-page Streamlit
• Jupyter notebooks

Interested in this kind of work?

I have more data analysis cases with models and honest validation. Let's connect.