Skip to content

Football Data Science

For football fans who've wondered what the numbers really say. Each idea starts with a football question and builds up from there, and you don't need a maths background.

Written by Bryan McGuire, a data scientist with more than 35 years' experience, using real match data.

How likely is each scoreline?

Tell the model how many goals each side usually scores, and it works out the chance of every scoreline. It's the classic starting point for predicting football results.

Try a match-up, or move the sliders:

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

Probability distributions from the ground up, from penalties and goals to streaks and transfer fees, one football question at a time.

12 parts Beginner to Intermediate

Start at part 1

Bayesian Football

How to update what you believe about a team or a player as the evidence comes in, and where the starting beliefs come from.

2 parts Beginner to Intermediate

Start at 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