Learn R Programming

runexp (version 0.2.1)

Softball Run Expectancy using Markov Chains and Simulation

Description

Implements two methods of estimating runs scored in a softball scenario: (1) theoretical expectation using discrete Markov chains and (2) empirical distribution using multinomial random simulation. Scores are based on player-specific input probabilities (out, single, double, triple, walk, and homerun). Optional inputs include probability of attempting a steal, probability of succeeding in an attempted steal, and an indicator of whether a player is "fast" (e.g. the player could stretch home). These probabilities may be calculated from common player statistics that are publicly available on team's webpages. Scores are evaluated based on a nine-player lineup and may be used to compare lineups, evaluate base scenarios, and compare the offensive potential of individual players. Manuscript forthcoming. See Bukiet & Harold (1997) for implementation of discrete Markov chains.

Copy Link

Version

Install

install.packages('runexp')

Monthly Downloads

200

Version

0.2.1

License

LGPL

Maintainer

Annie Sauer

Last Published

March 22nd, 2021

Functions in runexp (0.2.1)

plot.chain

Plots an object of S3 class "chain"
sim

Softball run expectancy using multinomial random trial simulation
scrape

Softball Webscraper
runexp-package

Package runexp
wku_stats

Player statistics and probabilities for WKU softball
prob_calc

Calculates player probabilities given players' game statistics.
chain

Softball run expectancy using discrete Markov chains