Nflwar: a Reproducible Method for Offensive Player

Nflwar: a Reproducible Method for Offensive Player

nflWAR: A Reproducible Method for Offensive Player Evaluation in Football Ron Yurko Sam Ventura Max Horowitz Department of Statistics Carnegie Mellon University NESSIS, 2017 Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 1 / 36 nflscrapR: R package created by Maksim Horowitz to enable easy data access and promote reproducible NFL research Collects play-by-play data from NFL.com and formats into R data frames Data is available for all games starting in 2009 Available on Github, install with: devtools::install github(repo=maksimhorowitz/nflscrapR) Reproducible Research with nflscrapR Recent work in football analytics is not easily reproducible: Reliance on proprietary and costly data sources Data quality relies on potentially biased human judgement Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 2 / 36 Reproducible Research with nflscrapR Recent work in football analytics is not easily reproducible: Reliance on proprietary and costly data sources Data quality relies on potentially biased human judgement nflscrapR: R package created by Maksim Horowitz to enable easy data access and promote reproducible NFL research Collects play-by-play data from NFL.com and formats into R data frames Data is available for all games starting in 2009 Available on Github, install with: devtools::install github(repo=maksimhorowitz/nflscrapR) Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 2 / 36 And the comments... Pittsburgh Fans React Pittsburgh Post-Gazette article by Liz Bloom covered recent nflscrapR research and status of statistics in football Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 3 / 36 Pittsburgh Fans React Pittsburgh Post-Gazette article by Liz Bloom covered recent nflscrapR research and status of statistics in football And the comments... Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 3 / 36 Another Comment... Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 4 / 36 Tremendous Insight! Recognizes the key flaws of raw football statistics: Moving parts in every play Need to assign credit to each player involved in a play Ultimately evaluate players in terms of wins Using nflscrapR we introduce nflWAR for offensive players: Reproducible framework for wins above replacement Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 5 / 36 Goals of nflWAR Properly evaluate every play Assign individual player contribution on each play Evaluate relative to replacement level Convert to a wins scale Estimate the uncertainty in WAR Apply this framework to each available season, 2009-2016 Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 6 / 36 How to Value Plays? Expected Points (EP): Value of play is in terms of E(points of next scoring play) How many points have teams scored when in similar situations? Several ways to model this Win Probability (WP): Value of play is in terms of P(Win) Have teams in similar situations won the game? Common approach is logistic regression Can apply nflWAR framework to both, but will focus on EP today Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 7 / 36 But what defines a similar play? Linear Regression: E(Y jX ) = β0 + β1Xdown + β2Xyards to go + ::: But is treating the next score as continuous appropriate? How to Calculate EP? Response: Y 2 fTouchdown (7), Field Goal (3), Safety (2), -Touchdown (-7), -Field Goal (-3), -Safety (-2), No Score (0)g Covariates: X = fdown, yards to go, yard line, ...g \Nearest Neighbors": Identify similar plays in historical data based on down, yards to go, yard line, etc. and take the average Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 8 / 36 Linear Regression: E(Y jX ) = β0 + β1Xdown + β2Xyards to go + ::: But is treating the next score as continuous appropriate? How to Calculate EP? Response: Y 2 fTouchdown (7), Field Goal (3), Safety (2), -Touchdown (-7), -Field Goal (-3), -Safety (-2), No Score (0)g Covariates: X = fdown, yards to go, yard line, ...g \Nearest Neighbors": Identify similar plays in historical data based on down, yards to go, yard line, etc. and take the average But what defines a similar play? Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 8 / 36 But is treating the next score as continuous appropriate? How to Calculate EP? Response: Y 2 fTouchdown (7), Field Goal (3), Safety (2), -Touchdown (-7), -Field Goal (-3), -Safety (-2), No Score (0)g Covariates: X = fdown, yards to go, yard line, ...g \Nearest Neighbors": Identify similar plays in historical data based on down, yards to go, yard line, etc. and take the average But what defines a similar play? Linear Regression: E(Y jX ) = β0 + β1Xdown + β2Xyards to go + ::: Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 8 / 36 How to Calculate EP? Response: Y 2 fTouchdown (7), Field Goal (3), Safety (2), -Touchdown (-7), -Field Goal (-3), -Safety (-2), No Score (0)g Covariates: X = fdown, yards to go, yard line, ...g \Nearest Neighbors": Identify similar plays in historical data based on down, yards to go, yard line, etc. and take the average But what defines a similar play? Linear Regression: E(Y jX ) = β0 + β1Xdown + β2Xyards to go + ::: But is treating the next score as continuous appropriate? Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 8 / 36 Distribution of Next Score Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 9 / 36 Linear Regression Approach... What are the assumptions of linear regression? 2 i ∼ N(0; σ )(iid) Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 10 / 36 Linear Regression Approach... IS A DISASTER! What are the assumptions of linear regression? 2 i ∼ N(0; σ )(iid) Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 11 / 36 Multinomial Logistic Regression Logistic regression to model the probabilities of Y 2 fTouchdown (7), Field Goal (3), Safety (2), -Touchdown (-7), -Field Goal (-3), -Safety (-2), No Score (0)g Specified with 6 logit transformations relative to No Score: P(Y = TouchdownjX = x) log( ) = β + βT x P(Y = No ScorejX = x) 10 1 P(Y = Field GoaljX = x) log( ) = β + βT x P(Y = No ScorejX = x) 20 2 . P(Y = −TouchdownjX = x) log( ) = β + βT x P(Y = No ScorejX = x) 60 6 Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 12 / 36 Multinomial Logistic Regression Model is generating probabilities, agnostic of value associated with each next score type Next Score: Y 2 fTouchdown (7), Field Goal (3), Safety (2), No Score (0), -Safety (-2), -Field Goal (-3), -Touchdown (-7)g Situation: X = fdown, yards to go, yard line, ...g Outcome probabilities: P(Y = yjX ) P Expected Points (EP) = E(Y jX ) = y P(Y = yjX ) ∗ y Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 13 / 36 For passing plays can use air yards to calculate airEPA and yacEPA (yards after catch EPA): airEPAplayi = EPin air playi − EPstart playi yacEPAplayi = EPplayi+1 − EPin air playi But how much credit does each player deserve? e.g. On a pass play, how much credit does a QB get vs the receiver? One player is not solely responsible for a play's EPA Expected Points Added Expected Points Added (EPA) estimates a play's value based on the change in situation, providing a point value EPAplayi = EPplayi+1 − EPplayi Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 14 / 36 But how much credit does each player deserve? e.g. On a pass play, how much credit does a QB get vs the receiver? One player is not solely responsible for a play's EPA Expected Points Added Expected Points Added (EPA) estimates a play's value based on the change in situation, providing a point value EPAplayi = EPplayi+1 − EPplayi For passing plays can use air yards to calculate airEPA and yacEPA (yards after catch EPA): airEPAplayi = EPin air playi − EPstart playi yacEPAplayi = EPplayi+1 − EPin air playi Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 14 / 36 Expected Points Added Expected Points Added (EPA) estimates a play's value based on the change in situation, providing a point value EPAplayi = EPplayi+1 − EPplayi For passing plays can use air yards to calculate airEPA and yacEPA (yards after catch EPA): airEPAplayi = EPin air playi − EPstart playi yacEPAplayi = EPplayi+1 − EPin air playi But how much credit does each player deserve? e.g. On a pass play, how much credit does a QB get vs the receiver? One player is not solely responsible for a play's EPA Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 14 / 36 Publicly available data only includes those directly involved: Passing: Individuals: passer, target receiver, tackler(s), interceptor Context: air yards, yards after catch, location, and if the passer was hit on the play Rushing: Individuals: rusher and tackler(s) Context: run gap and location How to Allocate EPA? Using proprietary, manually collected data, Total QBR (Oliver et al., 2011) divides credit between those involved in passing plays Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 15 / 36 How to Allocate EPA? Using proprietary, manually collected data, Total QBR (Oliver et al., 2011) divides credit between those involved in passing plays Publicly available data only includes those directly involved: Passing: Individuals: passer, target receiver, tackler(s), interceptor Context: air yards, yards after catch, location, and if the passer was hit on the play Rushing: Individuals: rusher and tackler(s) Context: run gap and location Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 15 / 36 Multilevel Modeling Growing in popularity (and rightfully so): \Multilevel Regression as Default" - Richard McElreath Natural approach for data with group structure, and different levels of variation within each group e.g. QBs have more pass attempts than receivers have targets Every play is a repeated measure of performance Baseball example: Deserved Run Average (Judge et al., 2015) Ron Yurko (@Stat Ron) nflWAR NESSIS, 2017 16 / 36 Unlike linear regression, no longer assuming independence Provides estimates for average play effects while providing necessary

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    53 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us