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.51.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1161f221ab056bf33ac247f67a7bea73524362191236bd65d596e445269da822 |
|
MD5 | 332031d56ea3c7989cb1a4b6ed7f833c |
|
BLAKE2b-256 | 43432f49fc853fccafa40f442a6c65fd9edeb15e1ca213af137c318d2078523a |
Close
Hashes for batting_order_analysis-0.0.51-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57116409b9a9884abf807f740aa6f3cee3cb0d7ac5cf70601775bc0b722e437b |
|
MD5 | ea0c5d419b4e6c3e90a2fd648931b811 |
|
BLAKE2b-256 | b8f072d668b5c861554169531587a3520e31cd263cb8879980e5a6d86ba28308 |