rating difference 0 -> favourite expected to score 0.50
rating difference 50 -> favourite expected to score 0.57
rating difference 100 -> favourite expected to score 0.64
rating difference 200 -> favourite expected to score 0.76
rating difference 400 -> favourite expected to score 0.91
Can Elo ratings predict World Cup match winners?

Elo rates chess players. The same idea applies to football, because the outcomes are the same: win, draw, loss. I thought it would be funny to apply the same methodology used for chess ratings to the World Cup, and to see how well it predicts.
I compare the predictions with the results at the 2014, 2018, 2022 and 2026 World Cups. At each of them, the favorites’ average expected score is within 0.04 of their average actual score. Picking the favorite as the winner was right in 67 of the 104 matches of 2026, and 24 of the 37 misses were draws.
I have attached the code in the appendix.
The chess method on football
Every team starts on 1500, and two formulas turn each result into a new rating.
First, the rating difference gives the favorite’s expected score. The expected score is, as it says, an average of what can be expected, so a favorite still loses or draws some matches. A draw counts as half a win, so two equal teams each have an expected score of 0.5. The expected score is
\[E = \frac{1}{1 + 10^{-\Delta R/400}},\]
where \(\Delta R\) is the favorite’s rating minus the opponent’s, with 65 points added for the home team unless the ground is neutral. Spain on 2000 against Costa Rica on 1600 on neutral ground gives Spain an expected score of 0.91.
Second, the ratings update after the match:
\[R_{\text{new}} = R_{\text{old}} + K\,G\,(S - E),\]
where \(S\) is the actual score, \(K\) is the weight of the match, 55 for a World Cup and 20 for a friendly, and \(G\) grows with the goal margin. If Spain win by one goal, they gain about 5 points, and if they lose by one goal, they lose about 50. When a team has a high rating like Spain, it is much more likely to win. So if they lose, it is quite a surprise, and that is why they lose that much.
A 100-point rating difference gives the favorite an expected score of 0.64. So, the lower-rated team is still expected to take 0.36 of the score.
Load the data
I get the data from someone else, every men’s international from martj42, and I have not really checked whether it is true, but I am assuming that it is.
Matches: 50,093 | through: 2026-11-17
| date | home_team | away_team | home_score | away_score | tournament | |
|---|---|---|---|---|---|---|
| 50063 | 2026-11-17 | Denmark | Norway | 2 | 3 | UEFA Nations League |
| 50065 | 2026-11-17 | Ukraine | Georgia | 1 | 0 | UEFA Nations League |
| 50092 | 2026-11-17 | Iraq | Iran | 1 | 1 | Basra International Tournament |
Build the model
Each rating difference is saved before the match updates the ratings.
Trained on 50,093 matches and 337 teams. Top of the table:
Spain 2317.0
England 2257.0
Argentina 2226.0
France 2135.0
Portugal 2071.0
Belgium 2071.0
Colombia 2065.0
Brazil 2063.0
dtype: float64
How I grade it
I report three rates,
\[\frac{W}{N}, \qquad \frac{W}{N - D}, \qquad \frac{W + 0.5\,D}{N},\]
where \(N\) counts the matches, \(W\) the favorite’s wins and \(D\) its draws, so the three are the win rate, the win rate in matches with a winner, and the average score.
The 2026 World Cup
I pick the favorite in every 2026 match.
Played matches: 104
Straight winner pick: 67/104 = 64% (a draw counts as a miss)
The 37 misses: 24 draws, 13 lost by the favourite
On decisive matches: 67/80 = 84%
Expected score 0.72 vs actual 0.76 (close means the two agree on average)
In the 80 matches with a winner, the favorite won 67. On average, the favorites were expected to score 0.72 and scored 0.76.
Past World Cups
Same for the three earlier World Cups.
| World Cup | matches | winner, decisive | expected score | actual score | |
|---|---|---|---|---|---|
| 0 | 2014 | 64 | 37/51 = 73% | 0.67 | 0.68 |
| 1 | 2018 | 64 | 36/51 = 71% | 0.68 | 0.66 |
| 2 | 2022 | 64 | 35/49 = 71% | 0.69 | 0.66 |
| 3 | 2026 | 104 | 67/80 = 84% | 0.72 | 0.76 |
There, the two averages differ by at most 0.03.
One last check, at every level
Errors in opposite directions can cancel, so I also sort the games into five groups by expected score.

