SlideShare a Scribd company logo
MONEY
BASKETBALL
Optimizing Basketball Player Selection Using Linear Programming
Hello!
Yash Vardhan Lohia
PC 09
INTRODUCTION
DOLLARS AND BALLERS
1
WHO TO
CHOOSE?
How to select a Player who
fits budget?
MONEYBALL
◇ Over the past decade, sports analytics has
seen an explosion in research and model
development to calculate wins, reaching cult
popularity with the release of Moneyball.
◇ Drawing inspiration from the Maximum
Coverage Problem (MCP) in Operations
Research, we explore the methodology and
possible solutions to a real-life “Moneyball”
problem in basketball drafting.
SWEET SPOTS
◇ The aim is to determine a player’s worth
through clustering their shots together into
“sweet spots” and estimating the number of
shots per game within each sweet spot.
◇ This data will then be fed into an optimization
algorithm to select an optimal basketball
lineup that maximizes total field goals per
game along with court coverage.
◇ Finally, additional constraints will be added
into the model that solve for three different
scenarios.
DATA COLLECTION
◇ Raw data is collected from Basketball Geek
(Basketball Geek, 2013), a public website
hosted by a PhD candidate in statistics, in a
play-by-play format for all 30 NBA teams
during the time period of Oct 2009 to April
2010.
◇ Visual Basic for Applications (VBA) macros are
created to combine the 1,215 Excel.csv files
into one consolidated table and imported into
SAS®.
DATA COLLECTION
◇This data provides the X and Y coordinates
for every shot taken, player name and
points earned if the shot is made.
◇The court size is 50x70 where (0, 0) begins
at the upper left side of the court (opponent
court corner near the coaching box bench).
The center of the offensive hoop is located
at (25, 5.25).
Raw Data Snippet of Boston vs.
Houston, Period 1
PERIOD TIME PLAYER NAME
POINTS
EARNED
X Y
1 4:00 PAUL PIERCE 2 25 6
1 5:45 KEVIN GARNETT 2 27 24
1 6:12 KENDRICK PERKINS 2 25 6
1 6:53 RAJON RONDO 2 25 6
1 7:18 RAY ALLEN 2 25 6
1 10:05 KEVIN GARNETT 2 17 6
1 11:41 PAUL PIERCE 2 25 6
SWEET SPOTS
◇ This raw data doesn’t take into account the fact that
players have strong and weak spots. A player may
shoot from the right side of the court often but miss
the majority of their shots and vice versa.
◇ Thus, the data is analyzed through clustering shots
made by each player into “Sweet Spots.” K-means
clustering is used to group similar X and Y
coordinates together using PROC FASTCLUS.
◇ In order to expedite the optimization algorithm, the
MAXCLUSTERS option is used to restrict the
maximum number of clusters to 3 for each player.
After determining a player’s sweet spots, the average
field goals are calculated for each player’s sweet
spot.
Model Dataset SamplePLAYER
SWEET
SPOT
MIN
X
MIN
Y
MAX
X
MAX
Y
NO. OF
GAMES
TOTAL
FIELD
GOALS
AVERAGE
GOALS PER
GAME
KOBE BRYANT 1 21 4 45 24 68 686 10.0
KOBE BRYANT 2 4 5 20 21 51 222 4.5
KOBE BRYANT 3 11 13 35 29 52 240 4.7
LeBRON JAMES 1 5 6 23 27 46 172 3.7
LeBRON JAMES 2 16 3 43 18 74 888 12.0
LeBRON JAMES 3 24 7 46 29 38 172 4.5
SHAQUILE O’NEAL 1 30 6 39 15 8 20 2.5
SHAQUILE O’NEAL 2 23 5 30 16 52 434 8.3
SHAQUILE O’NEAL 3 16 6 23 15 25 64 2.5
CLUSTER MAPPING
Kobe Bryant has the largest court coverage
and 10 points per game on average for the
1st cluster (blue area).
CLUSTER MAPPING
LeBron James has the highest points per
game in the 2nd cluster (orange area).
CLUSTER MAPPING
Shaquille O’Neal has slightly better coverage on
one side of the court (green area) than the other.
He scores fewer points per game compared to the
two other players aforementioned.
MAXIMIZING COVERAGE
◇ The problem presented falls under a classical
optimization problem called the Maximum Coverage
Problem (MCP).
◇ MCP is a problem where you want to select at most k
of the inputs to cover as much ground as possible.
◇ The traditional MCP program has been altered to
maximize game field goals instead of coverage.
◇ The court coverage is instead maximized while the
selected players do not have overlapping sweet spots.
◇ Additionally, the traditional MCP formulation has been
altered to accommodate the sweet spot aggregation of
the dataset.
MAXIMUM COVERAGE
FORMULATION
Where:
◇ players = i = Number of players = 440
◇ sweetspots = k = Number of sweet spots for a player = 3
◇ x = x axis of the court ranging from 0 to 50
◇ y = y axis of the court ranging from 0 to 70
◇ minX = minimum x coordinate for a player’s sweet spot
◇ maxX = maximum x coordinate for a player’s sweet spot
◇ minY = minimum y coordinate for a player’s sweet spot
◇ maxY = maximum y coordinate for a player’s sweet spot
◇ SweetSpotAssign i, k = Binary decision variable to assign Player i to Sweet Spot k
◇ GridPointOccupied x,y = Binary variable to determine if grid point (x,y) is occupied
◇ AvgFieldGoals i, k = Estimated field goals for Player i to Sweet Spot k
MAXIMUM COVERAGE
FORMULATION
◇ Equation (1) is the objective function
◇ Equation (2) provides that only five players are selected.
◇ Equation (3) provides that each player is only assigned to one of their
sweet spots.
◇ Equation (4) provides that a grid point is deemed “occupied” if a
player has been assigned to a sweet spot that covers that grid point.
◇ Equation (5) provides that players are not assigned to overlapping
grid points.
SCENARIO 1:
“SELECT PLAYER X” MODEL
◇ In this scenario, we address the question of what a
team should do if they know for a fact they want a
particular player in the lineup regardless of what
the model determines.
◇ In this instance, we introduce an additional
constraint that forces LeBron James in the model
and determines what remaining players should be
chosen to create an optimal team.
SweetSpotAssigni=LeBron James, k=1 = 1
RESULT: SELECT PLAYER X
◇ To this effect, Scenario 1 forces LeBron James into
the model and looks to see which players will
complement the court based on LeBron’s assigned
sweet spot.
◇ In this scenario, Antoine Wright, Corey Brewer, Kyle
Weaver, and Marcus Williams are chosen as the
other selected players. This team is estimated to
accumulate 31 field goals per game.
SCENARIO 2:
“BUDGET” MODEL
◇ We address the question of what a team should do if they
have a certain budget. Player salaries are downloaded from
ESPN and incorporated into the dataset.
◇ An additional constraint is then added so that the total cost of
the starting lineup does not exceed $30M.
playersΣi=1
sweetspotsΣk=1 Salary * SweetSpotAssigni,k ≤ $30,000,000
Where:
Salary i = Cost to employ Player i
RESULT:
“BUDGET” MODEL
◇ With a $30M starting lineup cap, Dwayne Wade, Andrea
Bargnani, Brian Skinner and Mike Wilks are chosen. This
team had a total of 29 field goals and salary of
$23,442,115.
◇ Compared to the optimal team in Scenario 1 which had 37
field goals and $34,022,808 salary, this is roughly a $10M
drop in salary with a 9 point drop in field goals.
◇ It is also interesting to note that with a salary cap, only
four players are chosen as no additional player could add
value to the team while remaining in budget.
CONCLUSION
We use the Maximum Coverage Problem
(MCP) in Operations Research and its
application to select an “ultimate dream team
lineup.” However, a team’s effectiveness
involves much more than just field goals such
as free throws, passing/rebounding and
general team dynamics.
References
◇ Basketball Geek. “NBA 2009-2010 Season Play by Play Data.”. June 2013.
Available at http://www.basketballgeek.com/downloads/2009-2010
◇ Church, R. and Velle, C. R. 1974. “The Maximal Covering Location
Problem.” Papers in Regional Science, 32: 101–118. doi: 10.1111/j.1435-
5597.1974.tb00902.x
◇ ESPN. “Field Goal Percentage Leaders 2009-2010 Season.” December 17,
2013. Available at http://espn.go.com/nba/statistics/team/_/stat/offense-
per-game/sort/fieldGoalPct/year/2010
◇ ESPN. “NBA Player Salaries - 2009-2010.” December, 2013. Available at
http://espn.go.com/nba/salaries/_/year/2010
◇ SAS Publishing. 2010. “SAS/OR® 9.22 User’s Guide: Mathematical
Programming.” Cary, NC: SAS Institute
◇ Photographs by Google Images.
Thanks!
Any questions?
You can find me at:
◇ @username
◇ user@mail.me

