Skip to main content
Dryad

Data and code from: Using simulation to optimize batting lineups in Major League Baseball

Data files

Jun 17, 2026 version files 467.13 KB

Click names to download individual files

Abstract

This dataset supports a study that uses Monte Carlo simulation to evaluate how batting-lineup construction affects run production in Major League Baseball. Using real player data from the 2024 MLB season, a game-level simulation model varies the batting lineup to estimate runs scored across full games and seasons. The package contains three components: (1) player and team inputs — per-player batting splits by pitcher handedness (slugging, average, on-base percentage, isolated power) and advanced metrics (wOBA, wRC+) for the twelve teams and the synthetic rosters analyzed; (2) simulation results — average runs per game with confidence intervals under baseline and optimized (1-D and 2-D) lineup strategies, random-permutation upper bounds, lineup-similarity metrics, cloned-lineup run-expectancy analyses, and supporting summary tables; and (3) the Julia simulation code. The study finds that optimized lineups are worth roughly three to six wins per season depending on the team, though the optimal construction strategy is team-dependent: three of twelve teams show statistically significant improvement over their real-world lineups, while the rest are already near-optimal. The model treats offensive outcomes as independent of pitcher and defensive quality and does not adjust for game situation. All derived metrics and simulation outputs were generated by the authors; the underlying statistics are factual records of the 2024 season.