Project 18 · Football Analytics

Monte Carlo Simulation · Predictions for LaLiga 2026/27

⚠️ in developmentdata:2026

The project simulates 1,000,000 LaLiga 2026/27 scenarios using Elo ratings and a Davidson model to calculate home win, draw and away win probabilities. These probabilities are used to estimate the chances of winning the title, finishing in the Top 4 or being relegated, together with points and positions at the end of the season.

Python
Pandas
Football
Data science
Data analysis
Simulation

CONTEXT AND OBJECTIVE

The project analyses LaLiga 2026/27 to estimate the final standings of its 20 teams. Probabilities are calculated match by match and then used to simulate the season, with particular attention to the title, Top 4 places and relegation.

The historical dataset combines LaLiga matches from the 2021/22 to 2024/25 seasons with Elo ratings recorded before each match. The analysis relates the Elo difference between opponents to the frequency of home wins, draws and away wins. This information is used to fit a Davidson model that also incorporates home advantage and the overall tendency to draw.

The LaLiga 2026/27 fixture list, recorded results and updated Elo ratings complete the data for each update. Points already earned remain in the table, while the simulation resolves the remaining matches to estimate the final distribution of points, positions and qualification probabilities.

MODEL AND SIMULATION

Data preparation and Elo ratings

Historical LaLiga results were prepared, with checks on dates, teams, home or away status, goals and each match outcome. The historical selection covers four complete seasons, with 1,520 matches, and provides a consistent basis for working with results and ratings.

Elo ratings provide a measure of each team’s relative strength. For each match, the difference between the home and away ratings is used: a positive difference favours the home side, while a negative one favours the away side. This difference is the main input to the probability model.

ELO RATING DIFFERENCE
\Delta Elo = Elo_{L}-Elo_{V}

Home Elo and away Elo are the ratings assigned to the two teams. Their difference summarises the initial sporting advantage before incorporating the effect of playing at home.

The 2021/22 to 2023/24 seasons were used to estimate the initial parameters. The 2024/25 season was reserved for temporal validation, comparing estimated probabilities with actual observed results. The model was then re-estimated using all four historical seasons to apply its parameters to LaLiga 2026/27.

Match probabilities with Davidson

The Davidson model transforms the Elo difference into three probabilities: home win, draw and away win. Fitting it involves finding the values of two parameters that best explain historical outcomes: H captures the effect of playing at home and ν controls draw frequency. Estimation uses maximum likelihood and the observed outcome of each match.

First, the Elo difference is combined with home advantage to obtain the home side’s strength relative to the away side. This value enters the model’s expressions and distributes probability across the three possible outcomes.

RELATIVE STRENGTH OF THE HOME SIDE
r = 10^{(\Delta Elo+H)/400}

r represents the home side’s relative strength; ΔElo is the rating difference and H is the estimated home advantage parameter. The transformation preserves the scale used by Elo ratings.

HOME WIN, DRAW AND AWAY WIN
P(L)=\frac{r}{r+1+\nu\sqrt{r}}
P(E)=\frac{\nu\sqrt{r}}{r+1+\nu\sqrt{r}}
P(V)=\frac{1}{r+1+\nu\sqrt{r}}

P(L), P(E) and P(V) represent home win, draw and away win probabilities. The parameter ν directly affects draw probability. The three probabilities sum to 1 for each match.

Validation for 2024/25 included the accuracy of the most likely prediction, log-loss and Brier score. Average probabilities for each outcome were also compared with observed frequencies and with a baseline based on historical frequencies. Following that evaluation, the parameters were re-estimated using the full four-season sample and retained for projections of the current season.

Monte Carlo simulation of LaLiga

LaLiga has 20 teams and a schedule of 380 matches. Each update preserves the actual results of matches already played and uses Davidson probabilities to simulate the remaining fixtures. Each simulated match ends in a home win, draw or away win according to its individual probabilities.

Three points are awarded for a win and one for a draw. Simulated points are added to those each team has already earned, producing a final table for that repetition. When two teams finish level on points, the procedure uses random tie-breaking as an approximation to determine their positions.

FINAL POINTS PER TEAM
\text{Points}_{i}^{\mathrm{final}}=\text{Points}_{i}^{\text{current}}+\text{Points}_{i}^{\text{simulated}}

Each team’s final points are obtained by adding its current points to the points earned in the remaining matches of that simulation.

This process is repeated 1,000,000 times. Each simulated season produces a complete table; together, the simulations measure how often a team wins the title, finishes in the top four or occupies one of the three relegation places. These frequencies become estimated probabilities.

PROBABILITY ESTIMATED BY SIMULATION
\widehat{P}(A)=\frac{N_A}{N}
N=1\,000\,000

N represents the total number of simulations and Nₐ indicates how many satisfy the event being analysed. Their ratio estimates, for example, the chance of winning the title, finishing in the Top 4 or being relegated.

The complete matrices of points and positions are retained to study other outcomes: the most frequent position, the spread of the distributions, points differences between teams and the number of points associated with decisive places in the table.

DELIVERABLES AND LEARNING

For each of the 20 teams, the analysis estimates the chances of winning the title, finishing in the Top 4 or being relegated, together with expected points and positions. Complete final-position distributions, medians and percentiles show how these results vary across simulated seasons.

The analysis includes home win, draw and away win probabilities for the remaining matches. At season level, it calculates typical point ranges, the probability of occupying each position and reference values for the points associated with the champion, fourth place and the relegation zone. Direct comparisons between teams are also developed.

Each update combines new LaLiga results with updated Elo ratings, recalculates probabilities for the remaining matches and reruns the simulation. Outputs are organised by update date to compare how projections change as matchdays are played.

The project integrates data preparation and validation, the use of Elo ratings, estimation of match probabilities with Davidson and simulation of the season. As new matches are incorporated, this process updates the projections and presents both the central expectation for points and positions and their variability across simulations.