Expected Runs in an Inning

About this project

Expected runs:

Loading...

Download from Windows Store Download from the Windows Phone Store

About this project: This shows, for a given situation, what the expected number of runs scored in the rest of the inning is, as well as the historical distribution of runs.

This is based on the same data that the Win Expectancy Finder uses. The data is from MLB games from 1957-2023, including postseason games.

From a technical standpoint, I got to use XPath to select the elements from the XML file. Here are my source files, which are also available on GitHub:

The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at 20 Sunset Rd., Newark, DE 19711.

Baseball statistic calculators