Basketball

How our basketball predictions work

The model, the data, the rules for saving and settling every pick, and how you can check a record yourself.

In short

  • Every team gets an attack and a defence rating, refitted from finished games every 30 minutes; every league gets its own home-court edge.
  • Every market (winner, spread, totals, margin, overtime) comes from one picture of the game: the expected margin and total and how much real games spread around them.
  • Every pick is saved before tip-off with a SHA-256 fingerprint in a chained record that cannot be changed afterwards, then settled automatically.

The data

Games, scores by quarter, team and player box scores, standings and pre-game odds come from API-Basketball (API-Sports). We store them on our own server; pages never call the provider.

Eleven leagues: NBA, EuroLeague, EuroCup, Basketball Champions League, ACB, Super Ligi, Lega A, LNB Pro A, BBL, NBB and Liga A. NBA pre-season games are left out. Odds are archived for comparison only; they are not a model input.

How teams are rated

Each team has an attack number (points scored above the league average) and a defence number (points held below it). Each league has an average score and a home-court edge, fitted from its own games, never assumed.

They are fitted together by weighted ridge least squares. Early in a season the numbers start from 85% of last season's and the new games take over as they come in. Settings were chosen on 2023-24 and tested on 2024-25.

Expected points (home) = league average + home attack − away defence + half the home edge

From ratings to every market

The expected margin and total are spread out by amounts measured from the model's own past misses (about 13 points for the margin and 17 for the total; a bit more in the NBA).

Every market is read from that one picture, so the numbers on a page always agree with each other.

  • Winner: the chance the margin ends above zero, with a level game sent to overtime.
  • Point spread: the favourite's line is half a point beyond the whole points of the expected margin; the cover chance is read from the margin spread.
  • Total points: over or under at the model's line and 10 points either side; overtime adds its average points.
  • Winning margin bands 1–5, 6–10, 11–15, 16–20 and 21+, and close (1–5) / comfortable (6–15) / blowout (16+).
  • Overtime: the chance of a tie after regulation, scaled by 1.9 as measured on 2023-24.

Certified records

Every 30 minutes the model saves a record for each upcoming game whose numbers moved. The database refuses any record saved after tip-off and the site's own user may only add records, never change or delete them.

Each record carries its exact JSON text, the SHA-256 fingerprint of that text and the fingerprint of the record before it, so changing any old record would break every fingerprint after it. It also names the model fingerprint (the model code and settings) and an inputs fingerprint (the games it learned from).

Sealed before tip-off

Every game page shows the record number and the start of its fingerprint under the probabilities. The fingerprint seals the prediction the moment it is saved, so any later change would show.

Before tip-off only the seal is public, not the numbers behind it. After the final whistle each record can be checked against its seal.

How picks are settled

Every 15 minutes after the final score: the winner (overtime included), the spread (the favourite must win by the line or more), the total at the model's line, and the margin size. Each is right or wrong; nothing is left out.

We also keep the Brier score of the winner chance (lower is better, 0.25 is a coin flip) and how far the margin and total were off. All of it feeds the performance page.

The backtest

Walk-forward over three seasons: 2022-23 warmed the model up, 2023-24 chose the settings, 2024-25 was held out. Each game was predicted only from games on earlier days.

The model beat a well-tuned Elo rating a little and the home team by a lot, and its probability bands matched what happened within 2.3 points.

BrierLog lossRight
Court model v10.20930.604967.1%
Elo rating (tuned)0.21080.608766.2%
Always the home team0.24170.676558.9%
Top pickGamesWonWe said
50–55% 716 54.8% 52.5%
55–60% 713 57.5% 57.6%
60–70% 1,271 64.0% 64.7%
70–80% 957 74.5% 74.5%
80%+ 604 87.8% 85.5%
The bar is how often the pick won; the dark mark is what we said on average.

The live centre

The provider has no play-by-play for basketball, so the game flow, runs, lead changes and key moments are built from our own score readings every 20 seconds. Times are the game minute the provider reports, so they are approximate.

Team statistics and player box scores come from the provider about every two minutes and can trail the score. Our pre-game numbers are never changed during a game.

What the model does not know

Injuries, rest decisions, starting line-ups and minutes. In the NBA a star sitting out can move a game by several points.

Travel, back-to-backs and schedule density are not in v1 either. They are tested for v1.1 and only kept if they beat v1 on held-out games.

Probabilities, not betting advice. The model does not know about injuries, rest decisions or line-ups.