Giter VIP home page Giter VIP logo

wingspan-height-defense's Introduction

METHODOLOGY: Is wingspan or height a better predictor of NBA defense?

Link to blog post.

To test whether wingspan or height is a better predictor of NBA defense, first I created a database of every active NBA player's wingspan and height. The list of every active player was taken from Basketball Reference

Data collection

Most of the data was taken from the NBA's Combine Anthrometric page. Height w/o shoes was used because height w/ shoes data was not recorded until the 2004-2005 season. All the NBA's Combine Anthrometric data is available on the "Combine Anthrometric" tab of the Excel master sheet.

Because not all players attend the combine, the Combine Anthrometric did not have all the data. So, I manually found data for over 200 players.

To complete the data manually, all height data was taken from each player's DraftExpress player profile. This may lead to some inconsistency, because DX sometimes uses height w/ shoes for the player profile. The only player whose height data was not taken from DX was Giannis Antetokounmpo, because he has grown since his draft measurements. His data was taken from this ESPN TrueHoop article.

Most of the wingspan data was available on DX. For players whose wingspan was not available on DX, I used a variety of sources. The most credible source except for DX is NBAdraft.net. Team blogs, forums, etc. were used when I could not find data anywhere else. Finally, when there was no data on blogs or forums, I either estimated the wingspan to be a bit more than the player's height, or estimated the wingspan based on how DX described it (e.g. "average", "excellent").

All data not taken from the Combine Anthrometric is highlighted on the master Excel sheet. DX data is highlighted in yellow; data from other sources are highlighted in blue, and the source is specified next to the player's data; and players for whom I could not find data are highlighted in green.

Player-by-player analysis

I compared each individual player's wingspan and height to his DWS (defensive win shares, downloaded from Basketball Reference). After doing a full-league regression, I divided the data into three groups: guards, forwards, and centers. This makes the analysis more accurate, given that bigmen are bigger and often have a larger DWS than guards.

Team-by-team analysis

I downloaded each team's total year stats from Basketball Reference. This includes a list of their players and minutes played. I then weighted the wingspan and height data for each player according to their minutes, arriving at a weighted average for that team. Traded players or free agents count for every team they played (e.g. Blake Griffin has minutes on both the Clippers and Pistons).

The weighted average height and wingspan was then compared to DRTG (downloaded from NBA.com/stats). I then used a Pearson correlation test to determine whether wingspan or height is a better predictor of NBA defense. I used a p-value < .05 threshold to determine statistical significance (as is commonly accepted).

Notes

Note that a higher DWS is better, so the factor with a greater r-value (correlation coefficient) is a better predictor of DWS. However, a lower DRTG is better, so the factor with a more negative r-value is a better predictor of DRTG.

All data and calculations are available in the master Excel sheet. The .csv files include only the final sheets used in the Python program.

wingspan-height-defense's People

Contributors

dribbleanalytics avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.