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.46.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5374aa42f7c9364e7e765dfced6a67954b8bf787c4841fa9411de4b400c78a8f |
|
MD5 | 268b78f8fed555536b657e29af30b8ef |
|
BLAKE2b-256 | 4c04abee57e2ee18875eea390f9768eb73e0f6ed5046ee2c285e8e34c3650559 |
Close
Hashes for batting_order_analysis-0.0.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d51eb7e1ac4db5655dbd414b8f84ec4f6afdc6273e790c051609e66f382465f |
|
MD5 | 5e42177cbfc7bb7594aa1ecdddc8cc82 |
|
BLAKE2b-256 | aed894bcb599d37690d145d67420b0776d00ce6622ea61a4d3e610f4d776f5b2 |