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.47.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc98a438c523b50680a92048f2df5d0876073cfca93b6124d518ab28c0b73a5 |
|
MD5 | acb6b1df5d05ed3278ecfe993fb9c9bd |
|
BLAKE2b-256 | e3465bba0c86882a45a42708a7451ff71415ba3baf063f2577029b53f4ed9934 |
Close
Hashes for batting_order_analysis-0.0.47-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 638e9b27095ec29c1ca9359bf3beafaad5889907b649ab6c7a01b9ab4652ec36 |
|
MD5 | 22551e19d354c7373140849b1f8a0df9 |
|
BLAKE2b-256 | d9a21e7877b7f1cf718aa98f2a097c11564fa96ec574c5b5137bc7479c760857 |