How our model predicts a football match
In this article, we will learn how the Football Intelligence model looks at two teams, asks a few hundred tiny questions, and gives a chance for a home win, a draw and an away win. Every number here comes from our own code, our trained model and our project reports.
We will cover the following:
- What the model does, in one picture
- The 42 features, and what each family means
- Which features matter most
- What an Elo rating is
- How one small tree makes a decision
- How 504 small trees make one prediction
- How we explain each prediction
- Why the model never picks a draw, and what we did about it
- How good the model is
- Bonus: predicting the score with Dixon-Coles
Let's get started.
The big picture
Let's say Arsenal are playing Chelsea at home. Before the match, a football fan would ask some simple questions. How strong is each team? How have they been playing at home and away? Who usually wins when these two meet?
Our model does exactly this. It just asks the questions with numbers, and it asks a lot of them.
Here, we can see four simple steps. We collect past results. We turn them into 42 numbers for the match. The model turns the 42 numbers into three chances. Then SHAP tells us which numbers pushed the answer up or down.
The 42 features
A feature is one number that describes the match before it is played. For example, "Arsenal's points from their last 5 games" is one feature. It was 15 out of 15 before the Chelsea match.
So, is it 42 features or more? It is exactly 42. The list is pinned in the code (MODEL_FEATURES in ai/training/configuration.py). If one of the 42 is missing, training stops with an error. If a new number sneaks into the data, training also stops, so nothing can leak in by accident.
The 42 features fall into eight families. Most families have one number for the home team and one for the away team.
Elo strength rating
One rating per team that goes up after wins and down after losses. Arsenal 1621, Chelsea 1498.
Long-term home / away record
Home team's win % and points per game in all its past home games; the same for the away team's away games. Arsenal at home: 68% wins, 2.24 points per game.
Goals
Goals scored, conceded and goal difference per game, over the last 5 and last 10 games, for both teams.
Recent form
Wins and points in the last 5 and last 10 games, for both teams.
League table
League position, points and games played this season, for both teams.
Head-to-head
Past meetings between the two clubs: total, wins for each side, and draws. Arsenal v Chelsea: 52 meetings, 18 Arsenal wins, 17 Chelsea wins, 17 draws.
Strength of schedule
The average Elo rating of each team's last 5 and last 10 opponents. Did they beat strong teams or weak ones?
Rest days
Days since each team's last match in the same season. Arsenal 6, Chelsea 7.
2 + 4 + 12 + 8 + 6 + 4 + 4 + 2 = 42.
One golden rule: only the past
Every feature is built only from matches before the one we are predicting. In the code, each rolling number is shifted by one match, so a match can never see its own result. There are tests that check this.
Why does this matter? Suppose we let the model see the final score inside its features. It would look like a genius in testing and be useless in real life. This mistake is called data leakage, and the golden rule prevents it.
Which features matter most?
Now, the next big question is: does the model treat all 42 numbers the same? No. A few numbers do most of the work.
To measure this, we used SHAP (more on SHAP below). For every match, SHAP tells us how much each feature moved the prediction. We averaged this over the 3,504 matches of the 2024/25 and 2025/26 seasons. The chart shows each feature's share of the total.
Now, let's add the features up by family.
Here, we can see three clear lessons:
- The two Elo ratings do more than half the work. One number per team carries 54% of the model's attention.
- Long-term home and away records come next, with 26%. Some teams are much stronger at home than away, and the model uses that.
- Recent form features barely matter on their own (1.1% for all eight). A likely reason is that the Elo rating already moves after every result, so it already contains recent form. The model does not need to count the same thing twice.
Do the other 40 features help at all? Yes. On the first 250 matches of 2026/27, a simple model that uses only the Elo gap got 48.8% right. Our full model (the earlier version, trained to 2021/22) got 52.4%. That is 3.7 points better, and the 95% range (+0.8 to +6.8) stays above zero. So the other features add real information.
What is an Elo rating?
Since Elo does most of the work, let's understand it properly.
Think of a school chess club. Everyone starts with the same score. When you beat a strong player, your score goes up a lot. When you beat a weak player, it goes up only a little, because you were expected to win. Elo works exactly like this.
In our code (ai/feature_engineering/features/elo_rating.py):
- Every team starts at 1500.
- After each match, the rating moves by K = 32 times "what happened minus what was expected". A win counts as 1, a draw as 0.5 and a loss as 0.
- Each league is its own pool, because clubs from different leagues never meet in our data.
- At the start of a new season, a team's rating moves a third of the way back to 1500. A promoted team starts at the average of the previous season's three lowest-rated teams.
A small worked example
Suppose Team A is rated 1600 and Team B is rated 1500. The standard Elo formula says Team A is expected to score 0.64 (a 100-point gap gives 1 / (1 + 10−100/400) ≈ 0.64).
| What happens | Team A's change | Why |
|---|---|---|
| Team A wins | 32 × (1 − 0.64) = +11.5 | Expected, so a small reward |
| Draw | 32 × (0.5 − 0.64) = −4.5 | The stronger team dropped points |
| Team A loses | 32 × (0 − 0.64) = −20.5 | A surprise, so a big penalty |
Team B always moves by the same amount in the other direction.
How one tree decides
We all have played the game of 20 questions. Is it an animal? Yes. Does it fly? No. Each question cuts down the possible answers.
A decision tree is the same game. It asks yes-or-no questions about the numbers, one after another, until it reaches an answer at the bottom (a leaf).
Our trees are tiny: each one asks at most 3 questions (depth 3). And here is the twist: a leaf does not say "home win". It gives a small number, a nudge. A plus nudge makes that outcome a little more likely. A minus nudge makes it a little less likely.
Below is the real first "home win" tree from our served model. Let's follow Arsenal v Chelsea through it.
- Is Arsenal's home win % below 51.9%? It is 68.1%, so no. Go right.
- Is Chelsea's rating below 1506? It is 1498, so yes. Go left.
- Is Arsenal's goal difference per game over the last 10 below +0.56? It is +1.1, so no. Go right.
- We reach the leaf: +0.017. This tree nudges "home win" up a little.
That nudge is very small. One tree on its own knows almost nothing. The power comes from many trees working together.
How a prediction is made
A Random Forest builds many trees side by side and lets them vote. XGBoost works differently. It builds trees one after another, and each new tree tries to fix the mistakes the earlier trees still make.
Think of a team of beginners. The first makes a rough guess. The second studies only where the first went wrong and suggests a small fix. The third fixes what is still wrong, and so on. Add up hundreds of small fixes, and you get a strong answer.
Our model in numbers
| Setting | Value | In simple words |
|---|---|---|
| Rounds | 168 | 168 rounds of "fix the mistakes" |
| Trees | 504 | Each round builds 3 trees: one for home win, one for draw, one for away win (168 × 3) |
| Depth | 3 | Each tree asks at most 3 questions |
| Learning rate | 0.03 | Each tree's nudge is kept small, so no single tree can take over |
| Training data | 46,709 | Matches from 2000/01 to 2025/26 in the five leagues |
Step by step, for Arsenal v Chelsea
- Build the 42 numbers. The server takes the match history up to the match day and computes the 42 features, with the same code used in training.
- Start from a base score for each outcome. Home teams win more often than away teams, so home starts highest.
- Walk all 504 trees. Each home tree adds its nudge to the home score, each draw tree to the draw score, and each away tree to the away score.
- Turn the three scores into chances. A standard formula called softmax turns them into three percentages that add up to 100%. The higher the score, the bigger its share.
- Pick the biggest. The outcome with the highest chance is the prediction.
Why this prediction? (SHAP)
A prediction without a reason is hard to trust. So every prediction comes with an explanation.
Imagine five friends share a taxi and want to split the fare fairly. SHAP does the same with a prediction. It splits the final score fairly between the 42 features, so we can see who added what.
Here is the home-win score for Arsenal v Chelsea, split by SHAP. The average match starts at +0.337.
Here, we can see the story in plain words: Arsenal are rated much higher than Chelsea and are very strong at home. Chelsea's good away record pulls the home chance down a bit, but not enough to change the pick.
The app shows these reasons in fan-friendly words, such as "Arsenal team strength rating: 1621" (the wording comes from ai/explainability/feature_labels.py).
How we handled draws
This is the most interesting part of the project. About a quarter of all matches end in a draw (25.9% in our 46,709 matches). Yet our model never picks a draw as the most likely result. Why?
The weather forecast example
Suppose the forecast says 30% rain every day this week. It is honest: it really rains on about 3 days in 10. But rain is never the "most likely" weather, because 70% says dry. Our draw chances work the same way.
Our draw report found two things:
- The draw chances are honest (well calibrated). When the model says about 28% draw, about 28% of those matches really end level.
- But they are flat. The draw chance stays between about 0.20 and 0.33 for almost every match, and it never went above 0.36 in any season. On the 250 played matches of 2026/27, the served model's highest draw chance was 0.315.
docs/reports/draw-handling.md). The pairs match closely: honest, but no band gets near "most likely".Why can't 30% ever win? There are three outcomes. For a draw to be the pick, it must beat both the home chance and the away chance. With a draw at 30%, the other two share 70%, so at least one of them is 35% or more. A draw needs well over 33% to have a chance, and our model's draw chance almost never gets there.
What we tried
Try 1: a "close game" rule. Pick a draw when its chance is within a margin of the favourite's. Here is what happened on 2024/25 and 2025/26:
| Margin | Accuracy | Draws caught |
|---|---|---|
| 0 (today: never pick a draw) | 51.6% | 0% |
| 0.09 | 50.8% | 8% |
| 0.10 | 50.6% | 13% |
| 0.15 | 48.1% | 32% |
| 0.20 | 45.6% | 49% |
Catching a third of draws costs about 4 to 5 points of accuracy. Each draw pick was right only 27–30% of the time, barely above the 25% base rate, so each extra draw caught cost about two correct home or away picks. Not worth it.
Try 2: six new draw features. Each team's draw rate over its last 10 games (2 features), average total goals in each team's last 10 games (2), the absolute Elo gap (1), and the league's draw rate over about two seasons (1). Result: log loss changed by only −0.0002 and −0.0001, and both 95% ranges included zero. No real gain, so they were not added.
Try 3: the Dixon-Coles goals model (see the bonus section). It models low scores directly, so it was the best hope. But its draw chances were just as flat (never above 0.36).
What we decided: keep the pick, flag the tight games
On 28 September 2026 we chose "tag only" (ADR 011). The pick stays the same, and the API adds a flag, draw_possible, when the draw chance is at least 0.28. This costs no accuracy.
docs/reports/refit-all-seasons.md. On earlier seasons the gap was smaller but the same way round (for example 28% against 24% on 2024/25–2025/26).A real example: Leeds v Brentford, 30 August 2026. The model said home 35.8%, draw 29.8%, away 34.4%. The pick was a home win, and the draw flag was on. It finished 1–1.
draw_possible, and the assistant still uses it.How good is it?
Football is noisy. There are three outcomes and plenty of upsets. So let's compare with sensible baselines.
| Who | Accuracy | Where |
|---|---|---|
| Random guess | 33.3% | Any season |
| Always pick the home team | 43.1% | 2023/24 test season (home win share) |
| Our model (reporting version) | 52.5% | 2023/24 test season, 1,752 matches |
| Bookmakers | 55.0% | 2023/24 test season |
| Our served model | 52.0% | First 250 matches of 2026/27 |
| Bet365 (margin removed) | 51.6% | Same 250 matches |
On the 250 live matches, the 95% range for "our model minus Bet365" runs from 2.8 points lower to 3.6 points higher. So the honest summary is: level with the bookmaker, not ahead.
Bonus: predicting the score with Dixon-Coles
Our XGBoost model predicts home, draw or away. It never thinks about goals. So for likely scores, expected goals and "both teams to score", we use a second, separate model: Dixon-Coles (ADR 009).
Think of every team as having two dials. An attack dial: how many goals do they score compared with an average team? A defence dial: how many do they let in compared with an average team? Turn the dials, and you can guess how many goals each side will score.
Let's walk through Arsenal v Chelsea again, with the real Premier League fit from the day of the match.
Step 1: read the dials
| Dial | Value | Meaning |
|---|---|---|
| Goals for an average side against an average side | 1.24 | The league's starting point |
| Home advantage | × 1.20 | Home teams score 20% more |
| Arsenal attack | × 1.26 | Arsenal score 26% more than average |
| Arsenal defence (goals let in) | × 0.67 | Arsenal concede 33% fewer than average |
| Chelsea attack | × 1.15 | Chelsea score 15% more than average |
| Chelsea defence (goals let in) | × 1.03 | Chelsea concede about average |
Step 2: expected goals
Step 3: from an average to the chance of each goal count
If a team averages 1.93 goals, how likely is 0, 1, 2 or 3? A standard formula called the Poisson distribution answers this. It is the usual formula for counting rare events, like goals in a match.
Step 4: build the score grid
Now we multiply. The chance of Arsenal 1, Chelsea 0 is "Arsenal score exactly 1" × "Chelsea score exactly 0" = 28.1% × 38.4% ≈ 10.8%. Do this for every pair and we get a grid of every possible score. Our code builds an 11 × 11 grid (0 to 10 goals each).
Step 5: the Dixon-Coles fix for low scores
Plain multiplying assumes the two teams' goals have nothing to do with each other. In real football, results like 0–0 and 1–1 happen a bit more often than that, and 1–0 and 0–1 a bit less. Dixon and Coles added one small number, ρ (rho), learned from the data, that adjusts only these four scores. For the Premier League on that day, ρ = −0.099.
Step 6: read the answers off the grid
Every answer is just a sum of cells:
- Most likely scores: 1–1 (11.3%), 2–0 (10.4%), 2–1 (9.9%), 1–0 (9.7%), 3–0 (6.7%).
- Home win / draw / away win: add the green, yellow and blue cells: 59.0%, 23.8% and 17.2%.
- Over 2.5 goals: 55%. Both teams to score: 54%.
The real score was 2–1, the third most likely score.
Two more details
- Recent matches count more. Each past match gets a weight that halves about every 7½ months (ξ = 0.003 per day), and only the last four years are used.
- It is always fresh. The server fits one Dixon-Coles model per league at every start, from all matches before that day. A fit takes under a second.
How well does it work?
- The most likely score is right 12–14% of the time, and the real score is in the top three about a third of the time.
- Goal totals are honest: on 2024/25–2025/26 it forecast 2.81 goals per match, and there were 2.80.
- For home/draw/away it was worse than XGBoost on 2023/24 and 2026/27 so far, so XGBoost keeps the headline pick. Each model does what it is best at.
Quick questions
Does the model use betting odds?
No. Odds are excluded from the features on purpose. They are used only as a benchmark to compare against.
Does it know about injuries or line-ups?
No. It only uses past results. There is no reliable free source of player-level history for all five leagues.
Can it compare a Premier League team with a La Liga team?
Not fairly. Elo ratings are kept per league, because the clubs never play each other in our data, so a 1600 in one league is not the same as a 1600 in another.
Is XGBoost a Random Forest?
No. Both use many trees. A Random Forest builds them side by side and takes a vote. XGBoost builds them one after another, each fixing the earlier ones' mistakes, and adds up their nudges.
Why is the served model trained on every season?
We keep two roles (ADR 017). A reporting model, trained up to 2021/22, gives the honest test numbers. The served model copies its exact recipe (same 42 features, settings and 168 rounds) and trains on every season up to 2025/26, so it has seen the latest football. On 250 matches of 2026/27, the two were level, and only 3 picks differed.
Where the facts come from
- Feature list and settings:
ai/training/configuration.py,ai/models/latest/(served model20261007_154105),docs/reports/refit-all-seasons.md. - Feature definitions:
ai/feature_engineering/features/(Elo, home and away record, head-to-head and others). - Feature importance and the real tree: computed for this article from the served model file with SHAP's TreeExplainer and the model's own tree dump.
- Arsenal v Chelsea and Leeds v Brentford: the 2026/27 backtest feature rows in
ai/models/backtests/. - Draws:
docs/reports/draw-handling.md,docs/adr/011-draw-possible-tag.md. - Results:
README.md,docs/reports/in-season-2026-27.md, the reporting model card. - Dixon-Coles:
ai/goals/,docs/adr/009-dixon-coles-goals-model.md,docs/reports/goals-model.md. The Arsenal v Chelsea fit uses Premier League matches before 6 September 2026.
Written 6 November 2026.