Skip to content

Football Data Science

For fans, players, coaches and analysts: anyone who's 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

Is midweek football different?

Tired legs, rotated squads, cold Tuesday nights. Midweek matches are supposed to be a different game. Over 10,000 Scottish league matches, they have the same results, the same upsets and, like for like, the same goals.

Beginner

Not supported

Are 0–0s dying out?

Football is more attacking than ever, so the goalless draw must be disappearing. Over 10,000 Scottish league matches in 26 seasons, one match in 14 still ends 0–0, and the share hasn't budged.

Beginner

Mixed

Is the split unfair?

After 33 games the Scottish Premiership splits in two, and every spring someone calls it unfair. Over 25 seasons, the home games even out, but the fixtures don't. The side 7th at the split takes 2.6 more points from the last five than the side 6th.

Beginner

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

Calculus Through Football

Rates of change, from how quickly a winger gets up to speed to how models learn: derivatives and integrals without the fear.

6 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

Do the bookmakers get Scottish football right?

Twenty-four seasons of Bet365 prices on 9,646 Scottish league matches. The odds are remarkably accurate in the middle, the margin has swung from 12% to 6.5% and back up, and backing outsiders is by far the worst bet.

Intermediate

How many points is a goal worth?

Goal difference explains 93% of the points a Scottish side takes, at about 0.63 points per goal. Some teams beat their goals by four wins' worth in a season, but it barely carries into the next one. 572 team-seasons show why.

Intermediate

When is the title decided?

A title can be sealed in the table months after the numbers already know. Simulating 25 Scottish Premiership seasons from every third round, the model is typically 90% sure of the champion by round 12. The table doesn't settle it until round 34.

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