rsandan.github.ioSports · Markets · DataVol. 1 · Dec 2026

The Hobby Desk · Work in progress

Box Score to Cardboard

A rookie drops 40 on a Tuesday. By Wednesday his cards cost more. How much more, for how long, and does the market get it wrong?

By Ryan Sandan · Event study · Python, pandas, nba_api

Card prices are a public, real-money bet on a player's future. Collectors react to the same news a front office does, only faster and with less patience. When a second-year guard has a career night, his rookie cards move within hours. When a star tears a ligament, they move the other way.

This project measures those moves the way finance measures a stock's reaction to an earnings report. Take each card's daily price change, subtract what the whole card market did that day, and add up what's left over the days around the event. Average that across dozens of events and you learn what a breakout game, an injury or a trade is actually worth.

The question I care about most is the overreaction. One big night is a small sample. If prices spike and then give most of it back, the market is reading noise as signal, the same mistake front offices pay analysts to avoid.

Real sold-price data for sports cards is the hard part, so the method is built and tested first. The lab below runs the full event study in your browser on a simulated market. Plant an effect, add noise, and see if the method can find it.

The LabPlant an effect in a fake card market, then see if the event study recovers it.

Planted, day 7–
Found, day 7–
90% interval–
Verdict–

Simulated: 40 cards, 150 days, a shared market trend and card-level noise. Dashed line is the truth you planted; solid line and band are what the method recovered. Try 5 events with high noise and watch it fall apart.

Breakout or Fluke?Type in a stat line. Game Score versus the player's own baseline decides if it counts as an event.

Player baseline:
Game Score–
vs. baseline–
Call

Game Score is John Hollinger's one-number summary of a box score. A game 2+ standard deviations above the player's last 10 games becomes an event, dated the next day, when the card market reacts. Same rule as src/players.py.

How It Works

1. Find events

Game logs from stats.nba.com via nba_api. Breakouts and duds from Game Score; injuries and trades logged by hand.

2. Strip the market

Each card's daily log return minus an equal-weighted index of every tracked card. The leftover is the player's own news.

3. Add it up

Sum from 3 days before to 3 weeks after, average by event type, and bootstrap over events for honest intervals.

The Data, Honestly

SourceGivesCatch
nba_apiEvery game log, freeRate limited, so the code paces itself
Paid price historySold prices, raw and gradedLicenses allow analysis, not reposting rows; the site shows aggregates only
Hand-logged watchlist~30 rookie cards, by handSlow, but mine to publish
eBay sold listingsWhat most trackers useScraping likely breaks eBay's terms; their sold API is partner-only. Not used.

Your TurnThree things to build next. Each one is a real improvement, not homework.

  1. Set-level market index. Prizm, Select and Optic don't move together. In event_study.py, let abnormal_returns() take a card-to-set map and subtract the set's own index instead of the whole market.
  2. Test the overreaction. Add a reversal_share() function: of the day-2 peak, what share is gone by day 21? Bootstrap it. If it's well above zero, the market overreacts.
  3. Hot streaks, not just hot nights. In players.py, flag five-game stretches with a rolling Game Score far above baseline, and compare their CAR with single-game breakouts.
Read the code ↗Back to portfolioSimulated data in the lab · No real prices shown