More Related Content

What's hot

BATA BANGLADESH LTD
BATA BANGLADESH LTDBATA BANGLADESH LTD
BATA BANGLADESH LTD
Syeda Rahanuma Ferdusy Haque
 
Ppt on big bazar
Ppt on big bazarPpt on big bazar
Ppt on big bazar
nishit sardhara
 
Big bazaar (Beginning and its way to success)
Big bazaar (Beginning and its way to success)Big bazaar (Beginning and its way to success)
Big bazaar (Beginning and its way to success)
Princy Gupta
 
Few innovative products
Few innovative productsFew innovative products
Few innovative products
leo
 
Customer Experience at ASOS
Customer Experience at ASOSCustomer Experience at ASOS
Customer Experience at ASOS
Yelena Starikova
 
Nestle Sales & Distribution
Nestle Sales & DistributionNestle Sales & Distribution
Nestle Sales & Distribution
Gokulnath Subramanian
 
Sales promotion at dmart
Sales promotion at dmartSales promotion at dmart
Sales promotion at dmart
Rahul Jain
 
Market segmentation of Bata Shoe Company Ltd.
Market segmentation of Bata Shoe Company Ltd.Market segmentation of Bata Shoe Company Ltd.
Market segmentation of Bata Shoe Company Ltd.
AHMED ISTIAQ MURAD
 
