NFL tracking data · every player · every snap

Chasing
Ghosts

The box score sees the ball. This sees everyone.
Evaluating every player’s effect on the outcome of a play, measured in the points he adds for his team.
24,141
plays broken down
2,131
players rated
531,102
individual play credits
281M
ghost scenarios simulated

One run, 22 stories

(:38) (Shotgun) L.Jackson right guard for 79 yards, TOUCHDOWN. Jackson sets record for 100-yd, rushing games by QB.

Everyone remembers who carried the ball. But a 79-yard touchdown run needs a lot more than one player. Someone opened the hole. Someone took a bad angle. Someone hustled downfield. Press play and watch each player’s credit build as the play unfolds.

0.0 s after the snap
Tracking replay of all 22 players (offence moving right; dotted line = line of scrimmage). Labelled: the three biggest iPAs. Watch the broadcast on YouTube ↗
■ offence   ■ defence   Each bar is a player's iPA so far, moving in time with the replay.
Lamar Jackson gets the headline, earning 47% of the positive credit. But look who’s next: Ben Powers (G, +1.62), Kader Kohou (CB, +0.37), Christian Wilkins (DT, +0.30).

Almost all of the ball carrier’s credit arrives in the first few seconds, when he hits the hole and breaks free. After that his bar barely moves: once he’s in the open field, an average player would probably score from there too. The decisive moment is the cut, not the sprint.

Meet iPA

iPA

Individual Points Added. The expected points a player added to a play, compared with what an average player would have done in exactly his spot. Positive means he helped his team; negative means he hurt it. It’s measured in real points, the same units as EPA.

iPA+

The rating. Per-snap iPA, compared with players at the same position and adjusted for sample size. 100 is average, and every 10 points is one standard deviation of talent. A 120 guard and a 120 receiver are equally far above their peers.

Every player gets an iPA on every snap: the quarterback, the receivers who ran decoy routes, the guard who pulled, the safety who took a bad angle. The iPAs on a play, plus what an average lineup would have produced, add up exactly to how the play turned out.

How it works

1

Value every moment

A neural network watches all 22 players and the ball, ten times a second, and estimates how many points the play is heading for. At the snap it knows little. By the end it knows a lot.

2

Track the ball

Whoever has the ball “owns” its movement: the carrier, or the passer while a throw is in the air. That’s how a QB gets credit for a throw and a runner for a cut.

3

Summon the ghosts

A second network predicts what an average player would do next in each player’s exact situation. That prediction is his ghost, the bar he’s measured against.

4

Split the credit

Every 0.3 seconds, real players are swapped in among their ghosts in many random orders. Each player’s iPA is how much he changed the outcome compared with his ghost.

So what exactly is a ghost?
The ghost model learned from about 380,000 real moments. For each one, it saw the whole field and then where every player actually was 0.3 seconds later. Crucially, it never knows who anyone is. It only sees “a cornerback here, trailing a receiver moving this fast, with the ball over there.” Thousands of different cornerbacks have been in roughly that spot, so the model learns what they do on average. That’s the ghost: the league-average player, dropped into this exact moment.

How well does the value model read a play?

At the snap, nobody knows how a play will go, and neither does the model. Its read sharpens steadily as the play develops. That rising curve is what iPA is built on: whenever the predicted value changes, someone on the field caused it.
For the technically curious
  • Value model: a transformer encoder (3 layers, 64-dimensional, 4 attention heads) in R torch. Each of the 22 players and the ball is a token with 11 features (position, velocity, acceleration, orientation, distance to the ball, possession). A separate token carries down, distance, field position, time since the snap and game state. It’s trained to predict both final EPA and yards gained.
  • Possession: the nearest eligible player within 1.5 yards, made “sticky” (the holder keeps the ball within 2.5 yards unless someone else is clearly holding it). Possession flips to the defence after interceptions and fumble recoveries.
  • Ghost model: the same architecture, predicting each player’s movement, velocity and orientation 0.3 seconds ahead.
  • Credit: per-stretch Shapley values estimated from 32 random player orders (half reversed, to reduce noise), with the ball’s movement tied to its owner. The credits plus the all-ghost baseline equal the value change exactly.
  • iPA+: per-snap iPA by position and season, shrunk toward the position mean (empirical Bayes), then scaled so 100 is average and 10 points is one standard deviation of estimated true talent.

What if someone else made that block?

iPA says Ben Powers added +1.62 points on this run. What does that mean in plain terms? To find out, we replayed the play with one change: Powers was swapped out for an average guard, who reacts to the play the way a typical guard would. Everyone else did exactly what they really did. At every moment, we asked the model one question: how many yards is this run heading for?

