Skip to main content

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

Baseball Savant Custom Data

Major TODOs

  1. Determine the accurate likelihoods of sacrifices and double plays for different out types
  2. Enable some sort of pinch hitting scheme (right now, each player hits the entire game)
  3. Enable some sort of pitcher dependent hitting results (even as simple as right-y/left-y; right now hitting stats are full season aggregates)
  4. Include edge cases like stealing, wild pitches, etc.
  5. More detailed data (i.e. did a double go to right or left field?)
  6. Player specific data (i.e. how often does a player try to steal?)

Installation

pip install batting-order-analysis

View on PyPI

Usage

driver.py and driver.ipynb supply a basic interface, check them out

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

batting_order_analysis-0.0.52.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

batting_order_analysis-0.0.52-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file batting_order_analysis-0.0.52.tar.gz.

File metadata

  • Download URL: batting_order_analysis-0.0.52.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for batting_order_analysis-0.0.52.tar.gz
Algorithm Hash digest
SHA256 8145dae5e134137b5dd2cf42b0d6ff8c4a24079d7e2f5ee44b435e0d45cb917d
MD5 dc10c34bb9ae31b18d4d87fbb944d6e1
BLAKE2b-256 8ceeaafbc30687877e1ed7a04401ff1731543d0ee4fa797a15b327164db4bce7

See more details on using hashes here.

File details

Details for the file batting_order_analysis-0.0.52-py3-none-any.whl.

File metadata

  • Download URL: batting_order_analysis-0.0.52-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for batting_order_analysis-0.0.52-py3-none-any.whl
Algorithm Hash digest
SHA256 7e25bdcb01dfa39a47d893c9d37335a4b4dd77c0da80a2604dd882b03cfc1b8e
MD5 a3c7800cd89feb31e4655f072000a39e
BLAKE2b-256 583a10dc5193c7b54f837956eca10cd3b74e5f88ed50f542cf5856929eeaa012

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page