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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e018564e8f5beb14feb9d0bcf7582bdb864a772f9607de1bbf40e4a6e576bd |
|
MD5 | 20b08166d708ee4d83e778edfc21763d |
|
BLAKE2b-256 | aeafab118dd0de44203ed7722bb3891db998d4d1bc9a8456bfce8b96d8605476 |
Close
Hashes for batting_order_analysis-0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 312bd45c92a69055fa369ee31df4b595c3061a62e64fc597a667c20dc3099a84 |
|
MD5 | 3e66021ff4496c90c603f427412c7b94 |
|
BLAKE2b-256 | 2e81053666b298e120ee1abae4d99b9ee53eeddeb9197878708ee2da3d39a229 |