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 supplies a basic interface, read its usage there
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.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baeac714ea680a2b3e8cefa909e8acd033a3f340a7f88c334cfca09b2c5fbb80 |
|
MD5 | 223149af81ce3a5ee1323b44f534e5c7 |
|
BLAKE2b-256 | a4a66e54855d04b40feaf8d525ecad600a629a489a815f082303969fd65cb550 |
Close
Hashes for batting_order_analysis-0.0.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b768f3c3fefb125dea12d2a236738d88a07e8d063597568f724bb80b6e75273e |
|
MD5 | f5e5dd44b8e493d1837be8352a8fc285 |
|
BLAKE2b-256 | 01b2a93cfa0fd85f57ce08dfc6e6febe236136f80aed8aa82bc672f148d0cea8 |