This repo reproduces the end‑to‑end analysis delivered to Canada Basketball.
pip install -r requirements.txt
python timeout_pipeline.py --pbp "FIBA Database - pbp.csv"
Key steps
- ETL – load and clean the play‑by‑play CSV.
- Win‑Probability Model – logistic on
score_diff,time_remaining,period_num. - Δ‑WPA Regressor – gradient‑boosting with context (run size, timeouts left, etc.).
- Monte‑Carlo Traffic Lights – bootstrapped residuals → green / yellow / red.
- Figures – heat‑map, situational bar chart, cumulative gain.
Outputs land in outputs/.