{"id":2114,"date":"2023-06-15T19:38:34","date_gmt":"2023-06-15T17:38:34","guid":{"rendered":"https:\/\/bodai.unibs.it\/bdsports\/?page_id=2114"},"modified":"2025-11-03T14:50:47","modified_gmt":"2025-11-03T13:50:47","slug":"bds1","status":"publish","type":"page","link":"https:\/\/bodai.unibs.it\/bdsports\/bds1\/","title":{"rendered":"Basketball Data Science &#8211; with applications in R"},"content":{"rendered":"<h1>Basketball Data Science &#8211; with applications in R<\/h1>\n<p>&nbsp;<\/p>\n<table style=\"width: 100%\">\n<tbody>\n<tr>\n<td style=\"width: 62.8533%\">\n<h4>Codes<\/h4>\n<p>Codes for reproducing the case studies presented throughout the book with <code>BasketballAnalyzeR<\/code> &#8211; R code checked under R-3.5.3 for Windows (64 bit) and for Mac OS X 10.11<\/p>\n<p><a class=\"button w-button w--current\" href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2020\/04\/Basketball-Data-Science-code-April-2020.pdf\">Codes (pdf format)<\/a><\/p>\n<p><a class=\"button w-button w--current\" href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/02\/Basketball-Data-Science-code-April-2020.zip\">Codes (R format)<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/td>\n<td style=\"width: 36.07%\"><a href=\"https:\/\/www.routledge.com\/Basketball-Data-Science-With-Applications-in-R-1st-Edition\/Zuccolotto-Manisera\/p\/book\/9781138600799\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1798 alignright\" src=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-199x300.jpg\" alt=\"\" width=\"322\" height=\"486\" srcset=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-199x300.jpg 199w, https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-679x1024.jpg 679w, https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-768x1159.jpg 768w, https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-1018x1536.jpg 1018w, https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-1357x2048.jpg 1357w, https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/03\/Basketball-Data-Science-scaled.jpg 1697w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>Additional datasets for exercises<\/h4>\n<ul>\n<li><a href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/02\/NBA1819.zip\">Boxscores NBA Regular Season 2018\/2019<\/a> (containing the data frames <code>Pbox1819, Tbox1819, Obox1819, Tadd1819<\/code> having the same structure of\u00a0 <code>Pbox, Tbox, Obox, Tadd<\/code>) &#8211; data in <code>.Rdata<\/code> format, which can be used to reproduce the analyses presented in the book on other datasets<\/li>\n<li><a href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2021\/02\/PbP_BDB_CLE.zip\">Play-by-play data of all the 82 games played by Cleveland Cavaliers in the Regular Season 2017\/2018<\/a> (containing the data frame <code>PbP.BDB.CLE<\/code> having the same structure of\u00a0 <code>PbP.BDB<\/code>; note that the data frame has to be manipulated with <code>PbP.CLE &lt;- PbPmanipulation(PbP.BDB.CLE)<\/code> in order to obtain a file with the same structure of <code>PbP<\/code>, as explained in Section 2.1 of the book). Data have been kindly made available by <a href=\"http:\/\/www.bigdataball.com\">BigDataBall<\/a>, a data provider which leverages computer-vision technologies to richen and extend sports datasets with lots of unique metrics. Since its establishment, BigDataBall has also supported many academic studies and is referred as a reliable source of validated and verified stats for NBA, MLB, NFL and WNBA &#8211; data in <code>.Rdata<\/code> format, which can be used to reproduce the analyses presented in the book on other datasets<\/li>\n<li><a href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2025\/11\/Basketball-Data-Science-FIBA-EUROBASKET-2022.zip\">Boxscores FIBA EUROBASKET 2022<\/a> &#8211; data in <code>.txt<\/code> format, which can be used to run additional examples, thanks to a dedicated R code (included in the compressed folder).<\/li>\n<\/ul>\n<hr \/>\n<h4>Testimonials<\/h4>\n<div class=\"region-inner header-inner\">\n<div id=\"header\" class=\"header section\">\n<div id=\"Header1\" class=\"widget Header\" data-version=\"1\">\n<div id=\"header-inner\">\n<div class=\"titlewrapper\">\n<h5 class=\"title\"><a href=\"https:\/\/www.stats-et-al.com\/2019\/11\/basketball-data-science-with.html\">Statistics et al. (Jack Davis)<\/a><\/h5>\n<p>&#8220;<em>My overall impression of &#8220;Basketball Data Science&#8221; is that it&#8217;s exactly the sort of book I would recommend to an instructor or able student of statistics in sport.<\/em>&#8221;<\/p>\n<p>&#8220;<em>On a spectrum from &#8220;all methodology&#8221;, like Casella and Berger&#8217;s famous textbook, to &#8220;all results&#8221; like a typical sports almanac, I would put &#8220;Basketball Data Science&#8221; between Casella-Berger and Jim Albert&#8217;s &#8220;Visualizing Baseball&#8221;. &#8220;Basketball Data Science&#8221; is intended to show how the data analysis is done, rather than revealing many sports-related insights directly.<\/em>&#8221;<\/p>\n<\/div>\n<div class=\"descriptionwrapper\">\n<h5><a href=\"https:\/\/sweepsportsanalytics.com\/2021\/06\/21\/nba-eastern-conference-finals-bucks-favorites-over-the-hawks-key-performance-analysis\/?fbclid=IwAR1V5NFtU1Lkgvjs7KwBjNlmB34oq1Oe7z4Hl9YVHPg3eQHFYORJRke3pJs\">Sweep Sports Analytics<\/a><\/h5>\n<p>&#8220;<em>Latest academic research in the field of basketball analytics stress the importance of metrics such as pace, ratings, and the four factors. Inspired by the great book <\/em><em>Basketball Data Science with Applications in R<\/em><em>, we had a look at how the Milwaukee Bucks and the Atlanta Hawks performed as a team. Anyone interested in basketball analytics should definitely get their hands on a copy. The <\/em><em>BasketballAnalyzeR<\/em><em> R package is simply amazing.<\/em>&#8221;<\/p>\n<div class=\"descriptionwrapper\">\n<h5 class=\"description\"><a href=\"https:\/\/www.bigbookofr.com\/sport-analytics.html\">Big Book of R (Oscar Baruffa)<\/a><\/h5>\n<h5><a href=\"https:\/\/www.nbastuffer.com\/insights\/books\/\">NBAstuffer recommended books<\/a><\/h5>\n<h5><a href=\"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s00362-022-01303-1.pdf\">Book Review by <span dir=\"ltr\" role=\"presentation\">Andreas Groll<\/span><span dir=\"ltr\" role=\"presentation\"> and<\/span> <span dir=\"ltr\" role=\"presentation\">Carsten Jentsch &#8211; Statistical Papers (2022) 63:991\u2013993<\/span><\/a><\/h5>\n<h5><a href=\"https:\/\/www.maa.org\/press\/maa-reviews\/basketball-data-science\">Review by Russ Goodman, Mathematical Association of America<\/a><\/h5>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h4>Related work<\/h4>\n<p>Yi\u011fit A\u015f\u0131k (2023), <a href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2023\/07\/Sengun-2022-23-Analysis.pdf\">Examples of analysis of Alperen \u015eeng\u00fcn&#8217;s performance<\/a>. <a href=\"mailto:yyigitasikk@gmail.com\">Contact for information<\/a>.<\/p>\n<p>Jack, O. (2023). <a href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2023\/06\/Tesi-OLIVER-JACK.pdf\"><span dir=\"ltr\" role=\"presentation\">Statistics in Basketball: Settling <\/span><\/a><span dir=\"ltr\" role=\"presentation\"><a href=\"https:\/\/bodai.unibs.it\/bdsports\/wp-content\/uploads\/sites\/2\/2023\/06\/Tesi-OLIVER-JACK.pdf\">NBA Debates analytically<\/a>. Bachelor Degree Thesis, <\/span>University of Luxembourg (supervisor: <span dir=\"ltr\" role=\"presentation\">Christophe<\/span> Ley).<\/p>\n<p>Fox, A., Manisera, M., Sandri, M., &amp; Zuccolotto, P. (2022). <a href=\"https:\/\/www.tandfonline.com\/doi\/full\/10.1080\/09332480.2022.2123161?casa_token=kzDveus9-NYAAAAA%3AbxWOaVLdUWqfILETGpNTyx6JljBU2Ms37z6ehRSKKVB9YoeTTfst4Mv5ijSzIw4xOW4hDJ9OhQyR-Q\">Analyzing Basketball Data with BasketballAnalyzeR<\/a>. <i>CHANCE<\/i>, <i>35<\/i>(3), 42-56.<\/p>\n<p>Blanco, A. T. (2022). <a href=\"https:\/\/masteres.ugr.es\/estadistica-aplicada\/sites\/master\/moea\/public\/inline-files\/TFM_%20TetuanBlanco_Ana_2122.pdf\">Implementaci\u00f3n del paquete de R BasketballAnalyzeR, <span dir=\"ltr\" role=\"presentation\">M<\/span><span dir=\"ltr\" role=\"presentation\">\u00e1ster en Estad<\/span><span dir=\"ltr\" role=\"presentation\">\u00edstica Aplicada<\/span><\/a>, <span dir=\"ltr\" role=\"presentation\">Escuela Internacional de Posgrado<\/span>, Granada, Spain.<\/p>\n<p>Zuccolotto, P., Manisera, M., &amp; Sandri, M. (2021). <a href=\"https:\/\/rss.onlinelibrary.wiley.com\/doi\/full\/10.1111\/1740-9713.01507\">Alley\u2010oop! Basketball analytics in R<\/a>. <i>Significance<\/i>, <i>18<\/i>(2), 26-31.<\/p>\n<hr \/>\n<h4>FAQ<\/h4>\n<p>See the most <a href=\"https:\/\/bodai.unibs.it\/bdsports\/basketballanalyzer\/basketballanalyzer-faq\/\">frequently asked questions<\/a><\/p>\n<hr \/>\n<h4>ERRATA CORRIGE<\/h4>\n<p>See the <a href=\"https:\/\/bodai.unibs.it\/bdsports\/basketballanalyzer\/errata-corrige\/\">errata corrige<\/a><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Basketball Data Science &#8211; with applications in R &nbsp; Codes Codes for reproducing the case studies presented throughout the book with BasketballAnalyzeR &#8211; 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) &nbsp; &nbsp; &nbsp; &nbsp; Additional datasets for exercises Boxscores NBA Regular [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-2114","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/pages\/2114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/comments?post=2114"}],"version-history":[{"count":9,"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/pages\/2114\/revisions"}],"predecessor-version":[{"id":2583,"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/pages\/2114\/revisions\/2583"}],"wp:attachment":[{"href":"https:\/\/bodai.unibs.it\/bdsports\/wp-json\/wp\/v2\/media?parent=2114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}