Analysis of different batting orders given a lineup
Project description
Description
Simulates every possible batting order for a given lineup and displays summary statistics of the average runs (over a number of games) of the orders, and specific information about the top and bottom 5 orders. The user may choose how many games each order is simulated for, which players are in the lineup, or what each player's PA outcomes are in a single game (see sample files).
Data Source
Major TODOs
- Determine the accurate likelihoods of sacrifices and double plays for different out types
- Enable some sort of pinch hitting scheme (right now, each player hits the entire game)
- Enable some sort of pitcher dependent hitting results (even as simple as right-y/left-y; right now hitting stats are full season aggregates)
- Include edge cases like stealing, wild pitches, etc.
- More detailed data (i.e. did a double go to right or left field?)
- Player specific data (i.e. how often does a player try to steal?)
Installation
pip install batting-order-analysis
Usage
driver.py and driver.ipynb supply a basic interface, check them out
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for batting_order_analysis-0.0.50.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 831818889c02e94064c325b93a69747c0666d601611406226c9a1219f0b90278 |
|
MD5 | 9678fd37dc817bc1c457c643f7955cda |
|
BLAKE2b-256 | 70f19ddd753bfec2d73a9829fc9d591151d387b7755907f433d19323d36a52ca |
Close
Hashes for batting_order_analysis-0.0.50-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e496fd2b241987cb5ec7fe6ddc374c75de4160a45f0707209930a3233ac3a110 |
|
MD5 | 0f4a295bad1a50395c7a9574e9750017 |
|
BLAKE2b-256 | 1482c5a2bf20319e10b68263857351db3d1cc2eb1cb981e6b867d40de0126a51 |