MLB 2024 Season Stats

Author

Ben

Introduction

I am going to be performing an analysis on data from the 2024 MLB season. Each row is a player who had more than 100 plate appearances throughout the season. This data covers stats like batting average, hits, home runs, etc. You can learn more at this link: MLB data. You can download my data here: My data

Research Question

Which age group of players has the most power on average?

Method

I want to see a visual that groups players by age and compares the average number of home runs by those grouped ages. I will need to group ages together using mutate to create those groups and also find the mean home run amounts of that group. I will be using player_age and home_runs to create a visual.

Analysis

Players between the ages of 30-34 hit significantly more home runs than any other age which means power most likely comes from a mix of experience and athleticism. This is important to know because as a player gets older, you might be less inclined to sign them to a contract because they may not have the same power that they used to, and you should not expect as many home runs from a younger player who lacks experience.