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.48.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e18de1c973762035c56cdd7bd3be40bd4bafd3e4547a1f7f9815c7db1eb5a129 |
|
MD5 | a7ab045292aae32b983f9161eb7a2017 |
|
BLAKE2b-256 | 53a4a760b784d55da43fcb485b94c5f02504a808dfeb95477eb8b941ee9441f4 |
Close
Hashes for batting_order_analysis-0.0.48-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2296559a28b9fc6c26a7298eb0d77445313a01be84bae09e20b09656c5185a82 |
|
MD5 | acaa5ca3fc9746d870f5ad7e113bf263 |
|
BLAKE2b-256 | 4011b5cc977a30a1b7635fb4f8b8c9bf9eb67b6b37e77e7513ecc9bfac3d17ef |