In-match win probability modelling for AFL

A live win-probability line for AFL matches that moves with every goal and behind, built from 26 seasons of scoring progressions and an Elo rating, and checked for calibration on seasons the model never saw.

Background

Broadcasters and club apps show a line that swings with each goal: each team's chance of winning, right now. It answers what the scoreboard can't. A 20-point lead means something different at quarter time than with five minutes left, and something different again when the trailing side was the favourite.

This model produces that line for AFL matches.

Data

Every goal and behind with its match time from AFL Tables, for every match from 2001 to 2026, with results and grounds. An Elo rating built from those results gives each match a starting point: how strong each side was expected to be before the bounce.

How it works

  • Match states. The match is sampled at every score and at regular steps between them: margin, time remaining, quarter and the pre-match expected margin.
  • Model. A logistic model in which the margin counts for more as time runs out and the pre-match expectation fades as the match goes on. A gradient-boosted model with the margin constrained to only help the leading side is the comparison.
  • Baselines. The pre-match rating alone, and margin and time alone.
  • Draws. Counted as half a win.

Evaluation

The model is fitted on 2001–2023, 2024 is held for validation, and 2025 and 2026 are the test seasons, which it never saw. Every sampled match state in those two seasons is scored by Brier score (the mean squared gap between the predicted chance and the result) overall and by quarter, and by calibration: of the sides given a 10% chance, about 10% should have won.

Across the test seasons the spline logistic model scores 0.120. The gradient-boosted comparison scores 0.119, close enough that the simpler model is the one shown. Margin and time alone score 0.142 and the pre-match rating alone 0.180, so the rating adds most early and the score most late: the model's quarter scores fall from 0.169 in the first quarter to 0.055 in the last, where the rating alone stays near 0.180 throughout.

Brier score by model and quarter

Every sampled match state in the two test seasons; lower is better.

Measured results

Loading the model results

The chances are calibrated across the range. Sides given under 10% won 2.3% of the time against 2.9% predicted, and no band is more than three points out: the largest gaps are the 85% band, where 88% won, and the 15% band, where 17% did. Before the bounce, Elo alone picks the winner 71% of the time.

Predicted chance against the share that won

Match states grouped in bands of ten points of predicted chance; marks on the diagonal are calibrated, larger marks hold more states.

Measured results

Loading the model results

Demo

A match page with the win-probability line across all four quarters, each goal and behind marked on it. Pick a season and a round and open any match to step through it score by score, or browse the season's comebacks by how unlikely they were at their lowest point.

The data has scores and times but not possession or field position, so the line responds to scores rather than anticipating them.