New bata
New bataNew bata
New bata
balaji mohan
 
HYPERMARKET
HYPERMARKETHYPERMARKET
HYPERMARKET
Harsh Raj
 
Bata
BataBata
Nestle marketing mix
Nestle marketing mixNestle marketing mix
Nestle marketing mix
Sapna Gupta
 
Project on MORE supermarket
Project on MORE supermarketProject on MORE supermarket
Project on MORE supermarket
thoufeeq786
 
Parle
ParleParle
pantaloon case
pantaloon casepantaloon case
pantaloon case
Himanshu Hirwani
 
DMart IMC
DMart IMCDMart IMC
DMart IMC
Bala Kumar
 
real fruit juice marketing strategies by universal business school students, ...
real fruit juice marketing strategies by universal business school students, ...real fruit juice marketing strategies by universal business school students, ...
real fruit juice marketing strategies by universal business school students, ...
Pranay chowdary Vunnam
 
Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)
Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)
Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)
Seshadri Vyas
 
Nestle India
Nestle IndiaNestle India
Nestle India
Yutika Sonawane
 
Sales And Distribution of Cadbury
Sales And Distribution of CadburySales And Distribution of Cadbury
Sales And Distribution of Cadbury
Bhavin Agrawal
 

What's hot (20)

BATA BANGLADESH LTD
BATA BANGLADESH LTDBATA BANGLADESH LTD
BATA BANGLADESH LTD
 
Ppt on big bazar
Ppt on big bazarPpt on big bazar
Ppt on big bazar
 
Big bazaar (Beginning and its way to success)
Big bazaar (Beginning and its way to success)Big bazaar (Beginning and its way to success)
Big bazaar (Beginning and its way to success)
 
Few innovative products
Few innovative productsFew innovative products
Few innovative products
 
Customer Experience at ASOS
Customer Experience at ASOSCustomer Experience at ASOS
Customer Experience at ASOS
 
Nestle Sales & Distribution
Nestle Sales & DistributionNestle Sales & Distribution
Nestle Sales & Distribution
 
Sales promotion at dmart
Sales promotion at dmartSales promotion at dmart
Sales promotion at dmart
 
Market segmentation of Bata Shoe Company Ltd.
Market segmentation of Bata Shoe Company Ltd.Market segmentation of Bata Shoe Company Ltd.
Market segmentation of Bata Shoe Company Ltd.
 
New bata
New bataNew bata
New bata
 
HYPERMARKET
HYPERMARKETHYPERMARKET
HYPERMARKET
 
Bata
BataBata
Bata
 
Nestle marketing mix
Nestle marketing mixNestle marketing mix
Nestle marketing mix
 
Project on MORE supermarket
Project on MORE supermarketProject on MORE supermarket
Project on MORE supermarket
 
