← Projectsrunning app
NBA Injury Recovery
How long injuries keep NBA players out, by diagnosis and body part: survival curves, medians and tests on the league's official injury reports, 2018-19 to now.

Days Out shows how long injuries keep NBA players off the floor, and whether that depends more on the body part or on the diagnosis. It follows every injury absence in the NBA's official injury reports from the 2018-19 season (partial, since the archive starts in December 2018) to today. Each absence runs from the first game a player misses to his first game back, and I analyse the absences as survival data.
- Live app: nba-injuries.apps.ravicorrie.com
- Source code: github.com/rcorrie325/NBA-Injury-Survival
It's inspired by Ayush Batra's 2023 analysis, which first asked this question for 2018-19 to 2022-23. I took the idea and the general method and wrote everything from scratch, with corrected statistics, a different data source and data through the current season.
What you can do
- Pick up to six groups, by diagnosis (tear, fracture, sprain, strain and so on) or by body part, and see their Kaplan-Meier curves: the share of absences still going on each day after the first game missed, with 95% confidence bands.
- Read any day's values by hovering or with the arrow keys, and switch the chart between 30, 90 and 180 days.
- Filter by season, from 2018-19 to 2026-27 so far.
- Compare the numbers: median days out with a confidence interval, mean days over the first 180, the share still out at 30 days, and the share that were season-ending.
- Check whether a difference is real: log-rank tests between the groups you picked, with a plain-language verdict for each pair.
- See season-ending shares for every body part or diagnosis.
The selection is kept in the URL, so a comparison can be shared as a link.

What the data shows
As of November 27, 2026, the data covers 9 seasons and 8,489 injury absences.
- The diagnosis matters far more than the body part. Among diagnoses, 56 of 66 pairs differ significantly after adjusting for multiple comparisons. Among the 19 body parts with at least 30 absences, only 31 of 171 pairs do. Knee and ankle absences are statistically indistinguishable (p = 0.97), because most absences at every body part are short "soreness" or "sprain" listings.
- Tears are in a class of their own: a median of 65 days out, and 45% were still keeping the player out when his team's season ended. Knee tears have no median at all: their curve never drops below 50% within a season, and 68% were season-ending.
- Fractures last about four weeks (median 27 days), and about one in five (19%) ends the season.
- Strains last longer than sprains: a median of 9 days against 6 (p < 0.001).
- Most absences are short. The overall median is 4 days, about two games, and only 10% last beyond 30 days.

Methods
- An absence starts at the first game where a player is listed Out or Doubtful for an injury, and ends at his team's next game where he isn't. Days out are calendar days.
- Censoring: an absence still open when the team's season ends is censored at that team's actual last game, and one still open today is censored at the data date. Absences already under way on opening night are left out, because their start is unknown.
- Kaplan-Meier curves with 95% confidence intervals, and the median days out with its own interval.
- RMST to 180 days (restricted mean survival time): the average number of days out within the first 180, which uses every absence, censored ones included.
- Log-rank tests between groups, with Holm's adjustment for multiple comparisons.
- A Cox model (body part, diagnosis and season) points the same way. But the proportional-hazards assumption fails for 16 of its 38 terms, so its hazard ratios are only rough averages, and the Kaplan-Meier curves are the main result.
The statistics use the lifelines library, and the test suite checks the curves, RMST and log-rank statistic against hand-calculated examples.
Data
- Source: the NBA's official injury reports, which the league posts for every game day. Data: NBA.com official injury reports.
- Collected politely: one request at a time, at least 1.1 seconds apart (the host's robots.txt asks for a one-second crawl delay), with a descriptive User-Agent. Everything is cached, so finished days are never requested again. The first full collection took about an hour; a daily refresh makes a handful of requests.
- Only aggregates are published: curves, summaries and test results per group. The reports and the per-player rows stay on a private data volume, and the app has no per-player endpoint. Non-injury absences (illness, personal reasons, health and safety protocols, rest) are only counted, never shown.
- Refreshed daily in season and weekly in the offseason. Each rebuild is validated before it goes live, and if anything fails the app keeps serving the last good version.
Caveats
- The reports record game availability, not a formal injured list. A player waived while out looks "returned" unless he shows up out for another team soon after.
- "Questionable" ends an absence, following the league's own status, so a few late scratches are missed.
- 2018-19 is partial, and absences already under way at the start of a season are excluded, which leaves out many long tears that begin in the offseason.
- Reasons are free text, so rare diagnoses fall into "Unspecified". Small groups such as tears (78 absences) have wide confidence intervals.
Tech stack
- Data and statistics: Python, pdfplumber to read the reports, pandas, and lifelines for the survival analysis
- API: FastAPI, serving only aggregates, with no database
- Front end: React and TypeScript (Vite), with hand-drawn SVG charts
- Hosting: Docker, behind Caddy with automatic HTTPS. The app container can't reach the internet; a separate container collects the reports.