Right as Lamar reached the line, the model expected a 41-yard gain with Powers blocking. With an average guard: 33 yards. Powers’s block was worth about 8 extra yards.
The verdict: if Ben Powers had been an average guard on this play
  • With Powers: the model’s best estimate was a 41-yard run, to about the MIA 38, worth +3.95 expected points.
  • With an average guard: a 33-yard run, to about the MIA 46, worth +3.24 expected points.
  • The difference: about 8 yards and 0.71 points that came from Powers doing better than an average guard would have.

What actually happened was a 79-yard touchdown, with Lamar turning a good situation into a great one. These numbers are the model’s expectation at that moment, the average of all the ways the play could have gone from there, not a guarantee of how it would have ended.

How to read it: the two lines match at the start, split apart right when Powers makes his block (the yellow gap), then come back together once Lamar is past the line. They rejoin because Lamar’s real run is locked in: the replay can’t make him run differently, only measure how much better the play looked at that moment because of the block. Replaying the rest of the play with everyone reacting to the change is a natural next step.

Coming next: swap in a specific player. Today the stand-in is an average guard. Teaching the ghost model individual players’ tendencies would let us drop in anyone: what if a different guard had been there? What if that route had been run by Julio Jones instead of DeVonta Smith?

More plays, taken apart

The deep ball

(14:09) (Shotgun) J.Allen pass deep middle to G.Davis for 98 yards, TOUCHDOWN [M.Fitzpatrick].

0.0 s after the snap
Tracking replay of all 22 players (offence moving right; dotted line = line of scrimmage). Labelled: the three biggest iPAs. Watch the broadcast on YouTube ↗
■ offence   ■ defence   Each bar is a player's iPA so far, moving in time with the replay.

The quarterback’s iPA climbs while the ball is in the air. The throw is his. The receiver’s jumps at the catch and keeps growing through the run after it, and the defenders he beat sink below zero.

The pick-six

(10:43) (No Huddle, Shotgun) J.Herbert pass short right intended for G.Everett INTERCEPTED by Ja.Watson at KC 1. Ja.Watson for 99 yards, TOUCHDOWN.

0.0 s after the snap
Tracking replay of all 22 players (offence moving right; dotted line = line of scrimmage). Labelled: the three biggest iPAs. Watch the broadcast on YouTube ↗
■ offence   ■ defence   Each bar is a player's iPA so far, moving in time with the replay.

Turnovers get shared out too. The defender who jumped the route earns a big positive iPA, and the quarterback whose ball it was takes his share of the blame.

The leaders

2022, weeks 1–9, minimum 100 snaps. Top five at every position by iPA+ (100 = average).

Quarterbacks
1Tua Tagovailoa QB114
2Derek Carr QB112
3Patrick Mahomes QB111
4Justin Herbert QB110
5Matt Ryan QB109
Running backs
1Rashaad Penny RB118
2Khalil Herbert RB117
3Nick Chubb RB116
4Dameon Pierce RB114
5Tony Pollard RB114
Wide receivers
1Justin Jefferson WR112
2Gabe Davis WR109
3DeVante Parker WR109
4Amari Cooper WR108
5Curtis Samuel WR108
Tight ends
1George Kittle TE111
2Hunter Henry TE110
3Colby Parkinson TE110
4T.J. Hockenson TE107
5Armani Rogers TE106
Offensive line
1Pat Elflein C132
2Ethan Pocic C130
3Ben Jones C127
4Jake Brendel C126
5Tyler Biadasz C125
Defensive line
1Trey Hendrickson DE123
2Carlos Basham DE122
3Marquis Haynes DE120
4Casey Toohill DE119
5Brandon Graham DE118
Linebackers
1Lorenzo Carter OLB114
2Jaelan Phillips OLB113
3Uchenna Nwosu OLB113
4Demario Davis ILB110
5Dennis Gardeck OLB110
Defensive backs
1Marlon Humphrey CB116
2Tariq Woolen CB116
3Chauncey Gardner-Johnson SS115
4Jaylen Watson CB115
5Jaycee Horn CB114

Find a player

Search or sort every player rated in 2022 (minimum 100 snaps).

Who’s improving?

Because iPA+ is standardised (100 is always the position average), a player can be compared with himself from one season to the next. The Progression Index is simple:

Progression Index

Newest season’s iPA+ ÷ previous season’s iPA+. The newest season always goes on top. Above 1 means he’s improving relative to his position; below 1 means he’s declining. 1.10 means he’s 10% better against his peers than the year before.