Parle
ParleParle
Parle
 
pantaloon case
pantaloon casepantaloon case
pantaloon case
 
DMart IMC
DMart IMCDMart IMC
DMart IMC
 
real fruit juice marketing strategies by universal business school students, ...
real fruit juice marketing strategies by universal business school students, ...real fruit juice marketing strategies by universal business school students, ...
real fruit juice marketing strategies by universal business school students, ...
 
Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)
Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)
Gia Chatbot - Goibibo, MakeMyTrip (Go-MMT)
 
Nestle India
Nestle IndiaNestle India
Nestle India
 
Sales And Distribution of Cadbury
Sales And Distribution of CadburySales And Distribution of Cadbury
Sales And Distribution of Cadbury
 

Viewers also liked

Advanced operation research
Advanced operation researchAdvanced operation research
Advanced operation research
Sajid Ali
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
MayuR Khambhayata
 
Operation research project
Operation research projectOperation research project
Operation research project
Arun Kumar
 
Pfizer project management
Pfizer project managementPfizer project management
Pfizer project management
Yash Vardhan Lohia
 
Operation research project work
Operation research project workOperation research project work
Operation research project work
Ravi Prakash
 
Travelling salesman problem ( Operation Research)
Travelling salesman problem ( Operation Research)Travelling salesman problem ( Operation Research)
Travelling salesman problem ( Operation Research)
Muhammed Abdulla N C
 
Five database trends - updated April 2015
Five database trends - updated April 2015Five database trends - updated April 2015
Five database trends - updated April 2015
Guy Harrison
 
Jio portfolio Sherry Italia
Jio portfolio  Sherry ItaliaJio portfolio  Sherry Italia
Jio portfolio Sherry Italia
Sherry Italia
 
Current trends in DBMS
Current trends in DBMSCurrent trends in DBMS
Current trends in DBMS
Swatanu Satpathy
 
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
Beat Signer
 
decision making criterion
decision making criteriondecision making criterion
decision making criterion
Gaurav Sonkar
 
Employee benefits
Employee benefitsEmployee benefits
Employee benefits
Yash Vardhan Lohia
 
Reliance JIO Infocomm Limited
Reliance JIO Infocomm LimitedReliance JIO Infocomm Limited
Reliance JIO Infocomm Limited
Yash Vardhan Lohia
 
Back to Basics: What Are Domain Names and How Do They Work
Back to Basics: What Are Domain Names and How Do They WorkBack to Basics: What Are Domain Names and How Do They Work
Back to Basics: What Are Domain Names and How Do They Work
domain .ME
 
Decision theory
Decision theoryDecision theory
Decision theory
Aditya Mahagaonkar
 
Dbms
DbmsDbms
Dbms
sevtap87
 
Dbms models
Dbms modelsDbms models
Dbms models
devgocool
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
Dimara Hakim
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
rahulrathore725
 
Reliance Jio, Marketing and Business Analysis.
Reliance Jio, Marketing and Business Analysis.Reliance Jio, Marketing and Business Analysis.
Reliance Jio, Marketing and Business Analysis.
MARRIVINAY
 

Viewers also liked (20)

Advanced operation research
Advanced operation researchAdvanced operation research
Advanced operation research
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
 
Operation research project
Operation research projectOperation research project
Operation research project
 
Pfizer project management
Pfizer project managementPfizer project management
Pfizer project management
 
Operation research project work
Operation research project workOperation research project work
Operation research project work
 
Travelling salesman problem ( Operation Research)
Travelling salesman problem ( Operation Research)Travelling salesman problem ( Operation Research)
Travelling salesman problem ( Operation Research)
 
Five database trends - updated April 2015
Five database trends - updated April 2015Five database trends - updated April 2015
Five database trends - updated April 2015
 
Jio portfolio Sherry Italia
Jio portfolio  Sherry ItaliaJio portfolio  Sherry Italia
Jio portfolio Sherry Italia
 
