I will examine batting different elements of MLB 2022 Season Batting statistics from a csv file downloaded from the official MLB website.
2023-06-11
I will examine batting different elements of MLB 2022 Season Batting statistics from a csv file downloaded from the official MLB website.
\[ \text{anglesweetspotpercent} = \frac{\text{Number of hits classified as a 'sweet spot'}}{\text{Total number of hits}} \times 100 \]
\[ \text{ev95percent} = \frac{\text{Number of hits with exit velocity} \geq 95 \text{mph}}{\text{Total number of hits}} \times 100 \]
ggplot(exit_velocity_data, aes(x = avg_hit_speed)) + geom_histogram(binwidth = 1,fill = "blue", color = "black") + labs(title = "Distribution of Average Hit Speed", x = "Average Hit Speed", y = "Count")