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.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca0fd20d3db7e529051580073013ed0f79adb68690bbe068b8a3107bb19e69d6 |
|
MD5 | 2634141a130430c9e77aa3cea7291188 |
|
BLAKE2b-256 | 40d502eb0e179d567b2d21e6572187c2b1ce56e10dd5c1a7de08803df30f272f |
Close
Hashes for batting_order_analysis-0.0.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011af389b8752148775460c3b31a183318b8f047aac8cbe18e304c9932756a55 |
|
MD5 | 184d110150df62f50db16ca98b254ec7 |
|
BLAKE2b-256 | 66d2adbc78f70ed0dccfb780f1a8d6c1b2782542e213f097f4b36d1c2badc22a |