Skip to content

Manuscript and code behind "Do NBA Teams Avoid Trading within Their Own Division?"

Notifications You must be signed in to change notification settings

jimiadams/nba-trades

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do NBA Teams Avoid Trading within Their Own Division?

Data, code and paper (published in Network Science).

  • jimi adams (@jimiadams)
  • Michał Bojanowski (@mbojan)

Abstract:

Within US professional sports, trades within one's own division are often perceived to be disadvantageous. We ask how common this practice is. To examine this question, we construct a date-stamped network of all trades in the NBA between June 1976 and May 2019. We then use yearly weighted exponential random graph models to estimate the likelihood of teams avoiding within-division trade partners, and whether that pattern changes through time. In addition to the empirical question, this analysis serves to demonstrate the necessity and difficulty of constructing the proper baseline for statistical comparison. We find limited-to-no support for the popular perception.

Draft is at https://mbojan.github.io/nba-trades/.

Building

The repository uses GNU make for reproducibility. Wherever random number generation is performed the seed is set so the results should reproduce.

All the artifacts (data, estimated models, and figures) are committed to the repository. This facilitates editing the manuscript without rerunning any part of the analysis. Simply Knit the document in RStudio or use make just-render.

  1. To see defined phony targets run:
make help
  1. To render the manuscript without touching any other parts: knit it in RStudio or execute
make just-render
  1. To render the manuscript (re)running some other parts if necessary:
make paper
  1. To "publish" the manuscript to /docs/ execute:
make publish

About

Manuscript and code behind "Do NBA Teams Avoid Trading within Their Own Division?"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 98.3%
  • R 1.2%
  • Other 0.5%