Skip to content

JoseJSmith/NBA-optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

NBA-optimization

This project combines supervised learning with constrained optimization to evaluate NBA player performance and construct optimal team rosters under realistic constraints such as salary caps and positional requirements.

Developed as part of a summer analytics course, the project demonstrates how data-driven methods can improve decision-making in professional sports, from free agency and draft strategy to long-term roster planning.

Project Summary

A custom performance metric was developed using Lasso regression to predict team wins. These model coefficients were then mapped to individual player statistics to estimate each player's contribution to team success. The resulting player-level metrics were used in an optimization model that selects the most competitive roster subject to real-world constraints, including:

  • Salary cap limits
  • Positional requirements (e.g., minimum number of guards, forwards, and centers)
  • Roster size restrictions

Tools and Techniques

  • Python (Pandas, NumPy, scikit-learn, CVXPY)
  • Regularized regression: Lasso, Ridge, and ElasticNet
  • Feature engineering and normalization
  • Time-series-aware training/test splits
  • Optimization modeling using CVXPY
  • Data scraping using the hoopR R package

Project Structure

data/
├── NBAAwayPer100.csv
├── NBAHomePer100.csv
├── PlayerRAPM.csv
├── TeamRAPMMinutesWeighted.csv
├── coefficients_df.csv
├── master_df_with_lags.csv
├── model_coefficients.csv
├── players-2.csv
├── positions1.csv
├── salaries.csv

nba_optimization.ipynb # Main notebook for model training and optimization
DSO 585 Final Project-Copy.ipynb # Backup or alternate notebook version
nba-optimization-report.pdf # Final report summarizing project findings
README.md # Project documentation
final_report.pdf # Summary of project methodology and findings
final_presentation.pptx # Slide deck used for final presentation

Business Implications

  • Improved free agency and draft decisions based on data-driven metrics
  • Cost-effective team construction through optimization under financial constraints
  • Framework can be adapted for other sports leagues (e.g., WNBA) or scouting models
  • Potential for future enhancements including injury risk, contract incentives, and trade analysis

Authors

Group project by:
Jose Smith, Graeme Ashley, Timothy Wijaya| MS in Business Analytics, USC

About

Creating an optimal NBA roster using supervised learning and optimization techniques

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors