As a coach in the Division III MIAC conference, there are few advanced statistics available for use. Since modern statistics are more accurate and reliable ways to make decisions for teams, I set out to calculate some statistics that would be useful for my team to make decisions about lineup order and pitching matchups.
The first statistic I wanted to calculate was wOBA. Calculating wOBA is relatively easy using basic stats tracked on the conference website. The first step was pulling all of the stats from the MIAC website using an API so I could organize all the stats in my Python notebook. Once I set up the API and turned all the stats into dataframes, I combined all the teams into one dataframe, dropping the few columns with NA values. Finally, I calculated wOBA using this formula from FanGraphs (though the weights are from 2015 in this screenshot) :
I used Fangraphs 2026 weighted outcomes, which can be found at this link HERE. The individual weights for each outcome are calculated using expected runs from MLB. Therefore, my initial wOBA calculations will not be fully accurate as they do not take into consideration the correct expected run values for Division III baseball. My next step is to use the API I set up with the MIAC website to pull play-by-play data and create a run expectancy matrix specific to the MIAC.
After calculating wOBA and adding it as a column in my MIAC stats dataframe, I could look into the top performers from the 2026 season. I first filtered to show only hitters who had 20 plate appearances, then sorted by wOBA to see the best hitters.
Now, as I am working through calculating the weights for each outcome, I started by making an expected run matrix from all games in 2026 that involved a MIAC team. My first step was to test the API and the play-by-play stats by making a run expectancy just for Hamline's games. This is the result: