Skip to content

Football Data Science

Statistics, machine learning and mathematics explained through football.

Explore models, test football myths and learn how data can help us understand the game.

How likely is each scoreline?

Move the sliders. Every number below is recalculated with a Poisson model.

Expected goals from 0.1 to 5.

Home win
Draw
Away win

Each cell is the chance of that exact score, in percent. The outlined cell is the most likely.

Open the full model and see how it works

Featured investigation

Is home advantage worth a goal?

Fans, pundits and managers all say home advantage is worth a goal. Over 18,000 Scottish league matches since 2000/01 say it is worth about a quarter of one.

Not supported
Read the analysis

Get new pieces by email

An email when something new is published, and the occasional update. Unsubscribe in one click. How your email is used.

Myth or Maths

All claims tested

Things football people say, checked against the data.

Not supported

Does winning the corner count mean you're on top?

"They've had eight corners, they're all over them." Over 5,877 Scottish Premiership matches, the side with more corners won only 44% of the time, and once you know the shots, corners add nothing.

Beginner

Not supported

Does form matter more than underlying performance?

"Forget the stats, look at the form." Over 26 Scottish Premiership seasons, a side's shot difference predicted its next six games better than its recent points did, and a gap of eight points in form shrank to under one.

Intermediate

Mixed

Does the league table never lie?

"The table never lies," they say at the end of every season. Over 26 Scottish Premiership seasons, luck alone moves a team's points total by about eight either way: enough to reshuffle mid-table, but not enough to fake a title.

Intermediate

Learn through football

All learning paths

Each series starts at part 1, and every piece builds on the one before.

Statistics Through Football

Goal or miss? The Bernoulli distribution

A penalty has two outcomes and nothing in between. That simple idea, the Bernoulli trial, is the building block of expected goals and of most football statistics.

Beginner Part 1

How many goals will we score? The Poisson distribution

A team averages two goals a game. How likely is it to score exactly three? The Poisson distribution turns an average into a probability for every score, and it sits underneath most football prediction models.

Beginner Part 3

Linear Algebra Through Football

A midfielder's match in five numbers. Vectors

A player's performance can be written as a list of numbers in a fixed order. That list is a vector, and it's the first step to comparing players, finding replacements and feeding football into machine learning.

Beginner Part 1

Bayesian Football

Four from four. How good is he really? Bayesian thinking

A new signing scores his first four penalties. Bayesian thinking combines what you believed before with what you've just seen, and shows why a perfect start should nudge your opinion, not replace it.

Beginner Part 1

Interactive models

All models

Change the inputs and watch the answer move. That is the quickest way to understand a model.

SPFL Lab

Eleven predictors forecast every Scottish Premiership match. Each is scored against the results on log loss, Brier score and calibration, not just how often it picked the winner.

Latest research

All research

How do you know if a football prediction model is any good?

Eleven predictors, 5,258 Scottish Premiership matches. Picking the most winners is the wrong test. Log loss, Brier score and calibration tell you which models actually understand football, and the bookmaker still beats them all.

Intermediate

Bryan McGuire

“I've spent much of my career working with data, statistics and modelling. Football gives me a far more interesting place to use them.”

Why this site exists