Upload 5 files
Browse files- README.md +99 -3
- boxplot_games_played.png +3 -0
- boxplot_points_per_game.png +3 -0
- boxplot_win_shares.png +3 -0
- nba_draft_EDA_EDA_&_Dataset.ipynb +0 -0
README.md
CHANGED
|
@@ -1,3 +1,99 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🏀 NBA Draft Data Analysis (1989–2021)
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
In this project, I analyzed NBA draft data from 1989 to 2021.
|
| 5 |
+
The goal was to understand what makes a player a **Top 10 draft pick**.
|
| 6 |
+
|
| 7 |
+
This project included:
|
| 8 |
+
- Data Cleaning
|
| 9 |
+
- Outlier Detection
|
| 10 |
+
- Descriptive Statistics
|
| 11 |
+
- Visualizations
|
| 12 |
+
- Research Questions and Insights
|
| 13 |
+
|
| 14 |
+
Dataset source: [Kaggle – NBA Draft Basketball Player Data](https://www.kaggle.com/datasets/mattop/nba-draft-basketball-player-data-19892021)
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## Objective
|
| 19 |
+
The main goal was to identify what characteristics separate Top 10 NBA draft picks from other drafted players.
|
| 20 |
+
|
| 21 |
+
**Target variable:**
|
| 22 |
+
`top10` → 1 = drafted in Top 10, 0 = otherwise.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Step 1: Data Cleaning
|
| 27 |
+
- Removed irrelevant columns like `player`, `team`, and `college`.
|
| 28 |
+
- Checked for missing values and replaced numeric NaNs with the column mean.
|
| 29 |
+
- Removed duplicate rows.
|
| 30 |
+
|
| 31 |
+
Final dataset is clean and ready for analysis.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Step 2: Outlier Detection
|
| 36 |
+
- Used the **IQR (Interquartile Range)** method to remove extreme outliers.
|
| 37 |
+
- This helped to remove unrealistic values that could distort averages, like superstars with very high point-per-game stats.
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## Step 3: Descriptive Statistics
|
| 42 |
+
- Calculated mean, median, and standard deviation for all numeric columns.
|
| 43 |
+
- Found positive correlations between:
|
| 44 |
+
- `points_per_game` and `win_shares`
|
| 45 |
+
- `assists` and `total_rebounds`
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## Step 4: Research Questions and Visualizations
|
| 50 |
+
|
| 51 |
+
### **Question 1:**
|
| 52 |
+
Do Top 10 draft picks score more points per game?
|
| 53 |
+
|
| 54 |
+
**Answer:**
|
| 55 |
+
Yes — Top 10 picks have a higher median points per game, suggesting that scoring ability is an important factor for early draft selection.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
### **Question 2:**
|
| 60 |
+
Do Top 10 picks play more games in their career?
|
| 61 |
+
|
| 62 |
+
**Answer:**
|
| 63 |
+
Yes — Top 10 picks usually play more total games, showing they tend to have longer and more consistent careers.
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
### **Question 3:**
|
| 68 |
+
Do Top 10 picks contribute more to team wins?
|
| 69 |
+
|
| 70 |
+
**Answer:**
|
| 71 |
+
Yes — Their `win_shares` values are generally higher, meaning they help their teams win more often.
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## Key Insights
|
| 76 |
+
- Top 10 players **score more**, **play more games**, and **contribute more** to their teams.
|
| 77 |
+
- These factors show that high draft selections usually reflect player quality and potential.
|
| 78 |
+
- Teams generally make good choices with early draft picks.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## Tools Used
|
| 83 |
+
- Python (Pandas, NumPy)
|
| 84 |
+
- Matplotlib, Seaborn
|
| 85 |
+
- Google Colab / Jupyter Notebook
|
| 86 |
+
- Hugging Face Datasets
|
| 87 |
+
|
| 88 |
+
---
|
| 89 |
+
|
| 90 |
+
## Files Included
|
| 91 |
+
- `nbaplayersdraft.csv` – dataset file
|
| 92 |
+
- `nba_draft_EDA.ipynb` – notebook with analysis and code
|
| 93 |
+
- `README.md` – this summary file
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
## Video Presentation
|
| 98 |
+
A short 2–3 minute overview of the process and results.
|
| 99 |
+
*(Add your video link here after uploading it)*
|
boxplot_games_played.png
ADDED
|
Git LFS Details
|
boxplot_points_per_game.png
ADDED
|
Git LFS Details
|
boxplot_win_shares.png
ADDED
|
Git LFS Details
|
nba_draft_EDA_EDA_&_Dataset.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|