Four of the five are close to the dashed line, and the top group, below the line, has only 11 games.
Limitations
I cannot compare the expected score with a bookmaker’s odds, because the odds give separate probabilities of a win, a draw, and a loss.
Conclusion
So the conclusion is that I think the rating system works quite well, because in the end, when the structure is similar between fields, the methodology can work quite well.
References
Elo, A. E. (1978). The rating of chessplayers, past and present. Arco Publishing.
Jürisoo, M. (n.d.). international_results [Data set]. GitHub. https://github.com/martj42/international_results
Disclaimer: This post is a teaching example. Not betting advice.
Appendix: the code
def expected_score(rating_difference):
"""The favourite's expected score, from the rating difference in points.
A difference of 0 gives 0.50, an even game. A difference of 400 gives 0.91, almost a full win.
"""
return 1 / (1 + 10 ** (-rating_difference / 400))
# The favourite's expected score at a few rating differences.
for rating_difference in (0, 50, 100, 200, 400):
expected = expected_score(rating_difference)
print(f"rating difference {rating_difference:>4} -> favourite expected to score {expected:.2f}")import io
import requests
import pandas as pd
url = "https://raw.githubusercontent.com/martj42/international_results/master/results.csv"
# requests brings the file back as one long piece of text. io.StringIO wraps that text so
# that read_csv can treat it as a file, so nothing has to be written to disk first.
response = requests.get(url, timeout=120)
all_matches = pd.read_csv(io.StringIO(response.text)) # the full archive
# Drop every row without a final score, because a match that has not been played can
# teach the ratings nothing.
played_matches = all_matches.dropna(subset=["home_score", "away_score"])
games = played_matches.sort_values("date") # oldest first, for the pass below
print("Matches:", f"{len(games):,}", " | through:", games["date"].max())
games.tail(3)[["date", "home_team", "away_team", "home_score", "away_score", "tournament"]]START_RATING = 1500.0 # what a team is worth before it has played a match
HOME_ADVANTAGE = 65 # what playing at home is worth, in rating points
WORLD_CUP_YEARS = ("2014", "2018", "2022", "2026")
def match_weight(tournament):
"""K for one match, taken from the name of its tournament.
'FIFA World Cup' -> 55, 'Friendly' -> 20. The bigger the occasion, the more a single
result is allowed to move a rating.
"""
name = tournament.lower() # lower case first, so the checks ignore capitals
if "friendly" in name:
return 20
if "qualification" in name:
return 40
if "world cup" in name or "euro" in name:
return 55
continental_cups = ["copa", "african", "asian cup", "gold cup", "nations league"]
for cup in continental_cups:
if cup in name:
return 50
return 30
def margin_multiplier(goal_margin):
"""How much a wide win counts, as a multiplier on K.
A draw or a one-goal win counts 1, two goals count 1.5, and above two goals the
multiplier increases more slowly than the goal margin does.
"""
if goal_margin <= 1:
return 1
if goal_margin == 2:
return 1.5
return (11 + goal_margin) / 8
ratings = {} # team name -> current rating, filled in as teams appear
world_cup_matches = [] # (year, rating_difference, score) for the test below
# to_dict("records") turns the table into a list holding one dictionary per row, so the
# loop reads plain Python dictionaries instead of pandas rows.
for match in games.to_dict("records"):
home_team = match["home_team"]
away_team = match["away_team"]
# .get returns its second argument when the team is not in the dictionary yet, which
# is how a team that has never played enters on 1500.
home_rating = ratings.get(home_team, START_RATING)
away_rating = ratings.get(away_team, START_RATING)
# str() and upper() read the flag the same way whether the file gives a true or false
# value or the words themselves.
neutral = str(match["neutral"]).upper() == "TRUE"
if neutral:
home_advantage = 0 # neutral ground, so no home advantage
else:
home_advantage = HOME_ADVANTAGE
rating_difference = home_rating - away_rating + home_advantage # the rating difference the match starts from
home_expected = expected_score(rating_difference)
home_goals = int(match["home_score"])
away_goals = int(match["away_score"])
if home_goals > away_goals:
score = 1.0 # the chess scale: win, draw, loss
elif home_goals == away_goals:
score = 0.5
else:
score = 0.0
# Store the rating difference BEFORE the update, so a prediction never uses its own result.
year = match["date"][:4]
if match["tournament"] == "FIFA World Cup" and year in WORLD_CUP_YEARS:
world_cup_matches.append((year, rating_difference, score))
margin = abs(home_goals - away_goals)
k_factor = match_weight(match["tournament"]) # K for this occasion
move = k_factor * margin_multiplier(margin) * (score - home_expected)
ratings[home_team] = home_rating + move # one side gains what the other loses
ratings[away_team] = away_rating - move
print(f"Trained on {len(games):,} matches and {len(ratings):,} teams. Top of the table:")
rating_table = pd.Series(ratings) # keys become labels, values a column
best_first = rating_table.sort_values(ascending=False)
strongest_teams = best_first.head(8)
strongest_teams.round(0) # whole rating points are enoughdef grade(matches):
"""Score the model on a list of (rating_difference, score) pairs, both read from the home side.
Returns the counts and the two averages the post reports.
"""
favourite_wins = 0
draws = 0
upsets = 0
expected_total = 0.0
actual_total = 0.0
for rating_difference, score in matches:
home_expected = expected_score(rating_difference)
home_is_favourite = home_expected >= 0.5
# Every number here is written from the favourite's side. When the away team is
# the higher rated one, both of its numbers are one minus the home team's.
if home_is_favourite:
favourite_expected = home_expected
favourite_actual = score
else:
favourite_expected = 1 - home_expected
favourite_actual = 1 - score
expected_total += favourite_expected
actual_total += favourite_actual
if score == 0.5:
draws += 1
elif favourite_actual == 1.0:
favourite_wins += 1
else:
upsets += 1
number_of_matches = len(matches)
return {"matches": number_of_matches,
"favourite_wins": favourite_wins,
"draws": draws,
"upsets": upsets,
"expected": expected_total / number_of_matches,
"actual": actual_total / number_of_matches}def matches_in_year(saved_matches, year_wanted):
"""The (rating_difference, score) pairs from one World Cup.
Each saved tuple is (year, rating_difference, score), and grade needs only the last two of the three.
"""
selected = []
for match_year, match_difference, match_score in saved_matches:
if match_year == year_wanted:
selected.append((match_difference, match_score))
return selected
matches_2026 = matches_in_year(world_cup_matches, "2026")
summary_2026 = grade(matches_2026)
played_2026 = summary_2026["matches"]
wins_2026 = summary_2026["favourite_wins"]
misses_2026 = played_2026 - wins_2026
decisive = wins_2026 + summary_2026["upsets"] # the decisive matches, which ended with a winner
print(f"Played matches: {played_2026}")
print(f"Straight winner pick: {wins_2026}/{played_2026} = {wins_2026 / played_2026:.0%}"
f" (a draw counts as a miss)")
print(f"The {misses_2026} misses: {summary_2026['draws']} draws, "
f"{summary_2026['upsets']} lost by the favourite")
print(f"On decisive matches: {wins_2026}/{decisive} = {wins_2026 / decisive:.0%}")
print(f"Expected score {summary_2026['expected']:.2f} vs actual {summary_2026['actual']:.2f}"
f" (close means the two agree on average)")# The same grading as above, once per tournament, collected as one row each.
table_rows = []
for world_cup_year in WORLD_CUP_YEARS:
tournament_matches = matches_in_year(world_cup_matches, world_cup_year)
summary = grade(tournament_matches)
wins = summary["favourite_wins"]
decisive = wins + summary["upsets"]
winner_record = f"{wins}/{decisive} = {wins / decisive:.0%}"
table_rows.append({"World Cup": world_cup_year,
"matches": summary["matches"],
"winner, decisive": winner_record,
"expected score": round(summary["expected"], 2),
"actual score": round(summary["actual"], 2)})
pd.DataFrame(table_rows) # a list of dictionaries becomes a table, one row per entry%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
# One pair per World Cup match, read from the favourite's side: what the model expected
# of it, and what it scored. The chart pools all four tournaments, so the year
# each match belongs to is unpacked but not used.
expected_per_match = []
actual_per_match = []
for match_year, match_difference, match_score in world_cup_matches:
home_expected_score = expected_score(match_difference)
if home_expected_score >= 0.5: # the home team is the favourite, once home advantage is added
expected_per_match.append(home_expected_score)
actual_per_match.append(match_score)
else:
expected_per_match.append(1 - home_expected_score)
actual_per_match.append(1 - match_score)
# Both lists become numpy arrays, because an array can be picked over with a list of True
# and False, which is how one group of matches is selected below.
favourite_expected = np.array(expected_per_match)
favourite_actual = np.array(actual_per_match)
group_edges = np.linspace(0.5, 1.0, 6) # five groups: 0.5 to 0.6, up to 0.9 to 1.0
# digitize says which group each value is in, counting from 1, so subtracting 1 counts
# them from 0. clip folds anything outside the edges into the first or the last group.
group_index = np.clip(np.digitize(favourite_expected, group_edges) - 1, 0, 4)
group_expected = []
group_actual = []
group_sizes = []
for group_number in range(5):
in_group = group_index == group_number # True or False for every match
games_in_group = int(in_group.sum()) # True counts as 1, so the sum is a count
if games_in_group >= 10: # a thinner group averages too roughly
group_expected.append(favourite_expected[in_group].mean())
group_actual.append(favourite_actual[in_group].mean())
group_sizes.append(games_in_group)
RED, TEAL, ORANGE, GREY = "#C0392B", "#17868A", "#D2822B", "#888888"
# The site's chart colours: a cream background, a light grid and a pale frame, so every chart
# on the site has the same look.
BG, INK, GRID, SPINE, AXIS_TEXT = "#FCEFE3", "#1f1f1f", "#EADCCC", "#D5C6B4", "#4a4a4a"
def style_chart(figure, axis):
"""Give a finished chart the site's cream background, light grid and pale frame."""
figure.patch.set_facecolor(BG)
axis.set_facecolor(BG)
axis.grid(True, axis="y", color=GRID, lw=1.0)
axis.set_axisbelow(True)
for side in ("top", "right"):
axis.spines[side].set_visible(False)
for side in ("left", "bottom"):
axis.spines[side].set_color(SPINE)
axis.tick_params(axis="both", length=0, colors=INK, pad=6)
axis.xaxis.label.set_color(AXIS_TEXT)
axis.yaxis.label.set_color(AXIS_TEXT)
axis.title.set_color(INK)
# Each legend entry in the colour of what it labels: a line's colour or a bar's fill.
# get_legend() returns None when the chart has no legend.
legend = axis.get_legend()
if legend is not None:
for text, handle in zip(legend.get_texts(), legend.legend_handles):
if hasattr(handle, "get_color"):
text.set_color(handle.get_color())
else:
text.set_color(handle.get_facecolor())
plt.figure(figsize=(7, 7))
plt.plot([0.5, 1], [0.5, 1], "--", color=GREY, label="perfect match")
plt.plot(group_expected, group_actual, "o-", color=TEAL, lw=2, label="Elo")
for label_x, label_y, label_games in zip(group_expected, group_actual, group_sizes):
plt.annotate(f"{label_games} games", (label_x, label_y), textcoords="offset points",
xytext=(8, -4), fontsize=9, color=GREY)
plt.xlabel("Average expected score of the favourite")
plt.ylabel("Average actual score of the favourite")
plt.title(f"Expected vs actual, four World Cups ({len(world_cup_matches)} games)")
plt.legend(frameon=False)
style_chart(plt.gcf(), plt.gca()) # gcf and gca are the current figure and axis
plt.tight_layout()
plt.savefig("calibration.png", dpi=120, bbox_inches="tight", facecolor=BG)
plt.show()