Like for like

The 2021 tracking stops when the ball is thrown, so 2022 is rated on pass plays only for this comparison, and only for positions whose main job happens before the throw: QB, OL, DL, LB and DB. Running backs and pass catchers earn too much after the catch to compare yet.

With only two seasons, this is a first look rather than a career arc. Each extra season adds another link to the chain, and a run of Progression Indexes above 1 is what a player on the rise would look like.

Following a whole career

Two seasons are just the start. Because iPA is calculated on every single snap, the same numbers can be added up by game, by season or across an entire career, and every view is on the same standardised scale. That makes it possible to tell a player’s whole story in one chart: when he got better, when he got hurt, when he peaked and when he started to slow down.

↗

Growth

Chain the Progression Index year after year. Three straight seasons above 1 is a player on the rise, and multiplying the links gives his total growth: 1.10 × 1.08 × 1.05 means he’s about 25% better against his peers than when he started.

✚

Injuries

Missed games show up as gaps, since a player who isn’t on the field has no snaps. Comparing his iPA+ before an injury with his first games back shows whether he returned at full strength or needed time to recover.

▲

Peak

His best season by iPA+. Shrinkage matters here: a great half-season after an injury gets pulled toward average, so a short hot streak doesn’t get mistaken for a peak.

↘

Decline

Two or more seasons in a row with a Progression Index below 1 marks the start of a decline. Averaged across many players, the same idea gives each position its own aging curve: when guards, receivers or cornerbacks typically peak and fade.

A real example, week by week

The finest version of this already works on today’s data. Here’s Ben Powers through the first nine weeks of 2022: iPA per 100 snaps in each game, against the average offensive lineman.

What a full career could look like

With more seasons of tracking data, the same idea stretches across a whole career. The chart below is an illustration with made-up numbers, not a real player. It shows the story iPA+ could tell for someone over ten years.

Read left to right, it’s a whole career at a glance: steady growth to a peak in year 4, a lost season to injury, a short comeback year that’s shrunk toward average because of the small sample, a strong return, and then three straight seasons below 1 as he starts to decline. With every NFL season tracked this way, the same chart could be drawn for any player in the league.

Is it real, or is it noise?

A stat only matters if it says something about the player rather than luck. The test: rate every player separately on odd weeks and even weeks. If iPA captures real skill, the two halves should agree.

Zero would mean pure noise and one would mean perfectly repeatable. Each half is only four or five weeks of games, so nobody should expect values near one.

Where iPA shines: the offensive line. Linemen are the players traditional stats can’t see at all, and they’re where iPA is most repeatable, at 0.82. A lineman who rates well one half of the season tends to rate well the other half too. That’s exactly the “missing metric” this project set out to build.

Tackles, guards and centres do different jobs, though, so part of that consistency could come from role rather than skill. The real test is whether iPA separates players within each position:

Position Players Split-half correlation
Centres 39 0.62
Guards 79 0.57
Tackles 85 0.34

If these stay well above zero, iPA is telling linemen apart, not just positions.

Where it’s still learning: quarterbacks and receivers. QB (0.05) and WR (-0.03) barely repeat yet. There are only a few dozen starting quarterbacks, each with four or five games per half, and receiver iPA hinges on a handful of big catches, so a few weeks is too little to separate skill from luck. Both also depend heavily on teammates. More seasons of tracking data should help these positions most.

What’s next

Swap the ghost for a real player. Today every player is measured against the average. The same machinery can measure him against anyone: train the ghost on one player’s tendencies and drop him into another player’s snaps. How many more points would that route have produced with Julio Jones running it instead of DeVonta Smith?

Limitations, honestly
  • Nine weeks of one full season, plus eight weeks of pre-throw-only data from another. Positions with weaker repeatability should be read as early signals.
  • In the first second or two, the outcome is genuinely uncertain, so iPA for early actions (a pass set, the first punch of a block) is small and noisy on any single play. It becomes meaningful over many snaps.
  • iPA is relative to an average player in the same spot, not an absolute measure of contribution.
  • Possession is inferred from distances rather than a charted feed, so handoffs and contested catches can be a fraction of a second early or late.
  • Each stretch’s credit is estimated from a sample of random orderings. That adds a little noise to single plays, which averages out over a season.

The data

Everything here is built from public data. Player tracking records the position, speed, acceleration, direction and orientation of all 22 players and the ball, ten times a second.

NFL Big Data Bowl 2025

2022 season · weeks 1–9 · runs and passes

