All projects

Premier League Match Predictor

A statistical model that predicts Premier League match outcomes as probabilities and is scored against baselines on held-out data.

Screenshot of Premier League Match Predictor

What it does

The model predicts home win, draw and away win probabilities for upcoming Premier League matches. Every prediction is stored before kickoff and scored once the result is in, so live performance can’t be adjusted after the fact.

How it works

A Poisson regression estimates each team’s attacking and defensive strength plus home advantage, which gives a probability for every possible scoreline. A small ridge penalty keeps the fit stable for newly promoted teams with very little data.

Evaluation

I tuned on a validation season and kept a frozen test window for the final numbers, with walk-forward prediction so the model never sees future matches. On the test set, it achieved 5.3% lower log loss than a league-average baseline. Along the way, an earlier 5.4% result turned out to be mostly selection bias, which taught me why a proper held-out split matters.

Live predictions

The first round of live predictions has now been scored, and the site’s record page shows each one next to its result. A handful of matches is far too few to judge a model, so the held-out test result stays the headline number; the live record will become meaningful as the season goes on.

Highlights

  • 92 automated tests with pytest
  • Every experiment logged, including negative results
  • Static site with fixtures, match details, the league table and the prediction record, deployed by GitHub Actions