Baseball
A lineup optimization framework. Uses projected wins above average on offense and defense to generate the optimal starting lineup using the Kuhn-Munkres algorithm. It generates matchup-specific lineups for both RHPs and LHPs.
A pair of animated plots in a Shiny app. The left plot shows each MLB team's actual wins (solid) and projected wins (dashed) if they maintained their current win percentage. The right plot shows the convergence of win percentage over the course of the season. Data was scraped from Baseball-Reference, visualized in ggplot2/gganimate, wrapped in Shiny for interactive team selection. An example for the San Diego Padres is shown below. Click the "MLB 2025 Plots" link above for more details and the link to the code.