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.37.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759953359153721cd5f2fd45d49d1fafb7975d932ba074344336bcbbbdc938fc |
|
MD5 | cfc4ae09118a8147623ba279371b22aa |
|
BLAKE2b-256 | 8d71d895be8336ad367f912c9c205fb6f360426c88a5db724adcf4f59a1e9792 |
Close
Hashes for batting_order_analysis-0.0.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ee6844ba6d20e1eb9f47a86b025d7b19745a002ecd81ca8ee5b64cc3bac44d |
|
MD5 | 6500bb77b4c7862785ba2751095a1971 |
|
BLAKE2b-256 | b2ab7eb6b07d2ce6ce6e4d64a3b180ea1283f79bc8e3f201e2f2b915e3709e55 |