Welcome to my public baseball repository! This contains a collection of code (in various forms) focused on things that interest me.
- One of the first cues batters have as to the shape of an incoming pitch is the arm slot of the pitcher. This app models the "expected" shape of a fastball as distribution conditional on pitcher scaled release point.
Here’s a list of the notebooks you’ll find in the /notebooks directory:
- This uses Dr. Alan Nathan's method to infer the 3D spin vector components from tracking data
- I also wrote this for use in R programming language link here
- Uses vertical and horizontal release angle variance of fastball as proxy for command. Turns out this is pretty sticky between seasons.
- Spin efficiency changes over the flight of a pitch because the ball drops over time. This looks at a couple theoretical examples.
- Convenience functions for getting player height data via API endpoint
- I also wrote this for use in R programming language link here
- Small changes in release angle can have a massive effect on the quality of a pitch. The notebook has some visualizations demonstrating this.
- This uses Dr. Alan Nathan's method to infer the 3D spin vector components from tracking data
- Convenience functions for getting player height data via API endpoint




