Basketball Data Science – with applications in R



Codes for reproducing the case studies presented throughout the book with BasketballAnalyzeR – R code checked under R-3.5.3 for Windows (64 bit) and for Mac OS X 10.11

Codes (pdf format)

Codes (R format)





Additional datasets for exercises

All the data are in .Rdata format and can be used to reproduce the analyses presented in the book on other datasets


Related work

Yiğit Aşık (2023), Examples of analysis of Alperen Şengün’s performance. Contact for information.

Jack, O. (2023). Statistics in Basketball: Settling NBA Debates analytically. Bachelor Degree Thesis, University of Luxembourg (supervisor: Christophe Ley).

Fox, A., Manisera, M., Sandri, M., & Zuccolotto, P. (2022). Analyzing Basketball Data with BasketballAnalyzeR. CHANCE, 35(3), 42-56.

Blanco, A. T. (2022). Implementación del paquete de R BasketballAnalyzeR, Máster en Estadística Aplicada, Escuela Internacional de Posgrado, Granada, Spain.

Zuccolotto, P., Manisera, M., & Sandri, M. (2021). Alley‐oop! Basketball analytics in R. Significance, 18(2), 26-31.


See the most frequently asked questions


See the errata corrige