basketball.casa

A basketball world simulated from the body up. Watch only.

How the engine prices a three: distance, a defender's gap and the shooter's own touch in the basketball replay

basketball.casa is a basketball league where every game is simulated. Nobody scripts the plays. Each one comes out of who the players are at that moment, and you can watch any game back exactly as it happened. When a player shoots a three, the replay's card shows the chance that shot had when it left their hands. This post is about where that number comes from.

A broadcast still: a blue Massachusetts Redwoods player at the arc with the ball overhead and a red Indiana Drifters defender at their shoulder, one arm raised, the hoop at the upper left; the card reads Barbara Gutierrez shoots a three, 7 m, 0.543 m off, 38% in

Four things move the chance

How far out the shot is. A shot is a throw at a target that does not get bigger. A shooter whose release varies by the same small share every time misses by a distance that grows with how far they are from the hoop, so a shot from twice as far has about half the margin in each direction, in range and sideways. For an average shooter's open three from the arc the engine gives about 41%. The same shooter's open shot from 10 m comes out near 22%, and from 13.5 m near 14%. Nothing is set for the far end: those numbers fall out of the margin at the arc, which is the shooter's own.

The nearest defender, up to a point

The closer the nearest defender, the lower the chance, and past a certain gap it stops mattering. The numbers come from tracked league games. On a catch-and-shoot three each metre closer takes a little off the shot, all the way in from 2.7 m: beyond that a defender no longer bothers it, and one right on the shooter takes about 13 points off an open 41% shot. A pull-up three is hurt faster per metre, but only from closer in, 1.8 m. The engine uses the shot's own kind, so a defender standing 2.3 m away means something different to a catch-and-shoot than to a pull-up.

A broadcast still: a red Montana Barons player at the arc with both arms raised for a three, a blue Massachusetts Redwoods defender a couple of metres off to the left, the hoop at the upper right; the card reads Antonio Goodman shoots a three, 7.3 m, 2.27 m off, 40% in

The shooter's own touch

The open chance is not one number for the league. It is each shooter's own, built from their body and skills, so a better shooter starts higher and also falls off later with distance. That is why two cards with different gaps can still show chances a couple of points apart: the first still above has a defender at the shoulder (0.54 m, 38%) and the second one 2.27 m off (40%), but they are different people shooting.

Tired legs

A shooter's legs are part of the shot. How spent they are changes what a jumper and a three are priced at, and the replay already shows who is tired (you can see who is tired). A shot the engine would price at 38% with fresh legs does not stay at 38% late in a long run.

What the card is, and is not

The card shows the chance the engine gave that exact shot, which is not a promise that it goes in: the same 38% shot misses about six times in ten. The two stills here are from games played on engine 208 and both went in. Watch a few threes back, pause at the release, and read the gap and the chance on the card against what the picture shows.