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.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abef465ad7b69bb44b9ddbdd2f812ce2a0a3b07a74169b8345a22ebf0643853 |
|
MD5 | 46227293eb20bfea77ad2e754e6fb356 |
|
BLAKE2b-256 | de3ac13238f9771025794e63536436f2a0d8909dc641eb21617b5f177f8c3249 |
Close
Hashes for batting_order_analysis-0.0.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab2629533d340aca755bc7d9a2e5d09e3f2de125f7d39af5ca8a5d143423657d |
|
MD5 | f437a62d0097948236337d753a120754 |
|
BLAKE2b-256 | f342da637e258868a42cffeed8d509cc9e621e7701f1f02d0f7a21b6fbab40a6 |