You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NBA Stadium Attendance Prediction Using Game Intensity Modeling
This project predicts NBA stadium attendance by modeling game intensity and combining it with contextual data like weather. A two-stage PyTorch pipeline first estimates point differential as a proxy for excitement, then predicts attendance to support scheduling, promotion, and dynamic pricing decisions for the NBA.
🧠 Key Features
Two-stage modeling pipeline: Predict game score margin and use it to forecast attendance.
Data integration: Combines box score, weather, and game metadata from 2022–2025 seasons.
Model serving: FastAPI-based inference with ONNX optimization.
Online evaluation: Data drift detection and synthetic data testing for real-time robustness.
🏀 Motivation
NBA game schedules and TV allocations are often fixed and rarely optimized for fan interest. This project introduces an ML-based tool that forecasts attendance using game intensity signals and contextual factors, allowing the NBA to identify underperforming matchups and optimize resource allocation, promotions, and ticket pricing.
🧪 System Overview
Model 1: Predicts point differential using rolling averages of team statistics.
Model 2: Uses point differential and weather data to predict game attendance.
Serving: FastAPI endpoint for real-time inference; ONNX conversion for performance.
Evaluation: MLFlow for offline tracking, Alibi for online data drift detection.
End-to-end NBA analytics pipeline for predicting game outcomes and attendance using PyTorch, MLflow, and ONNX. Includes data scraping, model training, quantization, and scalable deployment with FastAPI and Triton Inference Server.