# 28 Sport analytics

## 28.1 Basketball Data Science with Applications in R

by Paola Zuccolotto, Marica Manisera

Using data from one season of NBA games, Basketball Data Science: With Applications in R is the perfect book for anyone interested in learning and applying data analytics in basketball. Whether assessing the spatial performance of an NBA player’s shots or doing an analysis of the impact of high pressure game situations on the probability of scoring, this book discusses a variety of case studies and hands-on examples using a custom R package. The codes are supplied so readers can reproduce the analyses themselves or create their own. Assuming a basic statistical knowledge, Basketball Data Science with R is suitable for students, technicians, coaches, data analysts and applied researchers.

Paid: $35

## 28.2 Coding for sports analytics get started resources

Given the lack of sport-focussed R books, I’ve added this collection of blog posts.

Link: https://brendankent.com/2020/09/15/coding-for-sports-analytics-resources-to-get-started/

## 28.3 Exploring Baseball Data with R

by Max Marchi, Jim Albert, Max Marchi, Benjamin S. Baumer

This book introduces R to sabermetricians, baseball enthusiasts, and students interested in exploring the richness of baseball data. It equips you with the necessary skills and software tools to perform all the analysis steps, from importing the data to transforming them into an appropriate format to visualizing the data via graphs to performing a statistical analysis.

Paid: $50

## 28.4 Introduction to Empirical Bayes: Examples from Baseball Statistics

Learn to use empirical Bayesian methods for estimating binomial proportions, through a series of examples drawn from baseball statistics. These methods are effective in estimating click-through rates on ads, success rates of experiments, and other examples common in modern data science. You’ll learn both the theory and the practice behind empirical Bayesian methods, including computing credible intervals, performing Bayesian A/B testing, and fitting mixture models. Each example comes with R code that can be used to analyze your own data.

## 28.5 Stats in sports

Materials for the Statistics in Sports class for first-year undergrads at Oxford College of Emory University. This course is unique in that it assumes no background. It covers an introduction to sports analytics and R for Baseball, Basketball, Football, Soccer and Sports business analytics.

## 28.6 Visualising WRC Rally Stages With rayshader and R A RallyDataJunkie Adventure

by Tony Hirst

Taking a simple rally route dataset, what can we do with it? This book describes a wide range of techniques for working with geodata, including routes and elevantion rasters. From 2D and 3D mapping, to a wide range of route analysis techniques, the techniques described are also relevant to a wide range of othr route analysis contexts, including ecological trail analysis.

## 28.7 Visualising WRC Rally Timing and Results Data A RallyDataJunkie Adventure

by Tony Hirst

A handy guide to visualising a wide range of motorsport timing and results data, concentrating on rally data associated with the FIA World Rally Championship (WRC).

Link: https://rallydatajunkie.com/visualising-wrc-rally-results/

## 28.8 Wrangling F1 Data With R A Data Junkie’s Guide

by Tony Hirst

If you’re attracted by F1’s passion to push engineering and technology to the limit, this book will help you grab a range of Formula One datasets by the scruff of the neck and wrangle a wide variety of insights from them.

Using the latest in open source data analysis and visualisation techniques, you’ll learn how to extract the stories that often go unnoticed from whatever Formula One data you can lay your hands on. And maybe, just maybe, you’ll be able to use the skills you learn along the way outside of the F1 context…

Paid: $9

Created and maintained by Oscar Baruffa

For updates, sign up to my newsletter