Current trends in DBMS
Current trends in DBMSCurrent trends in DBMS
Current trends in DBMS
 
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
DBMS Architectures and Features - Lecture 7 - Introduction to Databases (1007...
 
decision making criterion
decision making criteriondecision making criterion
decision making criterion
 
Employee benefits
Employee benefitsEmployee benefits
Employee benefits
 
Reliance JIO Infocomm Limited
Reliance JIO Infocomm LimitedReliance JIO Infocomm Limited
Reliance JIO Infocomm Limited
 
Back to Basics: What Are Domain Names and How Do They Work
Back to Basics: What Are Domain Names and How Do They WorkBack to Basics: What Are Domain Names and How Do They Work
Back to Basics: What Are Domain Names and How Do They Work
 
Decision theory
Decision theoryDecision theory
Decision theory
 
Dbms
DbmsDbms
Dbms
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Database Management Systems (DBMS)
Database Management Systems (DBMS)Database Management Systems (DBMS)
Database Management Systems (DBMS)
 
Dbms slides
Dbms slidesDbms slides
Dbms slides
 
Reliance Jio, Marketing and Business Analysis.
Reliance Jio, Marketing and Business Analysis.Reliance Jio, Marketing and Business Analysis.
Reliance Jio, Marketing and Business Analysis.
 

Similar to Operation Research in Basketball Player Analysis

Lineup Efficiency
Lineup EfficiencyLineup Efficiency
Lineup Efficiency
Matt Hanamoto
 
Winning in Basketball with Data and Machine Learning
Winning in Basketball with Data and Machine LearningWinning in Basketball with Data and Machine Learning
Winning in Basketball with Data and Machine Learning
Konstantinos Pelechrinis
 
Integer Optimisation for Dream 11 Cricket Team Selection
Integer Optimisation for Dream 11 Cricket Team SelectionInteger Optimisation for Dream 11 Cricket Team Selection
Integer Optimisation for Dream 11 Cricket Team Selection
saurav singla
 
Football predictions
Football predictionsFootball predictions
Football predictions
ponton42
 
Columbia Presentation
Columbia PresentationColumbia Presentation
Columbia Presentation
Tanner Crouch
 
Soccer Stadium
Soccer StadiumSoccer Stadium
Soccer Stadium
Marco Carletti
 
Predicting the outcome of NBA
Predicting the outcome of NBA Predicting the outcome of NBA
Predicting the outcome of NBA
Lviv Data Science Summer School
 
Nba wage study
Nba wage studyNba wage study
Nba wage study
Ty Candler
 
Casino Over Under Presentation Brochure
Casino Over Under Presentation BrochureCasino Over Under Presentation Brochure
Casino Over Under Presentation Brochure
Jason Kobal
 
Sports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data ScienceSports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data Science
Konstantinos Pelechrinis
 
Loras College 2014 Business Analytics Symposium | Dan Conway: Sports Analytics
Loras College 2014 Business Analytics Symposium | Dan Conway: Sports AnalyticsLoras College 2014 Business Analytics Symposium | Dan Conway: Sports Analytics
Loras College 2014 Business Analytics Symposium | Dan Conway: Sports Analytics
Cartegraph
 
Bayesian Analysis of Draft Pick Value in Major League Soccer
Bayesian Analysis of Draft Pick Value in Major League SoccerBayesian Analysis of Draft Pick Value in Major League Soccer
Bayesian Analysis of Draft Pick Value in Major League Soccer
Soccermetrics Research LLC
 
Prediction Of Right Bowlers For Death Overs In Cricket
Prediction Of Right Bowlers For Death Overs In CricketPrediction Of Right Bowlers For Death Overs In Cricket
Prediction Of Right Bowlers For Death Overs In Cricket
IRJET Journal
 
Game theory
Game theoryGame theory
Game theory
PANKAJ PANDEY
 
A Framework For Scheduling Professional Sports Leagues
A Framework For Scheduling Professional Sports LeaguesA Framework For Scheduling Professional Sports Leagues
A Framework For Scheduling Professional Sports Leagues
Amber Ford
 
Module 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptxModule 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptx
DrNavaneethaKumar
 
Cs229 final report
Cs229 final reportCs229 final report
Cs229 final report
Alexandre Bucquet
 
Game theory
Game theoryGame theory
Game theory
Chirag Lakum
 
OR 14 15-unit_4
OR 14 15-unit_4OR 14 15-unit_4
OR 14 15-unit_4
Nageswara Rao Thots
 
ME 647 Project Exacta betting optimization model
ME 647 Project Exacta betting optimization modelME 647 Project Exacta betting optimization model
ME 647 Project Exacta betting optimization model
Benjamin Johnson
 

Similar to Operation Research in Basketball Player Analysis (20)

Lineup Efficiency
Lineup EfficiencyLineup Efficiency
Lineup Efficiency
 
Winning in Basketball with Data and Machine Learning
Winning in Basketball with Data and Machine LearningWinning in Basketball with Data and Machine Learning
Winning in Basketball with Data and Machine Learning
 
Integer Optimisation for Dream 11 Cricket Team Selection
Integer Optimisation for Dream 11 Cricket Team SelectionInteger Optimisation for Dream 11 Cricket Team Selection
Integer Optimisation for Dream 11 Cricket Team Selection
 
Football predictions
Football predictionsFootball predictions
Football predictions
 
Columbia Presentation
Columbia PresentationColumbia Presentation
Columbia Presentation
 
Soccer Stadium
Soccer StadiumSoccer Stadium
Soccer Stadium
 
Predicting the outcome of NBA
Predicting the outcome of NBA Predicting the outcome of NBA
Predicting the outcome of NBA
 
Nba wage study
Nba wage studyNba wage study
Nba wage study
 
Casino Over Under Presentation Brochure
Casino Over Under Presentation BrochureCasino Over Under Presentation Brochure
Casino Over Under Presentation Brochure
 
Sports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data ScienceSports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data Science
 
Loras College 2014 Business Analytics Symposium | Dan Conway: Sports Analytics
Loras College 2014 Business Analytics Symposium | Dan Conway: Sports AnalyticsLoras College 2014 Business Analytics Symposium | Dan Conway: Sports Analytics
Loras College 2014 Business Analytics Symposium | Dan Conway: Sports Analytics
 
Bayesian Analysis of Draft Pick Value in Major League Soccer
Bayesian Analysis of Draft Pick Value in Major League SoccerBayesian Analysis of Draft Pick Value in Major League Soccer
Bayesian Analysis of Draft Pick Value in Major League Soccer
 
Prediction Of Right Bowlers For Death Overs In Cricket
Prediction Of Right Bowlers For Death Overs In CricketPrediction Of Right Bowlers For Death Overs In Cricket
Prediction Of Right Bowlers For Death Overs In Cricket
 
Game theory
Game theoryGame theory
Game theory
 
A Framework For Scheduling Professional Sports Leagues
A Framework For Scheduling Professional Sports LeaguesA Framework For Scheduling Professional Sports Leagues
A Framework For Scheduling Professional Sports Leagues
 
Module 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptxModule 3 Game Theory (1).pptx
Module 3 Game Theory (1).pptx
 
Cs229 final report
Cs229 final reportCs229 final report
Cs229 final report
 
Game theory
Game theoryGame theory
Game theory
 
OR 14 15-unit_4
OR 14 15-unit_4OR 14 15-unit_4
OR 14 15-unit_4
 
ME 647 Project Exacta betting optimization model
ME 647 Project Exacta betting optimization modelME 647 Project Exacta betting optimization model
ME 647 Project Exacta betting optimization model
 

Recently uploaded

A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
bmucuha
 
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
lzdvtmy8
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
hyfjgavov
 
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
slg6lamcq
 
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
aguty
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理 原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
tzu5xla
 
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
1tyxnjpia
 
Build applications with generative AI on Google Cloud
Build applications with generative AI on Google CloudBuild applications with generative AI on Google Cloud
Build applications with generative AI on Google Cloud
Márton Kodok
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
ElizabethGarrettChri
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
z6osjkqvd
 
一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理
一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理
一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理
asyed10
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
v7oacc3l
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
NABLAS株式会社
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
ywqeos
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
mkkikqvo
 

Recently uploaded (20)

A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
 
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
 
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理 原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
原版一比一爱尔兰都柏林大学毕业证(UCD毕业证书)如何办理
 
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
一比一原版(Sheffield毕业证书)谢菲尔德大学毕业证如何办理
 
Build applications with generative AI on Google Cloud
Build applications with generative AI on Google CloudBuild applications with generative AI on Google Cloud
Build applications with generative AI on Google Cloud
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
 
一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理
一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理
一比一原版美国帕森斯设计学院毕业证(parsons毕业证书)如何办理
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
 

Operation Research in Basketball Player Analysis

  • 1. MONEY BASKETBALL Optimizing Basketball Player Selection Using Linear Programming
  • 4. WHO TO CHOOSE? How to select a Player who fits budget?
  • 5.
  • 6. MONEYBALL ◇ Over the past decade, sports analytics has seen an explosion in research and model development to calculate wins, reaching cult popularity with the release of Moneyball. ◇ Drawing inspiration from the Maximum Coverage Problem (MCP) in Operations Research, we explore the methodology and possible solutions to a real-life “Moneyball” problem in basketball drafting.
  • 7. SWEET SPOTS ◇ The aim is to determine a player’s worth through clustering their shots together into “sweet spots” and estimating the number of shots per game within each sweet spot. ◇ This data will then be fed into an optimization algorithm to select an optimal basketball lineup that maximizes total field goals per game along with court coverage. ◇ Finally, additional constraints will be added into the model that solve for three different scenarios.
  • 8. DATA COLLECTION ◇ Raw data is collected from Basketball Geek (Basketball Geek, 2013), a public website hosted by a PhD candidate in statistics, in a play-by-play format for all 30 NBA teams during the time period of Oct 2009 to April 2010. ◇ Visual Basic for Applications (VBA) macros are created to combine the 1,215 Excel.csv files into one consolidated table and imported into SAS®.
  • 9. DATA COLLECTION ◇This data provides the X and Y coordinates for every shot taken, player name and points earned if the shot is made. ◇The court size is 50x70 where (0, 0) begins at the upper left side of the court (opponent court corner near the coaching box bench). The center of the offensive hoop is located at (25, 5.25).
  • 10.
  • 11. Raw Data Snippet of Boston vs. Houston, Period 1 PERIOD TIME PLAYER NAME POINTS EARNED X Y 1 4:00 PAUL PIERCE 2 25 6 1 5:45 KEVIN GARNETT 2 27 24 1 6:12 KENDRICK PERKINS 2 25 6 1 6:53 RAJON RONDO 2 25 6 1 7:18 RAY ALLEN 2 25 6 1 10:05 KEVIN GARNETT 2 17 6 1 11:41 PAUL PIERCE 2 25 6
  • 12. SWEET SPOTS ◇ This raw data doesn’t take into account the fact that players have strong and weak spots. A player may shoot from the right side of the court often but miss the majority of their shots and vice versa. ◇ Thus, the data is analyzed through clustering shots made by each player into “Sweet Spots.” K-means clustering is used to group similar X and Y coordinates together using PROC FASTCLUS. ◇ In order to expedite the optimization algorithm, the MAXCLUSTERS option is used to restrict the maximum number of clusters to 3 for each player. After determining a player’s sweet spots, the average field goals are calculated for each player’s sweet spot.
  • 13. Model Dataset SamplePLAYER SWEET SPOT MIN X MIN Y MAX X MAX Y NO. OF GAMES TOTAL FIELD GOALS AVERAGE GOALS PER GAME KOBE BRYANT 1 21 4 45 24 68 686 10.0 KOBE BRYANT 2 4 5 20 21 51 222 4.5 KOBE BRYANT 3 11 13 35 29 52 240 4.7 LeBRON JAMES 1 5 6 23 27 46 172 3.7 LeBRON JAMES 2 16 3 43 18 74 888 12.0 LeBRON JAMES 3 24 7 46 29 38 172 4.5 SHAQUILE O’NEAL 1 30 6 39 15 8 20 2.5 SHAQUILE O’NEAL 2 23 5 30 16 52 434 8.3 SHAQUILE O’NEAL 3 16 6 23 15 25 64 2.5
  • 14. CLUSTER MAPPING Kobe Bryant has the largest court coverage and 10 points per game on average for the 1st cluster (blue area).
  • 15. CLUSTER MAPPING LeBron James has the highest points per game in the 2nd cluster (orange area).
  • 16. CLUSTER MAPPING Shaquille O’Neal has slightly better coverage on one side of the court (green area) than the other. He scores fewer points per game compared to the two other players aforementioned.
  • 17. MAXIMIZING COVERAGE ◇ The problem presented falls under a classical optimization problem called the Maximum Coverage Problem (MCP). ◇ MCP is a problem where you want to select at most k of the inputs to cover as much ground as possible. ◇ The traditional MCP program has been altered to maximize game field goals instead of coverage. ◇ The court coverage is instead maximized while the selected players do not have overlapping sweet spots. ◇ Additionally, the traditional MCP formulation has been altered to accommodate the sweet spot aggregation of the dataset.
  • 18. MAXIMUM COVERAGE FORMULATION Where: ◇ players = i = Number of players = 440 ◇ sweetspots = k = Number of sweet spots for a player = 3 ◇ x = x axis of the court ranging from 0 to 50 ◇ y = y axis of the court ranging from 0 to 70 ◇ minX = minimum x coordinate for a player’s sweet spot ◇ maxX = maximum x coordinate for a player’s sweet spot ◇ minY = minimum y coordinate for a player’s sweet spot ◇ maxY = maximum y coordinate for a player’s sweet spot ◇ SweetSpotAssign i, k = Binary decision variable to assign Player i to Sweet Spot k ◇ GridPointOccupied x,y = Binary variable to determine if grid point (x,y) is occupied ◇ AvgFieldGoals i, k = Estimated field goals for Player i to Sweet Spot k
  • 19.
  • 20. MAXIMUM COVERAGE FORMULATION ◇ Equation (1) is the objective function ◇ Equation (2) provides that only five players are selected. ◇ Equation (3) provides that each player is only assigned to one of their sweet spots. ◇ Equation (4) provides that a grid point is deemed “occupied” if a player has been assigned to a sweet spot that covers that grid point. ◇ Equation (5) provides that players are not assigned to overlapping grid points.
  • 21. SCENARIO 1: “SELECT PLAYER X” MODEL ◇ In this scenario, we address the question of what a team should do if they know for a fact they want a particular player in the lineup regardless of what the model determines. ◇ In this instance, we introduce an additional constraint that forces LeBron James in the model and determines what remaining players should be chosen to create an optimal team. SweetSpotAssigni=LeBron James, k=1 = 1
  • 22. RESULT: SELECT PLAYER X ◇ To this effect, Scenario 1 forces LeBron James into the model and looks to see which players will complement the court based on LeBron’s assigned sweet spot. ◇ In this scenario, Antoine Wright, Corey Brewer, Kyle Weaver, and Marcus Williams are chosen as the other selected players. This team is estimated to accumulate 31 field goals per game.
  • 23.
  • 24. SCENARIO 2: “BUDGET” MODEL ◇ We address the question of what a team should do if they have a certain budget. Player salaries are downloaded from ESPN and incorporated into the dataset. ◇ An additional constraint is then added so that the total cost of the starting lineup does not exceed $30M. playersΣi=1 sweetspotsΣk=1 Salary * SweetSpotAssigni,k ≤ $30,000,000 Where: Salary i = Cost to employ Player i
  • 25. RESULT: “BUDGET” MODEL ◇ With a $30M starting lineup cap, Dwayne Wade, Andrea Bargnani, Brian Skinner and Mike Wilks are chosen. This team had a total of 29 field goals and salary of $23,442,115. ◇ Compared to the optimal team in Scenario 1 which had 37 field goals and $34,022,808 salary, this is roughly a $10M drop in salary with a 9 point drop in field goals. ◇ It is also interesting to note that with a salary cap, only four players are chosen as no additional player could add value to the team while remaining in budget.
  • 26.
  • 27. CONCLUSION We use the Maximum Coverage Problem (MCP) in Operations Research and its application to select an “ultimate dream team lineup.” However, a team’s effectiveness involves much more than just field goals such as free throws, passing/rebounding and general team dynamics.
  • 28. References ◇ Basketball Geek. “NBA 2009-2010 Season Play by Play Data.”. June 2013. Available at http://www.basketballgeek.com/downloads/2009-2010 ◇ Church, R. and Velle, C. R. 1974. “The Maximal Covering Location Problem.” Papers in Regional Science, 32: 101–118. doi: 10.1111/j.1435- 5597.1974.tb00902.x ◇ ESPN. “Field Goal Percentage Leaders 2009-2010 Season.” December 17, 2013. Available at http://espn.go.com/nba/statistics/team/_/stat/offense- per-game/sort/fieldGoalPct/year/2010 ◇ ESPN. “NBA Player Salaries - 2009-2010.” December, 2013. Available at http://espn.go.com/nba/salaries/_/year/2010 ◇ SAS Publishing. 2010. “SAS/OR® 9.22 User’s Guide: Mathematical Programming.” Cary, NC: SAS Institute ◇ Photographs by Google Images.
  • 29. Thanks! Any questions? You can find me at: ◇ @username ◇ user@mail.me