Skip to main content

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

Metadata

Release files for batting-order-analysis 0.0.52

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for batting-order-analysis 0.0.52
File Size Uploaded
batting_order_analysis-0.0.52.tar.gz 37.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for batting-order-analysis 0.0.52
File Interpreter ABI Platform
batting_order_analysis-0.0.52-py3-none-any.whl Python 3 none any Details

Total release size: 76.6 kB

Release files / batting_order_analysis-0.0.52.tar.gz

Download URL batting_order_analysis-0.0.52.tar.gz
Size 37.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8145dae5e134137b5dd2cf42b0d6ff8c4a24079d7e2f5ee44b435e0d45cb917d
BLAKE2b-256 checksum
How to use checksums
8ceeaafbc30687877e1ed7a04401ff1731543d0ee4fa797a15b327164db4bce7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / batting_order_analysis-0.0.52-py3-none-any.whl

Download URL batting_order_analysis-0.0.52-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e25bdcb01dfa39a47d893c9d37335a4b4dd77c0da80a2604dd882b03cfc1b8e
BLAKE2b-256 checksum
How to use checksums
583a10dc5193c7b54f837956eca10cd3b74e5f88ed50f542cf5856929eeaa012
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.52 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page