ABOUT THIS MODEL
Methodology, data sources, and limitations
This NBA Draft Model uses machine learning to objectively evaluate draft prospects by analyzing college performance data and physical attributes. The goal is to predict NBA success and identify similar player comparisons based on playing style.
Built as a portfolio project, this model demonstrates end-to-end data science workflow: from data collection and feature engineering to model training, interpretation, and deployment.
Spearman ρ = 0.393: Measures rank correlation between predicted and actual NBA success. A correlation above 0.35 indicates meaningful predictive power for draft rankings.
Validated using leave-one-year-out cross-validation across 16 draft classes (2010-2025) to ensure the model generalizes to unseen prospects.
1. Data Collection
- 771 prospects from 2010-2026 draft classes
- College statistics: points, assists, rebounds, shooting percentages
- Physical measurements: height, age, international status
- NBA outcomes: career impact scores based on Win Shares and seasons played
2. Feature Engineering
- Normalized per-40-minute statistics for fair comparison
- Position-specific z-scores (guards vs. bigs)
- Age adjustment: +5% boost per year younger than 19.5
- Composite features: defensive impact, versatility, scoring efficiency
- Advanced metrics: True Shooting %, AST/TO ratio, rim finishing %
3. Model Training
- Algorithm: XGBoost Regression
- Target variable: NBA Impact Score (career Win Shares + seasons played)
- Hyperparameters: max_depth=4, learning_rate=0.05, n_estimators=200
- Training set: 719 prospects with known NBA outcomes (2010-2025)
- Validation: Leave-one-year-out cross-validation
4. Model Interpretation
- SHAP values: Explain which features drive each prediction
- Global feature importance: Age (23.6%), Defensive Impact (7.6%), AST/TO (5.9%)
- Individual explanations: Top 3 positive and negative factors per prospect
5. Player Comparisons
- Cosine similarity on normalized playing style features
- Excludes demographic features (age, height) to focus on skillset
- Position-specific z-scores ensure fair comparisons
- Minimum 25 NBA games played for historical player pool
What is the NBA Impact Score?
The NBA Impact Score is the target variablethe model predicts—a composite metric measuring career success in the NBA. It combines three components to create a holistic measure of a player's professional impact:
How It's Calculated
Raw Calculation Formula
Raw Score = Career Win Shares + Seasons Played + (Games Played / 100)
Then standardized (z-score normalized) across all 719 historical players (2010-2025)
Final Range: Approximately -5.5 to +6.7 (centered near 0)
Career Win Shares (Primary)
Win Shares estimate how many wins a player contributed to their team over their career. This advanced stat accounts for both offensive and defensive contributions, providing a comprehensive measure of on-court value. Example: A player with 50 career Win Shares contributed approximately 50 wins above replacement level.
Seasons Played (Longevity Bonus)
Each season played adds +1 to the raw score. This rewards players who sustain NBA careers over multiple seasons, indicating consistent value and adaptability. A 10-year career adds +10 to the raw score, separating brief flashes from lasting contributors.
Games Played (Availability Factor)
Games played divided by 100 adds a bonus for durability. Playing 500 career games adds +5 to the raw score. This accounts for availability—players who stay healthy and remain on the court provide more value than those frequently sidelined by injury or inconsistency.
Score Interpretation
Observed Range: -5.5 to +6.7 based on 719 historical players (2010-2025). The distribution is centered near 0 after z-score normalization, with positive scores indicating above-average NBA careers and negative scores indicating below-average impact.
College basketball statistics and NBA career data. All scraping respects robots.txt and includes 3-second rate limiting.
Official NBA API wrapper for combine measurements and supplemental data. Rate limited to 0.6 seconds between requests.
Data Currency: Model trained on data through the 2025 draft class. Last updated: 2026-05-15
This model is for educational and portfolio purposes. It should not be used for real draft decisions or betting. NBA success depends on many factors this model cannot capture:
- Injury history and durability — Career-altering injuries dramatically impact outcomes but are unpredictable
- Team fit and opportunity — Playing time, role, and coaching quality vary greatly across NBA teams
- Mental factors — Work ethic, coachability, and psychological resilience are not measurable from statistics
- Sample size — 771 prospects is relatively small for machine learning, limiting prediction confidence
- G-League and international prospects — Model trained primarily on NCAA players, may not generalize well to other development paths
- Evolving game — NBA playstyle changes over time (e.g., increased 3-point shooting), which may reduce model accuracy for recent classes
Use this model as one input among many when evaluating prospects. Combine quantitative analysis with scouting reports, game film, and domain expertise.
ML Pipeline (Python)
- XGBoost 3.2.0
- SHAP 0.43+
- scikit-learn 1.3+
- pandas 2.1+
- nba_api 1.4+
Frontend
- Next.js 15 (App Router)
- TypeScript (strict mode)
- Tailwind CSS 3.4
- Recharts 3.8
- Vercel
This project is open-source and available for educational use. Built as a portfolio demonstration of end-to-end ML engineering and full-stack development.
Version: 1.0.0 •Last Updated: 2026-05-15