The main source for 2022. Full-play tracking from the moment players line up, plus play-level and player-level detail. It supplies the large majority of the 16,096 plays from 2022 (6,783 runs and 9,313 passes).

NFL Big Data Bowl 2024

2022 season · weeks 1–9 · same games

Covers the same 2022 games with a focus on tackling. Used to fill in a small number of plays missing from the 2025 release, after removing duplicates.

NFL Big Data Bowl 2023

2021 season · weeks 1–8 · passing plays

Built around pass rush and protection. Tracking runs from the snap until the ball is thrown (or a sack or scramble), which adds 8,045 plays of protection, pressure and quarterback decision-making, but nothing after the throw. That’s why 2021 and 2022 are always rated separately.

nflverse play-by-play

2021–2022 · every play

Expected points added (EPA) for every play, which is the value iPA splits up, plus yards gained, down and distance, field position, game clock and score. Joined to the tracking data play by play.

Player names and positions come from the player files included with each Big Data Bowl release. Plays are standardised so the offence always moves in the same direction, and kneels, spikes and special teams are excluded.

Replicate it

Everything runs in R on a home computer. Run times below are from an AMD Ryzen 7 7700X with an NVIDIA RTX 3060 Ti (8 GB). An NVIDIA graphics card is strongly recommended: without one, the training steps and the credit run would take days rather than hours.

⬇ Download all scripts (.zip)
0a

Get the data

Create a free Kaggle account, open each competition page (NFL Big Data Bowl 2023, 2024 and 2025), accept the competition rules, and download the data. Unzip each into its own folder inside one project folder: bdb2023/, bdb2024/ and bdb2025/. Or, with the Kaggle command-line tool: kaggle competitions download -c nfl-big-data-bowl-2025 (and likewise for 2023 and 2024). The nflverse play-by-play data downloads automatically in step 1.

⚠ Several gigabytes per competition. Leave plenty of disk space.

~15–30 min to download
0b

Set up R and GPU torch

Install the packages: install.packages(c(“data.table”, “arrow”, “nflreadr”, “ggplot2”, “torch”, “plotly”, “DT”, “zip”, “rmarkdown”)). Then switch torch to its GPU version (this needs an up-to-date NVIDIA driver): Sys.setenv(CUDA = “12.8”); library(torch); install_torch(reinstall = TRUE, timeout = 600). Restart R and check that cuda_is_available() returns TRUE.

⚠ About a 3 GB download. If you’re on a very new version of R and the GPU install fails, the previous R release has ready-made GPU builds.

~15 min
1

01_load_and_clean.R

Combines the three Big Data Bowls, removes duplicate plays, joins EPA from nflverse, flips every play so the offence moves the same way, and saves the tracking by week.

⚠ Reads tens of millions of tracking rows. 16 GB of RAM or more recommended.

~10 min
2

02_prepare_model_data.R

Turns every moment after the snap into model input (23 tokens × 11 features), works out who has the ball with the sticky possession rule, and adds the game situation.

~5 min
3

03_train_model.R (uses model_def.R)

Trains the value model, the transformer that predicts a play’s EPA and yards gained from any moment, and prints its accuracy on held-out games.

⚠ GPU required. Stops automatically once it stops improving.

~20 min
4

06_train_ghost_model.R (uses ghost_def.R)

Trains the ghost model, which predicts what an average player does over the next 0.3 seconds, and compares it with simple baselines.

⚠ GPU required.

~25 min
5

08_credit_all.R (uses credit_engine.R)

The main event: Shapley credit for every player in every 0.3-second stretch of every play, about 300 million model evaluations. Saves after every 250 plays, so it can be stopped and restarted without losing work.

⚠ The long one, best left running overnight. To stop it safely, wait for a “Chunk … done” line first. Setting M = 16 roughly halves the time, with slightly noisier single plays.

~3–5 hours
6

09_player_ratings.R

Turns per-play credit into the standardised ratings (iPA per 100 snaps, iPA above average and iPA+), runs the split-half check and prints leaderboards.

seconds
7

10_showcase_data.R and 11_counterfactual.R

Save the featured play breakdowns, the ghost accuracy check and the “what if” replay used in this report.

⚠ GPU required.

~3 min
8

nfl_credit_report.Rmd

This page. Open it in RStudio and click Knit, then Publish to share it on RPubs.

~1 min

Each script starts with a setwd() line pointing at the project folder (and this report has a matching root.dir line at the top). Change those to your own folder before running. In total, expect about five to six hours, almost all of it step 5.