Posts

Showing posts from November, 2021

Player Stat Percentiles in R

Image
 A huge feature of Baseball Savant  is the player dashboards when you go on their page. Everybody loves them. It's a great first-glance visual to see if a player is generally performing well or poorly in Statcast's batted-ball metrics and expected statistics. These percentile visuals are perfect in that it gives us the context of how well a player is compared to the rest of the league. For example, Aaron Judge's .287 batting average sounds pretty good-not-great until you realize that it was a 89th percentile batting average, and that the median batting average in 2021 was .249.  The only thing missing in Baseball Savant's dashboards? Well, the fact that it's only Statcast metrics. If I want a first-glance look at a player, I don't want to just know how well he did compared to the league in Statcast metrics, but in all metrics important to me. I think of the situation where I'm in a time crunch during a fantasy baseball draft. I'll hop onto his Baseball S...