Crandore Hub

runexp

Softball Run Expectancy using Markov Chains and Simulation

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) <doi:10.1287/opre.45.1.14> for implementation of discrete Markov chains.

Versions across snapshots

VersionRepositoryFileSize
0.2.1 rolling linux/jammy R-4.5 runexp_0.2.1.tar.gz 87.9 KiB
0.2.1 rolling linux/noble R-4.5 runexp_0.2.1.tar.gz 87.9 KiB
0.2.1 rolling source/ R- runexp_0.2.1.tar.gz 34.2 KiB
0.2.1 latest linux/jammy R-4.5 runexp_0.2.1.tar.gz 87.9 KiB
0.2.1 latest linux/noble R-4.5 runexp_0.2.1.tar.gz 87.9 KiB
0.2.1 latest source/ R- runexp_0.2.1.tar.gz 34.2 KiB
0.2.1 2026-04-26 source/ R- runexp_0.2.1.tar.gz 34.2 KiB
0.2.1 2026-04-23 source/ R- runexp_0.2.1.tar.gz 34.2 KiB
0.2.1 2026-04-09 windows/windows R-4.5 runexp_0.2.1.zip 91.1 KiB
0.2.1 2025-04-20 source/ R- runexp_0.2.1.tar.gz 34.2 KiB

Dependencies (latest)

Imports

Suggests