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.42.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b004a5f487a5bda4346ca28313369c25b57b91c39fd1dc524169f99a84cbf70 |
|
MD5 | 2756078124368eabf9aea4130abd6c35 |
|
BLAKE2b-256 | c10c88374d8efaf15feed4f0d0cb439d12fb7f4ac8f0c77190575b7be8330f7c |
Close
Hashes for batting_order_analysis-0.0.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fd6cb3abd54e132f27e32424d3f85aba05ef72c04b346911e984cf489395835 |
|
MD5 | 9df37f3e61dec70e006b049884cc4dcc |
|
BLAKE2b-256 | 2268d8ca78b20bc0d6b3349d04e457cf377349379596fe69fb27969600b79831 |