English

Simulating MLB Seasons using Bayesian Inference and Random Walks

Applications 2025-05-09 v1

Abstract

As a dedicated follower of sports statistics and with the MLB season beginning in late March, I set out to predict how many wins each team would accumulate by the end of the 162 game season. The goal was to build a simulation framework capable of forecasting the remainder of the season, starting from a 20 game burn-in period to establish initial estimates of team strength. My approach used a Bayesian inference model incorporating team win percentage, batting average, and pitching ERA to construct a posterior distribution of win probability for each matchup. For each game, I sampled from the posterior and simulated the outcome using a Bernoulli trial. Because future matchup inputs were unobserved, I forecasted batting averages using random walks and modeled pitching ERA with Kalman filters. After simulating many seasons, the model produced a distribution of win totals for all 30 teams and can also be used to estimate each team's probability of making the postseason.

Keywords

Cite

@article{arxiv.2505.05120,
  title  = {Simulating MLB Seasons using Bayesian Inference and Random Walks},
  author = {Simon Cha},
  journal= {arXiv preprint arXiv:2505.05120},
  year   = {2025}
}
R2 v1 2026-06-28T23:25:36.160Z