Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

134 Commits

Repository files navigation

Baseball Analytics in Python

HR Probability by Launch Angle and Exit Velocity

About

This repository translates baseball analytics concepts from "Analyzing Baseball Data with R" to Python using pandas, matplotlib, seaborn, statsmodels, pygam, pybaseball, and scikit-learn.

Chapters:

  • Starting from Chapter 4 (Chapters 1-3 cover R installation and basics)
  • Chapters 4-10 and 13 complete
  • Chapters 11-12 cover SQL and database setup (R code specific, not included)

Data:

  • Extended through 2024 season (book uses data through 2022) so some metrics may differ slightly

Installation

pip install -r requirements.txt

Notebooks

Credit

This project is independent and all Python code is original but examples directly follow the book. Please support the authors and their work.

About

Translating baseball analytics concepts from "Analyzing Baseball Data with R" to Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages