Title: Every MLB Pitch 2026 (pitch-by-pitch data) - March
Site / page: https://www.kaggle.com/datasets/brendanmcguinness/every-mlb-pitch-2026/data?select=march_2026_pitches.csv
Who posted it: Brandon McGuinness
Last updated: March 31, 2026
Downloaded on: September 14, 2026
The Kaggle states that MLB Statcast, their pitching tracking system, originally collected the data for collecting pitch data throughout the 2026 MLB season, this file being specifically for the 42 games that were played in the month of March. Brendan McGuinness compiled and posted the data on Kaggle and it is not described as synthetic.
The data was gathered using MLB Statcast which is the league’s pitch-tracking technology during MLB games in the month of March 2026. Statcast records information about each pitch thrown at an MLB game including its velocity, spin, movement, and location. One row in the dataset is a single pitch thrown so the rows are different observations on that individual pitch, not pairings, a repeat, or a snapshot.
This page says this data set has a Apache 2.0 license which allows the data to be used, copied, modified, and redistributed.
The file has 22535 rows and 23 columns.
| Column | Meaning | Stored as | Units | Range or levels | Notes |
|---|---|---|---|---|---|
game_date |
Date of the game | date | date | 2026-03-25 to 2026-03-31 | |
game_id |
Unique identifier for the game | dbl | 822834 to 825108 | Identifier rather than a measurement | |
pitcher_id |
Unique identifier for the pitcher | dbl | 434378 to 837227 | Identifier rather than a measurement | |
p_throws |
Pitcher’s throwing hand | chr | R (16,156), L (6,379) | ||
pitch_abbr |
Abbreviation for pitch type | chr | 15 pitch abbreviations | ||
pitch_name |
Name of the type of pitch thrown | chr | 15 pitch types | ||
inning |
Inning in which the pitch was thrown | dbl | inning | 1 to 11 | |
inning_topbot |
Whether the pitch occurred in the top or bottom of the inning | chr | Top (11,343), Bot (11,192) | ||
balls |
Number of balls in the count before the pitch | dbl | count | 0 to 3 | |
strikes |
Number of strikes in the count before the pitch | dbl | count | 0 to 2 | |
events |
Result/event associated with the plate appearance | chr | 20 distinct levels | ||
description |
Description of the result of the pitch | chr | 12 distinct levels | ||
total_pitch_ |
|||||
count |
Pitcher’s total pitch count | dbl | pitches | 1 to 104 | |
zone |
Statcast strike-zone location code | dbl | 1 to 14 | Categorical code stored as a number | |
attack_zone |
Location category for the pitch | dbl | 1 to 39 | Categorical code stored as a number | |
release_speed |
Speed of the pitch at release | dbl | mph | 33.6 to 102.5 | |
release_spin_ |
|||||
rate |
Spin rate of the pitch at release | dbl | rpm | 33 to 3,391 | |
pfx_x |
Horizontal movement of the pitch | dbl | feet | -2.76 to 2.26 | |
pfx_z |
Vertical movement of the pitch | dbl | feet | -1.66 to 2.34 | |
break_x |
Horizontal break of the pitch | dbl | -2.66 to 2.76 | ||
break_z |
Vertical break of the pitch | dbl | 0.48 to 19.68 | ||
plate_x |
Horizontal location of the pitch as it crosses home plate | dbl | feet | -3.56 to 3.50 | |
plate_z |
Vertical location of the pitch as it crosses home plate | dbl | feet | -2.21 to 6.37 |
The dataset has 22535 observations.0 observations have missing values
for release_spin_rate. The regression analysis will not use
these observations since release spin rate is a predictor of the model.
After removing observations with missing values in the model variables,
22535 complete observations will be used in the analysis.
For this particular assignment, one limitation is that this dataset contains multiple observations from the same pitcher within the same game. Pitches thrown by the same pitcher usually have similar characteristics and so these observations may not be statistically independent. Also, as mentioned in the missing values section, release spin rate has missing measurements so these observations will not be included in the regression analysis. Lastly, release speed may be affected by factors not included in the model like pitcher fatigue, physical condition, and game circumstances. These limitations should be considered when understanding the relationship between total pitch count and release speed.
Changed I made to the dataset include selecting the variables relevant to my research question which are release speed, total pitch count, release spin rate, and pitch type. I converted pitch type to a categorical factor and removed observations with missing values in the model which leaves a total of 22,466 complete observations. I kept pitcher and game identifiers to investigate potential dependence between observations. The detailed data cleaning and variable transformations are seen in Section 4: Data wrangling.
McGuinness, Brendan (2026). Every MLB Pitch 2026 (pitch-by-pitch data). Kaggle. https://www.kaggle.com/datasets/brendanmcguinness/every-mlb-pitch-2026. Accessed September 14, 2026.
Major League Baseball. (2026). Statcast. MLB.com. https://www.mlb.com/glossary/statcast. Accessed September 14, 2026.
The data from March 2026 pitching records the beginning of the regular season when all pitchers are making their first appearances of the year. At this time, pitchers are coming off of their off season reset where they may still be adjusting to new styles and approaches as well as getting back into the competitive workload. This makes it interesting to investigate if throwing velocity is associated with the number of pitches they have thrown. Understanding this relationship could provide insight into how pitch velocity varies with workload early in the season.
Research question: Among MLB pitches recorded in March 2026, how is total pitch count (pitches) associated with release speed (mph), holding release spin rate (rpm) and pitch type fixed?
Null hypothesis (\(H_0\)): The true slope of total pitch count is zero, with the other predictors in the model.
Alternative hypothesis (\(H_A\)): The true slope of total pitch count is not zero, with the other predictors held fixed. We expect a negative association because pitchers may become more fatigued as their pitch counts increase, potentially resulting in lower pitch release speeds.
release_speed (Outcome): The speed of the pitch when
it is released from the pitcher’s hand, measured in miles per hour
(mph). This is a continuous numeric variable stored as a number in R.
Release speed ranges from 33.6 to 102.5 mph, with a mean of 89.63 mph
and a standard deviation of 6 mph.
total_pitch_count (Predictor of interest): The
number of pitches a pitcher has thrown in the game, including the
current pitch. This is a discrete numeric variable stored as a number in
R. Pitch count ranges from 1 to 104 pitches, with a mean of 29.57
pitches and a standard deviation of 24.62 pitches.
release_spin_rate (Additional predictor): The rate
at which the baseball spins after being released, measured in
revolutions per minute (rpm). This is a numeric variable stored as a
number in R. Release spin rate ranges from 33 to 3391 rpm, with a mean
of 2264.61 rpm and a standard deviation of 372.3 rpm.
pitch_name (Additional predictor): The type of pitch
thrown, such as a four-seam fastball, slider, or changeup. This is a
categorical variable stored as a factor in R. The dataset contains 15
pitch categories. The reference category is 4-Seam Fastball. The number
of observations in each category is shown below.
model_data |>
count(pitch_name, name = "Number of pitches") |>
knitr::kable(
col.names = c("Pitch type", "Number of pitches"),
caption = "Number of observations by pitch type"
)
| Pitch type | Number of pitches |
|---|---|
| 4-Seam Fastball | 6778 |
| Changeup | 2328 |
| Curveball | 1447 |
| Cutter | 1737 |
| Eephus | 23 |
| Forkball | 33 |
| Knuckle Curve | 492 |
| Other | 11 |
| Sinker | 3871 |
| Slider | 2923 |
| Slow Curve | 7 |
| Slurve | 131 |
| Split-Finger | 834 |
| Sweeper | 1848 |
| Unknown | 3 |
# Convert spin rate to numeric and handle missing values
d <- d |>
mutate(
release_spin_rate = as.numeric(
na_if(as.character(release_spin_rate), "null")
),
pitch_name = factor(pitch_name)
)
# Create one complete-case dataset for regression analysis
model_data <- d |>
select(
release_speed, total_pitch_count,
release_spin_rate, pitch_name,
pitcher_id, game_id
) |>
drop_na(
release_speed, total_pitch_count,
release_spin_rate, pitch_name
) |>
mutate(
pitch_name = relevel(pitch_name, ref = "4-Seam Fastball")
)
# Number of observations retained and excluded
nrow(model_data)
## [1] 22466
nrow(d) - nrow(model_data)
## [1] 69
In this data wrangling section I wanted to ensure my dateset was
prepared for the regression analysis. To do so, I first converted
release_spin_rate to a numeric variable as well as
converted the 69 “null” values to NA and converted
pitch_name to a categorical factor. Next, I set 4-Seam
Fastball as the reference category so that other pitch types could be
compared against it. I then selected the specific variables of interest
for the regression model and retained pitcher_id and
game_id to be able to investigate if there is dependence
between observations. Observations with missing values in the model
variables were excluded.
After data wrangling, 22466 observations remained, while 69 observations were excluded. All regression models will use the same complete case dataset to ensure consistent comparisons.
# Histogram - release_speed (mph) vs. number of pitches
ggplot(model_data, aes(x = release_speed)) +
geom_histogram(
binwidth = 2,
fill = "steelblue",
color = "white"
) +
labs(
title = "Distribution of Pitch Release Speed",
x = "Release Speed (mph)",
y = "Number of Pitches"
) +
theme_minimal()
This histogram displays the distribution of pitch release speeds in the March 2026 MLB dataset.The mean release speed is 89.63 mph and its standard deviation is 6 mph. Most pitches’ release speeds are between 80-100 mph with most of them concentrated around 93-95 mph. The histogram has a left-skewed distribution and a longer tail toward the lower release speeds. There are multiple peaks which reflect differences in release speeds across pitch types. A few unusually low release speeds are also present in the dataset. These observations may be influential in the regression model and will be investigated further during the influence checks to determine whether their inclusion meaningfully affects the results.
# Scatterplot - Pitch Count vs. Release Speed
ggplot(model_data, aes(x = total_pitch_count, y = release_speed)) +
geom_point(alpha = 0.15, color = "steelblue") +
geom_smooth(method = "lm", se = FALSE, color = "red") +
labs(
title = "Pitch Count vs. Release Speed",
x = "Total Pitch Count (pitches)",
y = "Release Speed (mph)"
) +
theme_minimal()
# Scatterplot - Release Spin Rate vs. Release Speed
ggplot(model_data, aes(x = release_spin_rate, y = release_speed)) +
geom_point(alpha = 0.15, color = "steelblue") +
geom_smooth(method = "lm", se = FALSE, color = "red") +
labs(
title = "Release Spin Rate vs. Release Speed",
x = "Release Spin Rate (rpm)",
y = "Release Speed (mph)"
) +
theme_minimal()
# Box plots - Relase speed by pitch type
pitch_counts <- model_data |>
count(pitch_name) # Total number of pitches in each category
ggplot(
model_data,
aes(
x = reorder(pitch_name, release_speed, FUN = median),
y = release_speed
)
) +
geom_boxplot(fill = "steelblue", alpha = 0.7) +
scale_x_discrete(
labels = function(x) {
paste0(
x, " (n=",
pitch_counts$n[match(x, pitch_counts$pitch_name)],
")"
)
}
) +
coord_flip() +
labs(
title = "Release Speed by Pitch Type",
x = "Pitch Type (Number of Pitches)",
y = "Release Speed (mph)"
) +
theme_minimal()
# Choosing numeric variables to calculate Pearson correlations with
correlations <- model_data |>
select(release_speed, total_pitch_count, release_spin_rate) |>
cor(method = "pearson")
# Correlation matrix
knitr::kable(
round(correlations, 3),
caption = "Pearson Correlations Among Numeric Variables",
col.names = c("Release Speed", "Total Pitch Count",
"Release Spin Rate")
)
| Release Speed | Total Pitch Count | Release Spin Rate | |
|---|---|---|---|
| release_speed | 1.000 | -0.090 | -0.012 |
| total_pitch_count | -0.090 | 1.000 | -0.048 |
| release_spin_rate | -0.012 | -0.048 | 1.000 |
Conducting this exploratory analysis reveals a weak negative association between total pitch count and release speed (-0.09) also showing that release spin rate has almost no overall linear association with release speed (-0.012). Total pitch count and release spin rate are also weakly correlated (-0.048) which suggests little overlap between the numeric predictors. The boxplots are the most interesting as they display noticeable differences in release speed across pitch types, with fastballs generally having higher release speeds than breaking pitches (any pitch in baseball that changes direction).Some unusually low release speeds may be explained by slower pitch types, such as eephus pitches. Overall, the scatterplots show no obvious curved relationships, but the variation in release speeds and unusual observations should be investigated further during the regression model checks.
For the first model I fitted a multiple linear regression model using lm() to investigate the relationship between total pitch count and release speed while holding release spin rate and pitch type fixed. Total pitch count was included as the predictor of interest to see if release speed is associated with the number of pitches thrown. Release spin rate was also included since this is another characteristic of a pitch which could be related to the pitch’s velocity. Lastly, pitch type was included as the exploratory analysis displayed interesting differences in release speed between varying pitch categories.
# Fit the first multiple linear regression model
model1 <- lm(
release_speed ~ total_pitch_count + release_spin_rate + pitch_name,
data = model_data
)
summary(model1)
##
## Call:
## lm(formula = release_speed ~ total_pitch_count + release_spin_rate +
## pitch_name, data = model_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -13.8782 -1.8079 0.0498 1.9318 11.1064
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 9.027e+01 1.964e-01 459.59 <2e-16 ***
## total_pitch_count -1.356e-02 7.784e-04 -17.42 <2e-16 ***
## release_spin_rate 2.134e-03 8.236e-05 25.91 <2e-16 ***
## pitch_nameChangeup -7.086e+00 8.394e-02 -84.41 <2e-16 ***
## pitch_nameCurveball -1.535e+01 8.567e-02 -179.17 <2e-16 ***
## pitch_nameCutter -5.332e+00 7.690e-02 -69.33 <2e-16 ***
## pitch_nameEephus -4.700e+01 6.018e-01 -78.09 <2e-16 ***
## pitch_nameForkball -6.421e+00 5.121e-01 -12.54 <2e-16 ***
## pitch_nameKnuckle Curve -1.180e+01 1.341e-01 -88.01 <2e-16 ***
## pitch_nameOther -3.092e+01 8.619e-01 -35.88 <2e-16 ***
## pitch_nameSinker -6.865e-01 5.842e-02 -11.75 <2e-16 ***
## pitch_nameSlider -8.770e+00 6.385e-02 -137.34 <2e-16 ***
## pitch_nameSlow Curve -2.034e+01 1.077e+00 -18.87 <2e-16 ***
## pitch_nameSlurve -1.304e+01 2.524e-01 -51.65 <2e-16 ***
## pitch_nameSplit-Finger -5.947e+00 1.284e-01 -46.31 <2e-16 ***
## pitch_nameSweeper -1.261e+01 7.776e-02 -162.16 <2e-16 ***
## pitch_nameUnknown -2.684e+01 1.646e+00 -16.31 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 2.849 on 22449 degrees of freedom
## Multiple R-squared: 0.7747, Adjusted R-squared: 0.7745
## F-statistic: 4824 on 16 and 22449 DF, p-value: < 2.2e-16
# Extract model fit statistics
model1_summary <- summary(model1)
model1_r2 <- model1_summary$r.squared
model1_adj_r2 <- model1_summary$adj.r.squared
# Overall F-test
model1_f <- model1_summary$fstatistic
model1_f_p <- pf(
model1_f[1],
model1_f[2],
model1_f[3],
lower.tail = FALSE
)
# Coefficient table
model1_coef <- as.data.frame(coef(model1_summary))
# Round estimates, standard errors, and t-statistics
model1_coef[, 1:3] <- round(model1_coef[, 1:3], 4)
# Format p-values without displaying them as zero
model1_coef[, 4] <- format.pval(
model1_coef[, 4],
digits = 3,
eps = 0.001
)
# Display coefficient table
knitr::kable(
model1_coef,
caption = "Initial Regression Model Coefficients"
)
| Estimate | Std. Error | t value | Pr(>|t|) | |
|---|---|---|---|---|
| (Intercept) | 90.2720 | 0.1964 | 459.5905 | <0.001 |
| total_pitch_count | -0.0136 | 0.0008 | -17.4179 | <0.001 |
| release_spin_rate | 0.0021 | 0.0001 | 25.9090 | <0.001 |
| pitch_nameChangeup | -7.0855 | 0.0839 | -84.4130 | <0.001 |
| pitch_nameCurveball | -15.3491 | 0.0857 | -179.1714 | <0.001 |
| pitch_nameCutter | -5.3317 | 0.0769 | -69.3298 | <0.001 |
| pitch_nameEephus | -46.9990 | 0.6018 | -78.0913 | <0.001 |
| pitch_nameForkball | -6.4214 | 0.5121 | -12.5383 | <0.001 |
| pitch_nameKnuckle Curve | -11.8033 | 0.1341 | -88.0111 | <0.001 |
| pitch_nameOther | -30.9210 | 0.8619 | -35.8755 | <0.001 |
| pitch_nameSinker | -0.6865 | 0.0584 | -11.7527 | <0.001 |
| pitch_nameSlider | -8.7697 | 0.0639 | -137.3418 | <0.001 |
| pitch_nameSlow Curve | -20.3354 | 1.0774 | -18.8743 | <0.001 |
| pitch_nameSlurve | -13.0363 | 0.2524 | -51.6473 | <0.001 |
| pitch_nameSplit-Finger | -5.9473 | 0.1284 | -46.3079 | <0.001 |
| pitch_nameSweeper | -12.6094 | 0.0778 | -162.1646 | <0.001 |
| pitch_nameUnknown | -26.8386 | 1.6456 | -16.3093 | <0.001 |
This first model has an R² of 0.7747 and an adjusted R² of 0.7745. This explains the 77.47% of the variation in release speed. The overall model is statistically significant, F(16, 2.2449^{4}) = 4824.29, p < 0.001. All coefficients (total pitch count, release spin rate, and pitch type included) compared with the reference category have p-values under 0.05. However, the model assumptions must be checked before drawing conclusions from these results.
residual_data <- model_data |>
mutate(
observation = row_number(),
fitted_value = fitted(model1),
residual = residuals(model1)
)
residual_plot <- ggplot(
residual_data,
aes(
x = fitted_value,
y = residual,
text = paste0(
"Observation: ", observation,
"<br>Pitch type: ", pitch_name,
"<br>Pitch count: ", total_pitch_count,
"<br>Fitted speed: ", round(fitted_value, 2), " mph",
"<br>Residual: ", round(residual, 2), " mph"
)
)
) +
geom_point(alpha = 0.3, color = "steelblue") +
geom_hline(yintercept = 0, linetype = "dashed") +
geom_smooth(
aes(x = fitted_value, y = residual),
inherit.aes = FALSE,
method = "loess",
se = FALSE,
color = "red"
) +
labs(
title = "Residuals vs. Fitted Values",
subtitle = "Hover over a point to explore individual observations",
x = "Fitted Release Speed (mph)",
y = "Residual (mph)"
) +
theme_minimal()
ggplotly(residual_plot, tooltip = "text")
The Residuals vs Fitted plot displays a red smoothed line that remains approximately horizontal and close to zero, with no obvious curved pattern. The residuals form distinct clusters and their spread varies across fitted values, however, there is no strong visual evidence of nonlinearity. This tells us that the linearity assumption appears to be reasonably satisfied and that the differences in residual spread will be investigated further when checking equal variance.
# Add residuals and identify pitcher game groups
independence_data <- model_data |>
mutate(
residual = residuals(model1),
pitcher_game = interaction(pitcher_id, game_id, drop = TRUE)
)
# Count pitchers and pitcher game groups
n_distinct(independence_data$pitcher_id)
## [1] 392
n_distinct(independence_data$pitcher_game)
## [1] 672
# Examine residuals across pitcher-game groups
ggplot(independence_data,
aes(x = pitcher_game, y = residual)) +
geom_boxplot(outlier.shape = NA, fill = "steelblue") +
geom_hline(yintercept = 0, linetype = "dashed") +
labs(
title = "Residuals by Pitcher-Game",
x = "Pitcher-Game Group",
y = "Residual (mph)"
) +
theme_minimal() +
theme(
axis.text.x = element_blank(),
axis.ticks.x = element_blank()
)
# Order observations by pitcher game and pitch count
ordered_data <- independence_data |>
arrange(pitcher_game, total_pitch_count)
# Refit the original model using the ordered observations
model1_ordered <- lm(
release_speed ~ total_pitch_count + release_spin_rate + pitch_name,
data = ordered_data
)
# Durbin-Watson test
dw_result <- lmtest::dwtest(model1_ordered)
dw_result
##
## Durbin-Watson test
##
## data: model1_ordered
## DW = 0.7264, p-value < 2.2e-16
## alternative hypothesis: true autocorrelation is greater than 0
Checking for independence reveals that this assumption may be violaed since the dataset contains repeated observations from the same pitchers within the same game. To investigate further, I looked at the residuals grouped by pitcher and game and used a Durbin-Watson test after ordering observations by pitcher-game and pitch count. The Durbin-Watson test’s null hypothesis claims that there is no first order autocorrelation between consecutive residuals. The test produced DW = 0.7264 and p = <0.001. Since the p-value is below 0.05, the null hypothesis is rejected, providing evidence of positive autocorrelation in the ordered residuals. Since the dateset contains multiple pitcher-game groups, this test cannot fully establish independence between pitchers within those groups. Therefore, the independence assumption remains a concern because observations within the same pitcher-game group may be correlated, potentially affecting the reliability of the model’s standard errors and p-values. This issue will be investigated further in Section 8.
# Check equal variance using residuals versus fitted values
plot(model1, which = 1)
# Breusch-Pagan test
bp_result <- lmtest::bptest(model1)
bp_result
##
## studentized Breusch-Pagan test
##
## data: model1
## BP = 1274, df = 16, p-value < 2.2e-16
The Residuals vs Fitted plot displays the spread of resisuals and how it varies across predicted release speeds which indicates that there is unequal variance. The Breusch-Pagan test evaluates the null hypothesis that the residual variance is constant. Breusch-Pagan produced a statistic of 1274 with 16 degrees of freedom and a p-value of <0.001. The p-value is less than 0.05 which means the null hypothesis is rejected. Therefore, the equal variance assumption is not met. This may affect the reliability of the model’s standard errors and p-values which should be addressed in Section 8.
# Check normality with Q-Q plot of all residuals
plot(model1, which = 2)
# Shapiro-Wilk test not performed because the model
# contains more than the 5,000 observations allowed by R
To investigate normality, the Q-Q plot shows that most residuals closely follow the reference line, however, there are noticeable deviations in both tails. This tells that the residuals are normal in the center of the distribution but depart from normality at the extremes. The Shapiro-Wilk test could not be performed since the model contains 22466 observations, exceeding R’s limit of 5,000 observations for this test. Due to this, normality was asses only with the Q-Q plot. Although the normality assumption is not strictly met, the large sample size may reduce the impact of these deviations on statistical inference, especially since the other assumptions are adequately addressed.
# Calculate VIFs for the initial regression model
vif_results <- car::vif(model1)
# Calculate adjusted VIFs for all predictors
vif_table <- data.frame(
Predictor = rownames(vif_results),
Adjusted_VIF = vif_results[, "GVIF^(1/(2*Df))"]^2
)
# Results
knitr::kable(
vif_table,
digits = 3,
col.names = c("Predictor", "VIF"),
caption = "Variance Inflation Factors for Model Predictors"
)
| Predictor | VIF | |
|---|---|---|
| total_pitch_count | total_pitch_count | 1.017 |
| release_spin_rate | release_spin_rate | 2.602 |
| pitch_name | pitch_name | 1.072 |
I calculated the variance inflation factors (VIFs) for each predictor to check for multicollinearity. The VIF values were 1.017 for total pitch count, 2.602 for release spin rate, and 1.072 for pitch type. The squared adjusted GVIF was used for the categorical predictor. All values are below 5 which means there is no evidence of concerning multicollinearity among the predictors and no changes to the model are needed based on this check.
# Number of observations and model coefficients
n <- nobs(model1)
p <- length(coef(model1))
# Calculate influence measures
cook <- cooks.distance(model1)
dffits_values <- dffits(model1)
dfbetas_pitch <- dfbetas(model1)[, "total_pitch_count"]
# Calculate cutoffs
cook_cutoff <- 4 / n
dffits_cutoff <- 2 * sqrt(p / n)
dfbetas_cutoff <- 2 / sqrt(n)
# Identify observations exceeding each cutoff
high_cook <- cook > cook_cutoff
high_dffits <- abs(dffits_values) > dffits_cutoff
high_dfbetas <- abs(dfbetas_pitch) > dfbetas_cutoff
# Identify observations exceeding all three cutoffs
high_all <- high_cook & high_dffits & high_dfbetas
# Summarize the number of flagged observations
influence_summary <- data.frame(
Measure = c("Cook's distance", "DFFITS",
"DFBETAS (pitch count)", "All three"),
Cutoff = c(cook_cutoff, dffits_cutoff,
dfbetas_cutoff, NA),
Flagged = c(sum(high_cook), sum(high_dffits),
sum(high_dfbetas), sum(high_all))
)
# Influence summary
knitr::kable(
influence_summary,
digits = 4,
row.names = FALSE,
caption = "Influential Observation Diagnostics"
)
| Measure | Cutoff | Flagged |
|---|---|---|
| Cook’s distance | 0.0002 | 1124 |
| DFFITS | 0.0550 | 1124 |
| DFBETAS (pitch count) | 0.0133 | 1346 |
| All three | NA | 551 |
# Save row numbers exceeding all three cutoffs
influential_rows <- which(high_all)
# Identify all flagged observations
influential_pitches <- model_data[influential_rows, ] |>
mutate(model_row = influential_rows) |>
select(model_row, pitcher_id, game_id,
pitch_name, total_pitch_count, release_speed)
# Display first 10 flagged observations
knitr::kable(
head(influential_pitches, 10),
row.names = FALSE,
caption = "First 10 Observations Exceeding All Three Cutoffs"
)
| model_row | pitcher_id | game_id | pitch_name | total_pitch_count | release_speed |
|---|---|---|---|---|---|
| 90 | 643511 | 822834 | Sinker | 1 | 82.8 |
| 91 | 643511 | 822834 | Sinker | 2 | 82.3 |
| 92 | 643511 | 822834 | Slider | 3 | 74.6 |
| 93 | 643511 | 822834 | Sinker | 4 | 82.2 |
| 94 | 643511 | 822834 | Sinker | 5 | 82.7 |
| 95 | 643511 | 822834 | Sinker | 6 | 82.3 |
| 96 | 643511 | 822834 | Slider | 7 | 72.9 |
| 97 | 643511 | 822834 | Sinker | 8 | 83.3 |
| 98 | 643511 | 822834 | Sinker | 9 | 83.7 |
| 99 | 643511 | 822834 | Sinker | 10 | 83.8 |
I calculated Cook’s distance, DFFITS, and DFBETAS for total pitch count to see if there are any potentially influential observations. With the recommended cutoffs, 1124 observations exceeded the Cook’s distance threshold, 1124 exceeded the DFFITS threshold, and 1346 exceeded the DFBETAS threshold. A sum of 551 observations exceeded all three thresholds. The first 10 flagged observations are from the same pitcher and game which tells us that influential observations may be clustered within certain pitcher-game groups. These observations will be investigated further in Section 8 to determine whether excluding them meaningfully changes the regression results.
After checking the model with the diagnostic checks, these tests suggest that linearity is reasonably satisfied but there are concerns about independence, equal variance, and normality. Repated observations are affecting independence since there are recordings from the same pitchers and games. The Breusch-Pagan test also showed evidence of unequal variance. The Q-Q plot displays deviations from normality in the tails. The VIF results did not indicate concerning multicollinearity, however, several observations exceeded the influence thresholds. These concerns will be addressed and considered in Section 8 to determine whether adjustments to the model affect the results.
# Original coefficient results
ordinary_results <- coef(summary(model1))
# Calculate HC3 robust standard errors
robust_results <- lmtest::coeftest(
model1,
vcov. = sandwich::vcovHC(model1, type = "HC3")
)
# Compare ordinary and robust inference for pitch count
robust_comparison <- data.frame(
Method = c("Ordinary", "HC3 robust"),
Estimate = c(
ordinary_results["total_pitch_count", "Estimate"],
robust_results["total_pitch_count", "Estimate"]
),
Std_Error = c(
ordinary_results["total_pitch_count", "Std. Error"],
robust_results["total_pitch_count", "Std. Error"]
),
P_Value = c(
ordinary_results["total_pitch_count", "Pr(>|t|)"],
robust_results["total_pitch_count", "Pr(>|t|)"]
)
)
# Format table for the report
robust_table <- robust_comparison |>
mutate(
Estimate = round(Estimate, 5),
Std_Error = round(Std_Error, 5),
P_Value = format.pval(P_Value, digits = 3, eps = 0.001)
)
knitr::kable(
robust_table,
col.names = c("Method", "Estimate", "Standard Error", "p-value"),
caption = "Ordinary vs. HC3 Robust Inference for Pitch Count"
)
| Method | Estimate | Standard Error | p-value |
|---|---|---|---|
| Ordinary | -0.01356 | 0.00078 | <0.001 |
| HC3 robust | -0.01356 | 0.00079 | <0.001 |
When HC3 robust standard errors is applied the standard error for total pitch count increased slightly from 7.8^{-4} to 7.9^{-4}. The coefficient stayed the same at -0.01356 with the p-value staying below 0.001. The model’s R² also stayed the same at 0.7747. From these results, we can see that the adjustment for unequal variance did not meaningfully change the relationship between total pitch count and release speed or its statistical significance.
# Add pitcher as a categorical predictor
model_data <- model_data |>
mutate(pitcher_id = factor(pitcher_id))
# Fit a model that accounts for differences between pitchers
model_pitcher <- lm(
release_speed ~ total_pitch_count + release_spin_rate +
pitch_name + pitcher_id,
data = model_data
)
# Model summaries
pitcher_summary <- summary(model_pitcher)
original_summary <- summary(model1)
# Compare pitch count coefficients and model fit
pitcher_comparison <- data.frame(
Model = c("Original", "Pitcher-adjusted"),
Estimate = c(
coef(model1)["total_pitch_count"],
coef(model_pitcher)["total_pitch_count"]
),
P_Value = c(
coef(original_summary)["total_pitch_count", "Pr(>|t|)"],
coef(pitcher_summary)["total_pitch_count", "Pr(>|t|)"]
),
R_Squared = c(
original_summary$r.squared,
pitcher_summary$r.squared
)
)
# Format results
pitcher_table <- pitcher_comparison |>
mutate(
Estimate = round(Estimate, 5),
P_Value = format.pval(P_Value, digits = 3, eps = 0.001),
R_Squared = round(R_Squared, 4)
)
# Display comparison
knitr::kable(
pitcher_table,
row.names = FALSE,
col.names = c("Model", "Pitch Count Estimate",
"p-value", "R-squared"),
caption = "Original vs. Pitcher-Adjusted Regression Model"
)
| Model | Pitch Count Estimate | p-value | R-squared |
|---|---|---|---|
| Original | -0.01356 | <0.001 | 0.7747 |
| Pitcher-adjusted | -0.01241 | <0.001 | 0.9200 |
# Compare residual patterns across pitcher-game groups
pitcher_residuals <- model_data |>
mutate(
residual = residuals(model_pitcher),
pitcher_game = interaction(pitcher_id, game_id, drop = TRUE)
)
ggplot(pitcher_residuals,
aes(x = pitcher_game, y = residual)) +
geom_boxplot(outlier.shape = NA, fill = "steelblue") +
geom_hline(yintercept = 0, linetype = "dashed") +
labs(
title = "Pitcher-Adjusted Model Residuals by Pitcher-Game",
x = "Pitcher-Game Group",
y = "Residual (mph)"
) +
theme_minimal() +
theme(
axis.text.x = element_blank(),
axis.ticks.x = element_blank()
)
I added pitcher_id as a categorical predictor to
investigate if their is potential dependence between observations which
helps account for the difference in release speed between pitchers.
After implementing this, the pitch-count coefficient changed from
-0.01356 to -0.01241, and the p-value remained less than 0.001. The
model’s R² increased from 0.7747 to 0.92 which tells us that including
pitcher differences explains more variation in release speed. The
residual plot also displays residuals more closely centered around 0
across pitcher-game groups with some variation remaining. This
demonstrates that the pitcher adjustment improved model fit, however, it
still doesn’t establish independence between pitches within the same
game.
# Remove observations exceeding all three influence cutoffs
model_no_influence <- lm(
release_speed ~ total_pitch_count + release_spin_rate + pitch_name,
data = model_data[!high_all, ]
)
# Compare the original model with the sensitivity model
influence_comparison <- data.frame(
Model = c("Original", "Without influential observations"),
Observations = c(nobs(model1), nobs(model_no_influence)),
Estimate = c(
coef(model1)["total_pitch_count"],
coef(model_no_influence)["total_pitch_count"]
),
P_Value = c(
coef(summary(model1))["total_pitch_count", "Pr(>|t|)"],
coef(summary(model_no_influence))["total_pitch_count", "Pr(>|t|)"]
),
R_Squared = c(
summary(model1)$r.squared,
summary(model_no_influence)$r.squared
)
)
# Format comparison table
influence_table <- influence_comparison |>
mutate(
Estimate = round(Estimate, 5),
P_Value = format.pval(P_Value, digits = 3, eps = 0.001),
R_Squared = round(R_Squared, 4)
)
# Display results
knitr::kable(
influence_table,
row.names = FALSE,
col.names = c("Model", "Observations",
"Pitch Count Estimate", "p-value", "R-squared"),
caption = "Sensitivity Analysis Excluding Influential Observations"
)
| Model | Observations | Pitch Count Estimate | p-value | R-squared |
|---|---|---|---|---|
| Original | 22466 | -0.01356 | <0.001 | 0.7747 |
| Without influential observations | 21915 | -0.01227 | <0.001 | 0.7957 |
I refitted the original regression model after excluding the 551 observations that exceeded all three influence thresholds. The pitch count coefficient went from -0.01356 to -0.01227 and the p-value stayed less than 0.001. The model’s R² increased from 0.7747 to 0.7957. Even though taking out the influential extreme observations slightly changed the coefficient and model fit. the negative association between pitch count and release speed remained statistically significant. This means that the original conclusion does not appear to depend entirely on these influential observations.
# Check linearity and residual spread
plot(model_pitcher, which = 1)
# Check normality visually
plot(model_pitcher, which = 2)
# Recheck equal variance
bp_pitcher <- lmtest::bptest(model_pitcher)
bp_pitcher
##
## studentized Breusch-Pagan test
##
## data: model_pitcher
## BP = 6723, df = 406, p-value < 2.2e-16
I rechecked the model assumptions after adding pitcher level adjustments to determine whether the changes improved the residual patters. The Residuals vs Fitted plot shows a slight curved pattern which means there is some remaining nonlinearity. The Q-Q plot shows that most residuals follow the reference line yet there are still noticeable deviations in both tails. The Breusch-Pagan test produced a statistic of 6722.98 with 406 degrees of freedom and a p-value of <0.001. The p-value is below 0.05 which means the equal variance assumption is still not met. The pitcher adjustment improved overall model fit but the assumption concerns remain.
# Calculate HC3 robust standard errors for pitcher-adjusted model
pitcher_robust <- lmtest::coeftest(
model_pitcher,
vcov. = sandwich::vcovHC(model_pitcher, type = "HC3")
)
# Compare ordinary and HC3 inference for pitch count
pitcher_robust_comparison <- data.frame(
Method = c("Ordinary", "HC3 robust"),
Estimate = c(
coef(model_pitcher)["total_pitch_count"],
pitcher_robust["total_pitch_count", "Estimate"]
),
Std_Error = c(
coef(summary(model_pitcher))["total_pitch_count", "Std. Error"],
pitcher_robust["total_pitch_count", "Std. Error"]
),
P_Value = c(
coef(summary(model_pitcher))["total_pitch_count", "Pr(>|t|)"],
pitcher_robust["total_pitch_count", "Pr(>|t|)"]
)
)
# Format comparison table
pitcher_robust_table <- pitcher_robust_comparison |>
mutate(
Estimate = round(Estimate, 5),
Std_Error = round(Std_Error, 5),
P_Value = format.pval(P_Value, digits = 3, eps = 0.001)
)
knitr::kable(
pitcher_robust_table,
row.names = FALSE,
col.names = c("Method", "Estimate",
"Standard Error", "p-value"),
caption = "Ordinary vs. HC3 Inference for Pitcher-Adjusted Model"
)
| Method | Estimate | Standard Error | p-value |
|---|---|---|---|
| Ordinary | -0.01241 | 0.00060 | <0.001 |
| HC3 robust | -0.01241 | 0.00064 | <0.001 |
Since there is still remaining unequal variance, I applied HC3 robust standard errors to the pitcher-adjusted model.The standard error for total pitch count increased a small amount from 6^{-4} to 6.4^{-4} and the coefficient remained unchanged at 1r round(pitcher_robust_comparison$Estimate[2], 5)1. The p-value remained less than 0.001 and R² remained the same at 0.92. This demonstrates that the HC3 adjustment did not meaningfully change the estimated relationship between pitch count and release speed, although it does not resolve potential dependence between pitches within the same game.
The remediation and sensitivity analyses demonstrate that the negative association between total pitch count and release speed remained statistically significant across the models investigated. HC3 robust standard errors did not meaningfully change the results but adding pitcher level adjustments did increase R² from 0.7747 to 0.92. Removing the influential observations also did not change the direction or statistical significant of the pitch count association. I ultimately chose to retain the pitcher-adjusted model with all observations and HC3 robust standard errors because it accounts for differences in release speed between pitchers while keeping the original dataset. It is important to note however that unequal variance, deviations from normality, and potential dependence between pitches were not able to be resolved and remain limitations of the analysis.
For the final model, I have chosen the pitcher adjusted regression model because it includes the total pitch count, release spin rate, pitch type, and pitcher ID to account for differences in release speed between pitchers. All 22466 observations were retained, and HC3 robust standard errors were used because the equal-variance assumption was not met.
# Pitcher adjusted model as the final model
final_model <- model_pitcher
# Final model coefficients
final_coef <- as.data.frame(coef(summary(final_model)))
# Format estimates, standard errors, and t statistics
final_coef[, 1:3] <- round(final_coef[, 1:3], 4)
# Format p-values
final_coef[, 4] <- format.pval(
final_coef[, 4],
digits = 3,
eps = 0.001
)
# Display coefficient table
knitr::kable(
final_coef,
caption = "Final Regression Model Coefficients (Ordinary Standard Errors)"
)
| Estimate | Std. Error | t value | Pr(>|t|) | |
|---|---|---|---|---|
| (Intercept) | 92.6478 | 0.2485 | 372.8515 | < 0.001 |
| total_pitch_count | -0.0124 | 0.0006 | -20.6446 | < 0.001 |
| release_spin_rate | 0.0008 | 0.0001 | 11.7147 | < 0.001 |
| pitch_nameChangeup | -7.2873 | 0.0587 | -124.2039 | < 0.001 |
| pitch_nameCurveball | -15.0706 | 0.0570 | -264.5464 | < 0.001 |
| pitch_nameCutter | -4.5635 | 0.0519 | -87.8586 | < 0.001 |
| pitch_nameEephus | -51.0051 | 0.7045 | -72.3944 | < 0.001 |
| pitch_nameForkball | -10.3697 | 0.3448 | -30.0758 | < 0.001 |
| pitch_nameKnuckle Curve | -12.8595 | 0.0920 | -139.7816 | < 0.001 |
| pitch_nameOther | -34.5777 | 0.8138 | -42.4872 | < 0.001 |
| pitch_nameSinker | -0.5477 | 0.0405 | -13.5283 | < 0.001 |
| pitch_nameSlider | -8.7090 | 0.0418 | -208.3609 | < 0.001 |
| pitch_nameSlow Curve | -19.4785 | 0.6702 | -29.0630 | < 0.001 |
| pitch_nameSlurve | -12.0270 | 0.1820 | -66.0694 | < 0.001 |
| pitch_nameSplit-Finger | -7.2486 | 0.0922 | -78.5922 | < 0.001 |
| pitch_nameSweeper | -11.9158 | 0.0530 | -224.8978 | < 0.001 |
| pitch_nameUnknown | -26.4246 | 0.9979 | -26.4815 | < 0.001 |
| pitcher_id445276 | 1.5750 | 0.4397 | 3.5820 | < 0.001 |
| pitcher_id453286 | -0.2684 | 0.2684 | -1.0001 | 0.31727 |
| pitcher_id455119 | 1.3369 | 0.3527 | 3.7909 | < 0.001 |
| pitcher_id472610 | -0.2061 | 0.3369 | -0.6118 | 0.54069 |
| pitcher_id500779 | -2.1464 | 0.2736 | -7.8462 | < 0.001 |
| pitcher_id518585 | -4.4324 | 0.4255 | -10.4171 | < 0.001 |
| pitcher_id519141 | -0.0863 | 0.3126 | -0.2762 | 0.78238 |
| pitcher_id519242 | -1.1985 | 0.2648 | -4.5256 | < 0.001 |
| pitcher_id527048 | -2.8122 | 0.3163 | -8.8923 | < 0.001 |
| pitcher_id542888 | 0.2533 | 0.3303 | 0.7669 | 0.44315 |
| pitcher_id543056 | -2.7334 | 0.4976 | -5.4937 | < 0.001 |
| pitcher_id543135 | 1.5636 | 0.2731 | 5.7248 | < 0.001 |
| pitcher_id543243 | 0.1872 | 0.2718 | 0.6887 | 0.49100 |
| pitcher_id547179 | -0.3745 | 0.2616 | -1.4313 | 0.15236 |
| pitcher_id547184 | 2.9519 | 0.3676 | 8.0294 | < 0.001 |
| pitcher_id547973 | 2.9465 | 0.4291 | 6.8673 | < 0.001 |
| pitcher_id548384 | -2.6130 | 0.3786 | -6.9026 | < 0.001 |
| pitcher_id571510 | -1.8881 | 0.2887 | -6.5395 | < 0.001 |
| pitcher_id571927 | -0.8766 | 0.2709 | -3.2353 | 0.00122 |
| pitcher_id571945 | -1.4719 | 0.2592 | -5.6787 | < 0.001 |
| pitcher_id571948 | -6.4297 | 0.3647 | -17.6314 | < 0.001 |
| pitcher_id572955 | 5.3183 | 0.3133 | 16.9757 | < 0.001 |
| pitcher_id573124 | -3.4532 | 0.4004 | -8.6239 | < 0.001 |
| pitcher_id573204 | -0.0564 | 0.4696 | -0.1202 | 0.90436 |
| pitcher_id579328 | 1.1648 | 0.2670 | 4.3622 | < 0.001 |
| pitcher_id592332 | -0.5326 | 0.2704 | -1.9699 | 0.04886 |
| pitcher_id592662 | -0.0746 | 0.2643 | -0.2821 | 0.77790 |
| pitcher_id592773 | 4.0016 | 0.2764 | 14.4801 | < 0.001 |
| pitcher_id592791 | -2.9693 | 0.2684 | -11.0621 | < 0.001 |
| pitcher_id592836 | -2.4936 | 0.2589 | -9.6306 | < 0.001 |
| pitcher_id593958 | -0.3586 | 0.2724 | -1.3161 | 0.18815 |
| pitcher_id593974 | 3.0251 | 0.3185 | 9.4986 | < 0.001 |
| pitcher_id594580 | -2.1900 | 0.3455 | -6.3389 | < 0.001 |
| pitcher_id594798 | 4.8028 | 0.2719 | 17.6626 | < 0.001 |
| pitcher_id595014 | 2.3185 | 0.4835 | 4.7948 | < 0.001 |
| pitcher_id595345 | -5.3216 | 0.3482 | -15.2847 | < 0.001 |
| pitcher_id596001 | -0.7664 | 0.3191 | -2.4022 | 0.01631 |
| pitcher_id596133 | -0.3375 | 0.3384 | -0.9973 | 0.31865 |
| pitcher_id601713 | -0.1740 | 0.2830 | -0.6150 | 0.53856 |
| pitcher_id605130 | -3.6559 | 0.3360 | -10.8803 | < 0.001 |
| pitcher_id605135 | -3.0217 | 0.2583 | -11.6998 | < 0.001 |
| pitcher_id605280 | 0.9231 | 0.2644 | 3.4910 | < 0.001 |
| pitcher_id605400 | -2.6526 | 0.2644 | -10.0343 | < 0.001 |
| pitcher_id605447 | -0.5647 | 0.3416 | -1.6531 | 0.09832 |
| pitcher_id605452 | 3.3631 | 0.3338 | 10.0738 | < 0.001 |
| pitcher_id605488 | -2.7345 | 0.2692 | -10.1571 | < 0.001 |
| pitcher_id605540 | -1.0124 | 0.2842 | -3.5621 | < 0.001 |
| pitcher_id606303 | 0.8892 | 0.3728 | 2.3850 | 0.01709 |
| pitcher_id606996 | 0.1513 | 0.2876 | 0.5261 | 0.59885 |
| pitcher_id607067 | 0.2734 | 0.3271 | 0.8360 | 0.40317 |
| pitcher_id607192 | 1.8070 | 0.2645 | 6.8321 | < 0.001 |
| pitcher_id607200 | 1.0014 | 0.2731 | 3.6675 | < 0.001 |
| pitcher_id607259 | -1.5303 | 0.2652 | -5.7710 | < 0.001 |
| pitcher_id607455 | -2.4605 | 0.4479 | -5.4938 | < 0.001 |
| pitcher_id607481 | -1.8236 | 0.3939 | -4.6303 | < 0.001 |
| pitcher_id607536 | 0.1703 | 0.2717 | 0.6269 | 0.53073 |
| pitcher_id607625 | -1.6163 | 0.2740 | -5.8997 | < 0.001 |
| pitcher_id608032 | -2.9256 | 0.3822 | -7.6536 | < 0.001 |
| pitcher_id608331 | -0.2671 | 0.2317 | -1.1528 | 0.24900 |
| pitcher_id608372 | -0.2868 | 0.2908 | -0.9860 | 0.32415 |
| pitcher_id608379 | -1.4726 | 0.2716 | -5.4213 | < 0.001 |
| pitcher_id608566 | 1.4826 | 0.2881 | 5.1461 | < 0.001 |
| pitcher_id608650 | -1.4872 | 0.2862 | -5.1956 | < 0.001 |
| pitcher_id608718 | -7.3492 | 0.3995 | -18.3979 | < 0.001 |
| pitcher_id621107 | -0.5205 | 0.2771 | -1.8786 | 0.06031 |
| pitcher_id621111 | -0.0670 | 0.2907 | -0.2305 | 0.81772 |
| pitcher_id621112 | 0.3256 | 0.4137 | 0.7871 | 0.43125 |
| pitcher_id621121 | -0.1635 | 0.2610 | -0.6266 | 0.53095 |
| pitcher_id621237 | 3.6124 | 0.3171 | 11.3914 | < 0.001 |
| pitcher_id621242 | 1.9264 | 0.2933 | 6.5692 | < 0.001 |
| pitcher_id621366 | 0.8627 | 0.3824 | 2.2559 | 0.02409 |
| pitcher_id621381 | -4.2929 | 0.4582 | -9.3686 | < 0.001 |
| pitcher_id621383 | -0.1315 | 0.3162 | -0.4159 | 0.67752 |
| pitcher_id622491 | 0.7246 | 0.2672 | 2.7122 | 0.00669 |
| pitcher_id622554 | 3.1289 | 0.3596 | 8.7005 | < 0.001 |
| pitcher_id622608 | 2.7916 | 0.3243 | 8.6069 | < 0.001 |
| pitcher_id622663 | 3.7245 | 0.2686 | 13.8671 | < 0.001 |
| pitcher_id623149 | -1.6973 | 0.3681 | -4.6114 | < 0.001 |
| pitcher_id623168 | 4.2222 | 0.7274 | 5.8044 | < 0.001 |
| pitcher_id623211 | 1.2191 | 0.4479 | 2.7216 | 0.00650 |
| pitcher_id623437 | -0.2105 | 0.3335 | -0.6312 | 0.52794 |
| pitcher_id623454 | 0.3207 | 0.3058 | 1.0489 | 0.29422 |
| pitcher_id623474 | -2.0130 | 0.3774 | -5.3333 | < 0.001 |
| pitcher_id624133 | -2.5506 | 0.2760 | -9.2409 | < 0.001 |
| pitcher_id625643 | -0.7250 | 0.2740 | -2.6461 | 0.00815 |
| pitcher_id628452 | -0.0082 | 0.6357 | -0.0129 | 0.98968 |
| pitcher_id640448 | 2.1879 | 0.3943 | 5.5495 | < 0.001 |
| pitcher_id640451 | 3.2410 | 0.5763 | 5.6235 | < 0.001 |
| pitcher_id640455 | -5.7392 | 0.3732 | -15.3785 | < 0.001 |
| pitcher_id641302 | -3.0663 | 0.3334 | -9.1969 | < 0.001 |
| pitcher_id641312 | 0.8863 | 0.3323 | 2.6669 | 0.00766 |
| pitcher_id641329 | 1.5664 | 0.4061 | 3.8574 | < 0.001 |
| pitcher_id641401 | -1.5787 | 0.3556 | -4.4392 | < 0.001 |
| pitcher_id641743 | 1.2740 | 0.2625 | 4.8523 | < 0.001 |
| pitcher_id641745 | 2.9590 | 0.3633 | 8.1448 | < 0.001 |
| pitcher_id641755 | 1.2029 | 0.5130 | 2.3449 | 0.01904 |
| pitcher_id641778 | -2.2935 | 0.2661 | -8.6194 | < 0.001 |
| pitcher_id641793 | -0.9487 | 0.2767 | -3.4284 | < 0.001 |
| pitcher_id641816 | -1.5238 | 0.2726 | -5.5900 | < 0.001 |
| pitcher_id641835 | 0.4625 | 0.3017 | 1.5329 | 0.12531 |
| pitcher_id641927 | -3.6816 | 0.2990 | -12.3114 | < 0.001 |
| pitcher_id641941 | -1.7314 | 0.3519 | -4.9197 | < 0.001 |
| pitcher_id642100 | 0.0548 | 0.3357 | 0.1632 | 0.87033 |
| pitcher_id642121 | -2.9142 | 0.2794 | -10.4308 | < 0.001 |
| pitcher_id642207 | -1.4419 | 0.3641 | -3.9599 | < 0.001 |
| pitcher_id642397 | 0.5943 | 0.3062 | 1.9405 | 0.05233 |
| pitcher_id642528 | 6.0896 | 0.3594 | 16.9431 | < 0.001 |
| pitcher_id642547 | 0.2002 | 0.2755 | 0.7264 | 0.46759 |
| pitcher_id642701 | -0.8051 | 0.2858 | -2.8173 | 0.00485 |
| pitcher_id643377 | 4.7320 | 0.3394 | 13.9431 | < 0.001 |
| pitcher_id643410 | -2.1031 | 0.3399 | -6.1871 | < 0.001 |
| pitcher_id643511 | -11.0409 | 0.3689 | -29.9309 | < 0.001 |
| pitcher_id645261 | 2.5483 | 0.2776 | 9.1794 | < 0.001 |
| pitcher_id646241 | -0.7633 | 0.3078 | -2.4795 | 0.01317 |
| pitcher_id647315 | 2.1840 | 0.3186 | 6.8543 | < 0.001 |
| pitcher_id647336 | -0.7502 | 0.2788 | -2.6907 | 0.00714 |
| pitcher_id650556 | 0.7995 | 0.3324 | 2.4052 | 0.01617 |
| pitcher_id650633 | 0.0122 | 0.2701 | 0.0450 | 0.96408 |
| pitcher_id650644 | -2.3748 | 0.2669 | -8.8981 | < 0.001 |
| pitcher_id650911 | 0.4473 | 0.2664 | 1.6793 | 0.09312 |
| pitcher_id656222 | -1.0280 | 0.3138 | -3.2758 | 0.00106 |
| pitcher_id656234 | 1.2057 | 0.3361 | 3.5871 | < 0.001 |
| pitcher_id656271 | 0.3088 | 0.3095 | 0.9978 | 0.31840 |
| pitcher_id656302 | 3.4467 | 0.2641 | 13.0495 | < 0.001 |
| pitcher_id656427 | -0.5817 | 0.2645 | -2.1991 | 0.02788 |
| pitcher_id656457 | -4.0298 | 0.4484 | -8.9872 | < 0.001 |
| pitcher_id656464 | -0.5817 | 0.3515 | -1.6550 | 0.09793 |
| pitcher_id656492 | -1.5450 | 0.2674 | -5.7782 | < 0.001 |
| pitcher_id656546 | 3.2065 | 0.3169 | 10.1192 | < 0.001 |
| pitcher_id656550 | 0.1467 | 0.2750 | 0.5335 | 0.59371 |
| pitcher_id656605 | -0.9898 | 0.2740 | -3.6123 | < 0.001 |
| pitcher_id656638 | 1.4810 | 0.5516 | 2.6852 | 0.00725 |
| pitcher_id656641 | -1.3716 | 0.2827 | -4.8513 | < 0.001 |
| pitcher_id656730 | 4.5094 | 0.3505 | 12.8675 | < 0.001 |
| pitcher_id656794 | -0.0869 | 0.2735 | -0.3176 | 0.75078 |
| pitcher_id656848 | 1.8139 | 0.4132 | 4.3900 | < 0.001 |
| pitcher_id656849 | -1.7236 | 0.2752 | -6.2631 | < 0.001 |
| pitcher_id656876 | 1.6235 | 0.2786 | 5.8266 | < 0.001 |
| pitcher_id656945 | 2.9463 | 0.3677 | 8.0135 | < 0.001 |
| pitcher_id657044 | -6.0308 | 0.3639 | -16.5714 | < 0.001 |
| pitcher_id657097 | -1.1138 | 0.3638 | -3.0615 | 0.00221 |
| pitcher_id657277 | -0.3657 | 0.2300 | -1.5900 | 0.11185 |
| pitcher_id657424 | -1.2655 | 0.3420 | -3.7005 | < 0.001 |
| pitcher_id657514 | -3.5785 | 0.3725 | -9.6063 | < 0.001 |
| pitcher_id657612 | -4.8244 | 0.3687 | -13.0841 | < 0.001 |
| pitcher_id657649 | 0.6128 | 0.3730 | 1.6430 | 0.10039 |
| pitcher_id657746 | -0.0862 | 0.2677 | -0.3219 | 0.74752 |
| pitcher_id657756 | -1.0661 | 0.3092 | -3.4476 | < 0.001 |
| pitcher_id660271 | 0.6049 | 0.2659 | 2.2744 | 0.02295 |
| pitcher_id660761 | -1.5949 | 0.2852 | -5.5923 | < 0.001 |
| pitcher_id660825 | -0.0939 | 0.3170 | -0.2963 | 0.76702 |
| pitcher_id661395 | 7.8526 | 0.3046 | 25.7770 | < 0.001 |
| pitcher_id662253 | 1.2814 | 0.3418 | 3.7490 | < 0.001 |
| pitcher_id663158 | 4.5781 | 0.3481 | 13.1519 | < 0.001 |
| pitcher_id663372 | 2.0797 | 0.3152 | 6.5987 | < 0.001 |
| pitcher_id663436 | 0.3108 | 0.2627 | 1.1830 | 0.23681 |
| pitcher_id663460 | -1.2815 | 0.2819 | -4.5467 | < 0.001 |
| pitcher_id663465 | -4.4436 | 0.3019 | -14.7186 | < 0.001 |
| pitcher_id663485 | 0.2185 | 0.4699 | 0.4649 | 0.64199 |
| pitcher_id663542 | -2.6602 | 0.2973 | -8.9483 | < 0.001 |
| pitcher_id663554 | 1.4244 | 0.2629 | 5.4171 | < 0.001 |
| pitcher_id663556 | 1.5804 | 0.2722 | 5.8067 | < 0.001 |
| pitcher_id663558 | -3.0001 | 0.3079 | -9.7445 | < 0.001 |
| pitcher_id663559 | -0.1013 | 0.3145 | -0.3221 | 0.74734 |
| pitcher_id663574 | 0.2209 | 0.3117 | 0.7087 | 0.47853 |
| pitcher_id663623 | -0.5344 | 0.2617 | -2.0419 | 0.04117 |
| pitcher_id663687 | -0.6802 | 0.2947 | -2.3085 | 0.02098 |
| pitcher_id663738 | 0.5840 | 0.6031 | 0.9683 | 0.33291 |
| pitcher_id663765 | 0.6268 | 0.3397 | 1.8449 | 0.06506 |
| pitcher_id663855 | 4.9025 | 0.3120 | 15.7141 | < 0.001 |
| pitcher_id663893 | 3.3294 | 0.3066 | 10.8595 | < 0.001 |
| pitcher_id663903 | -2.9769 | 0.2774 | -10.7307 | < 0.001 |
| pitcher_id663947 | -1.7350 | 0.3681 | -4.7139 | < 0.001 |
| pitcher_id663969 | 2.2058 | 0.4140 | 5.3283 | < 0.001 |
| pitcher_id663978 | -0.8611 | 0.2726 | -3.1592 | 0.00158 |
| pitcher_id663992 | -1.7519 | 0.2763 | -6.3415 | < 0.001 |
| pitcher_id664074 | 2.7932 | 0.3156 | 8.8492 | < 0.001 |
| pitcher_id664076 | -0.2097 | 0.3141 | -0.6677 | 0.50434 |
| pitcher_id664126 | 0.7643 | 0.3451 | 2.2146 | 0.02680 |
| pitcher_id664141 | 0.8195 | 0.3061 | 2.6775 | 0.00742 |
| pitcher_id664192 | -1.9682 | 0.3033 | -6.4900 | < 0.001 |
| pitcher_id664199 | 1.9844 | 0.3593 | 5.5224 | < 0.001 |
| pitcher_id664208 | -1.6556 | 0.2952 | -5.6082 | < 0.001 |
| pitcher_id664285 | 1.6147 | 0.2693 | 5.9950 | < 0.001 |
| pitcher_id664299 | -2.1161 | 0.2770 | -7.6394 | < 0.001 |
| pitcher_id664353 | -1.2273 | 0.5516 | -2.2250 | 0.02609 |
| pitcher_id664854 | 4.4373 | 0.3354 | 13.2316 | < 0.001 |
| pitcher_id664875 | -0.3092 | 0.3076 | -1.0052 | 0.31483 |
| pitcher_id664991 | 2.2544 | 0.3279 | 6.8750 | < 0.001 |
| pitcher_id665622 | 3.8251 | 0.5751 | 6.6513 | < 0.001 |
| pitcher_id665660 | 2.8844 | 0.3271 | 8.8190 | < 0.001 |
| pitcher_id665795 | 4.5126 | 0.2710 | 16.6498 | < 0.001 |
| pitcher_id666142 | -0.5232 | 0.2639 | -1.9830 | 0.04738 |
| pitcher_id666171 | 1.8450 | 0.4065 | 4.5390 | < 0.001 |
| pitcher_id666200 | 2.6656 | 0.2589 | 10.2969 | < 0.001 |
| pitcher_id666277 | 2.5056 | 0.3553 | 7.0528 | < 0.001 |
| pitcher_id666374 | 1.7655 | 0.3521 | 5.0145 | < 0.001 |
| pitcher_id666661 | 3.7776 | 0.3223 | 11.7216 | < 0.001 |
| pitcher_id666808 | 4.0331 | 0.3827 | 10.5379 | < 0.001 |
| pitcher_id666974 | 2.3363 | 0.3885 | 6.0140 | < 0.001 |
| pitcher_id667297 | 3.2957 | 0.4297 | 7.6699 | < 0.001 |
| pitcher_id667463 | -2.7402 | 0.3934 | -6.9650 | < 0.001 |
| pitcher_id667755 | 4.6919 | 0.2324 | 20.1847 | < 0.001 |
| pitcher_id668390 | -0.9712 | 0.3227 | -3.0099 | 0.00262 |
| pitcher_id668674 | 3.8266 | 0.3997 | 9.5740 | < 0.001 |
| pitcher_id668678 | 1.5757 | 0.2750 | 5.7302 | < 0.001 |
| pitcher_id668873 | 3.2170 | 0.5755 | 5.5904 | < 0.001 |
| pitcher_id668909 | 4.0788 | 0.2646 | 15.4152 | < 0.001 |
| pitcher_id668933 | 8.1592 | 0.3096 | 26.3540 | < 0.001 |
| pitcher_id668941 | 0.3471 | 0.3362 | 1.0325 | 0.30187 |
| pitcher_id668964 | -3.8063 | 0.3045 | -12.5005 | < 0.001 |
| pitcher_id668984 | -0.9082 | 0.2815 | -3.2260 | 0.00126 |
| pitcher_id669022 | 1.6804 | 0.2639 | 6.3676 | < 0.001 |
| pitcher_id669062 | 1.2490 | 0.3677 | 3.3968 | < 0.001 |
| pitcher_id669084 | -0.3190 | 0.3203 | -0.9960 | 0.31928 |
| pitcher_id669093 | -0.5061 | 0.3209 | -1.5772 | 0.11476 |
| pitcher_id669160 | 2.6922 | 0.2922 | 9.2144 | < 0.001 |
| pitcher_id669194 | 2.4921 | 0.2685 | 9.2815 | < 0.001 |
| pitcher_id669199 | 2.7548 | 0.3281 | 8.3959 | < 0.001 |
| pitcher_id669276 | -2.9497 | 0.3821 | -7.7189 | < 0.001 |
| pitcher_id669302 | 0.1461 | 0.2316 | 0.6309 | 0.52813 |
| pitcher_id669330 | 0.4761 | 0.2851 | 1.6699 | 0.09495 |
| pitcher_id669358 | 3.2647 | 0.2749 | 11.8744 | < 0.001 |
| pitcher_id669371 | -0.5719 | 0.3728 | -1.5342 | 0.12500 |
| pitcher_id669372 | 1.8517 | 0.3202 | 5.7833 | < 0.001 |
| pitcher_id669373 | 2.7009 | 0.2765 | 9.7667 | < 0.001 |
| pitcher_id669387 | 0.9720 | 0.2676 | 3.6317 | < 0.001 |
| pitcher_id669432 | -1.5163 | 0.2771 | -5.4722 | < 0.001 |
| pitcher_id669438 | -1.5554 | 0.3998 | -3.8909 | < 0.001 |
| pitcher_id669461 | 0.4864 | 0.2727 | 1.7838 | 0.07448 |
| pitcher_id669467 | 1.4020 | 0.2653 | 5.2846 | < 0.001 |
| pitcher_id669622 | 0.8106 | 0.3364 | 2.4095 | 0.01598 |
| pitcher_id669684 | 1.9814 | 0.3591 | 5.5180 | < 0.001 |
| pitcher_id669711 | -0.5714 | 0.3276 | -1.7442 | 0.08115 |
| pitcher_id669923 | 2.4125 | 0.2643 | 9.1268 | < 0.001 |
| pitcher_id670036 | -2.4055 | 0.3259 | -7.3805 | < 0.001 |
| pitcher_id670059 | 2.5562 | 0.2913 | 8.7747 | < 0.001 |
| pitcher_id670167 | -0.3981 | 0.3387 | -1.1755 | 0.23981 |
| pitcher_id670245 | 0.7225 | 0.2736 | 2.6413 | 0.00827 |
| pitcher_id670280 | 1.9831 | 0.3363 | 5.8975 | < 0.001 |
| pitcher_id670329 | 2.2442 | 0.3721 | 6.0315 | < 0.001 |
| pitcher_id670912 | -1.5133 | 0.2786 | -5.4329 | < 0.001 |
| pitcher_id670970 | 4.6745 | 0.4065 | 11.5007 | < 0.001 |
| pitcher_id670990 | 2.5334 | 0.2829 | 8.9550 | < 0.001 |
| pitcher_id671096 | -0.7787 | 0.2688 | -2.8965 | 0.00378 |
| pitcher_id671212 | 3.4594 | 0.2762 | 12.5268 | < 0.001 |
| pitcher_id671737 | 3.1759 | 0.2631 | 12.0705 | < 0.001 |
| pitcher_id671922 | 2.4463 | 0.2823 | 8.6659 | < 0.001 |
| pitcher_id672282 | -0.6391 | 0.2601 | -2.4569 | 0.01402 |
| pitcher_id672335 | 3.5832 | 0.4080 | 8.7827 | < 0.001 |
| pitcher_id672582 | 2.3263 | 0.3311 | 7.0258 | < 0.001 |
| pitcher_id672782 | 0.4412 | 0.2968 | 1.4868 | 0.13707 |
| pitcher_id673540 | 1.5515 | 0.2681 | 5.7867 | < 0.001 |
| pitcher_id673929 | 1.2836 | 0.3413 | 3.7613 | < 0.001 |
| pitcher_id674370 | 0.9037 | 0.4703 | 1.9216 | 0.05467 |
| pitcher_id675848 | 1.9217 | 0.2939 | 6.5381 | < 0.001 |
| pitcher_id675989 | 1.4100 | 0.3094 | 4.5565 | < 0.001 |
| pitcher_id676083 | 1.8578 | 0.2720 | 6.8296 | < 0.001 |
| pitcher_id676106 | -1.6719 | 0.2595 | -6.4431 | < 0.001 |
| pitcher_id676130 | -0.0863 | 0.3481 | -0.2479 | 0.80421 |
| pitcher_id676254 | -0.1405 | 0.3124 | -0.4497 | 0.65297 |
| pitcher_id676263 | 0.4121 | 0.3296 | 1.2503 | 0.21122 |
| pitcher_id676282 | -1.7789 | 0.2633 | -6.7574 | < 0.001 |
| pitcher_id676395 | 0.5452 | 0.3158 | 1.7266 | 0.08425 |
| pitcher_id676428 | -0.5347 | 0.3392 | -1.5763 | 0.11498 |
| pitcher_id676440 | -1.8237 | 0.2377 | -7.6714 | < 0.001 |
| pitcher_id676477 | -0.4362 | 0.3998 | -1.0909 | 0.27531 |
| pitcher_id676508 | 1.6317 | 0.3998 | 4.0810 | < 0.001 |
| pitcher_id676534 | 3.2599 | 0.3735 | 8.7278 | < 0.001 |
| pitcher_id676571 | -4.1335 | 0.3167 | -13.0509 | < 0.001 |
| pitcher_id676617 | 4.2876 | 0.3421 | 12.5328 | < 0.001 |
| pitcher_id676684 | 1.6657 | 0.3382 | 4.9260 | < 0.001 |
| pitcher_id676755 | -0.0418 | 0.2881 | -0.1452 | 0.88458 |
| pitcher_id676760 | -2.7987 | 0.2792 | -10.0253 | < 0.001 |
| pitcher_id676775 | 2.8043 | 0.3332 | 8.4174 | < 0.001 |
| pitcher_id676879 | 2.8643 | 0.2838 | 10.0931 | < 0.001 |
| pitcher_id676917 | 3.1084 | 0.2769 | 11.2246 | < 0.001 |
| pitcher_id676962 | 3.5040 | 0.2600 | 13.4749 | < 0.001 |
| pitcher_id676974 | 3.1141 | 0.2704 | 11.5147 | < 0.001 |
| pitcher_id676979 | 2.1684 | 0.2718 | 7.9773 | < 0.001 |
| pitcher_id677053 | 0.5293 | 0.3942 | 1.3428 | 0.17936 |
| pitcher_id677865 | -4.7645 | 0.3391 | -14.0523 | < 0.001 |
| pitcher_id677944 | -2.6351 | 0.2619 | -10.0614 | < 0.001 |
| pitcher_id677952 | 3.8647 | 0.2660 | 14.5293 | < 0.001 |
| pitcher_id677955 | 2.1415 | 0.3326 | 6.4386 | < 0.001 |
| pitcher_id677960 | 1.6227 | 0.2741 | 5.9204 | < 0.001 |
| pitcher_id677961 | 2.3032 | 0.3302 | 6.9751 | < 0.001 |
| pitcher_id678394 | 0.9092 | 0.2632 | 3.4546 | < 0.001 |
| pitcher_id678606 | 2.7966 | 0.3885 | 7.1978 | < 0.001 |
| pitcher_id678906 | 2.0248 | 0.3357 | 6.0311 | < 0.001 |
| pitcher_id679358 | -3.7597 | 0.4235 | -8.8768 | < 0.001 |
| pitcher_id679775 | -3.6194 | 0.3316 | -10.9152 | < 0.001 |
| pitcher_id680573 | -0.1338 | 0.2695 | -0.4964 | 0.61960 |
| pitcher_id680694 | 0.7330 | 0.2688 | 2.7271 | 0.00640 |
| pitcher_id680732 | -0.2100 | 0.2633 | -0.7974 | 0.42523 |
| pitcher_id680736 | 0.4803 | 0.2928 | 1.6401 | 0.10101 |
| pitcher_id680742 | 2.9546 | 0.3513 | 8.4104 | < 0.001 |
| pitcher_id680755 | 2.3222 | 0.3118 | 7.4474 | < 0.001 |
| pitcher_id680767 | 5.8263 | 0.5517 | 10.5608 | < 0.001 |
| pitcher_id680802 | 1.6980 | 0.3010 | 5.6409 | < 0.001 |
| pitcher_id681190 | 1.5706 | 0.2637 | 5.9552 | < 0.001 |
| pitcher_id681217 | 2.9106 | 0.3367 | 8.6435 | < 0.001 |
| pitcher_id681343 | 2.9327 | 0.3023 | 9.7003 | < 0.001 |
| pitcher_id681347 | 2.4068 | 0.2621 | 9.1812 | < 0.001 |
| pitcher_id681402 | 2.4955 | 0.6029 | 4.1395 | < 0.001 |
| pitcher_id681517 | 2.0613 | 0.2720 | 7.5785 | < 0.001 |
| pitcher_id681867 | -2.2456 | 0.2928 | -7.6700 | < 0.001 |
| pitcher_id681870 | -0.4402 | 0.2994 | -1.4704 | 0.14146 |
| pitcher_id681892 | -0.3207 | 0.3000 | -1.0690 | 0.28508 |
| pitcher_id681911 | -2.6472 | 0.3272 | -8.0915 | < 0.001 |
| pitcher_id681982 | -2.1731 | 0.2982 | -7.2885 | < 0.001 |
| pitcher_id682052 | -4.6358 | 0.2633 | -17.6041 | < 0.001 |
| pitcher_id682120 | -0.0724 | 0.4382 | -0.1653 | 0.86869 |
| pitcher_id682227 | -1.2181 | 0.2613 | -4.6626 | < 0.001 |
| pitcher_id682254 | 5.0591 | 0.2903 | 17.4261 | < 0.001 |
| pitcher_id682274 | 0.8152 | 0.3165 | 2.5759 | 0.01000 |
| pitcher_id682610 | 1.0643 | 0.2779 | 3.8304 | < 0.001 |
| pitcher_id682842 | 1.2426 | 0.3450 | 3.6017 | < 0.001 |
| pitcher_id682995 | -0.3729 | 0.2799 | -1.3322 | 0.18282 |
| pitcher_id683004 | 3.3412 | 0.2621 | 12.7455 | < 0.001 |
| pitcher_id683175 | 3.9506 | 0.2961 | 13.3438 | < 0.001 |
| pitcher_id683232 | 1.2360 | 0.6356 | 1.9445 | 0.05185 |
| pitcher_id683618 | 5.3830 | 0.5132 | 10.4893 | < 0.001 |
| pitcher_id683742 | 0.5751 | 0.3476 | 1.6546 | 0.09802 |
| pitcher_id684007 | -1.6736 | 0.2707 | -6.1832 | < 0.001 |
| pitcher_id685005 | 2.5007 | 0.3447 | 7.2537 | < 0.001 |
| pitcher_id686218 | -0.0812 | 0.2690 | -0.3021 | 0.76261 |
| pitcher_id686580 | 2.9272 | 0.3780 | 7.7446 | < 0.001 |
| pitcher_id686610 | 0.8600 | 0.3011 | 2.8566 | 0.00429 |
| pitcher_id686613 | 2.5762 | 0.2316 | 11.1245 | < 0.001 |
| pitcher_id686799 | 2.4893 | 0.2613 | 9.5259 | < 0.001 |
| pitcher_id686973 | 4.7341 | 0.2957 | 16.0090 | < 0.001 |
| pitcher_id686993 | -1.4316 | 0.3033 | -4.7203 | < 0.001 |
| pitcher_id687075 | 4.4362 | 0.2675 | 16.5827 | < 0.001 |
| pitcher_id687330 | -2.3407 | 0.4834 | -4.8423 | < 0.001 |
| pitcher_id687396 | -1.1628 | 0.3010 | -3.8625 | < 0.001 |
| pitcher_id687911 | -1.3733 | 0.3069 | -4.4749 | < 0.001 |
| pitcher_id688158 | 2.6851 | 0.2884 | 9.3118 | < 0.001 |
| pitcher_id688297 | 1.3818 | 0.3280 | 4.2135 | < 0.001 |
| pitcher_id688642 | 1.1644 | 0.2763 | 4.2145 | < 0.001 |
| pitcher_id688883 | 1.1414 | 0.2944 | 3.8768 | < 0.001 |
| pitcher_id689254 | 1.9399 | 0.3741 | 5.1859 | < 0.001 |
| pitcher_id689296 | 2.5249 | 0.3253 | 7.7609 | < 0.001 |
| pitcher_id690155 | 1.5921 | 0.3628 | 4.3881 | < 0.001 |
| pitcher_id690925 | 1.9071 | 0.3677 | 5.1864 | < 0.001 |
| pitcher_id690953 | 1.8053 | 0.2702 | 6.6821 | < 0.001 |
| pitcher_id690986 | 1.0664 | 0.2698 | 3.9522 | < 0.001 |
| pitcher_id690990 | 2.0419 | 0.2758 | 7.4035 | < 0.001 |
| pitcher_id690997 | 1.8105 | 0.2685 | 6.7429 | < 0.001 |
| pitcher_id691587 | 3.3098 | 0.2614 | 12.6594 | < 0.001 |
| pitcher_id691725 | 2.4351 | 0.2678 | 9.0938 | < 0.001 |
| pitcher_id691799 | 4.5654 | 0.3093 | 14.7583 | < 0.001 |
| pitcher_id691945 | 3.0534 | 0.2823 | 10.8170 | < 0.001 |
| pitcher_id693433 | 1.6202 | 0.2688 | 6.0268 | < 0.001 |
| pitcher_id693645 | 5.0424 | 0.2833 | 17.7967 | < 0.001 |
| pitcher_id693686 | 2.2206 | 0.2974 | 7.4667 | < 0.001 |
| pitcher_id693821 | -1.7312 | 0.2691 | -6.4335 | < 0.001 |
| pitcher_id693855 | -2.8804 | 0.3724 | -7.7350 | < 0.001 |
| pitcher_id694037 | 4.5729 | 0.4700 | 9.7287 | < 0.001 |
| pitcher_id694297 | 1.1023 | 0.2677 | 4.1175 | < 0.001 |
| pitcher_id694335 | 2.7257 | 0.2805 | 9.7188 | < 0.001 |
| pitcher_id694361 | 4.3095 | 0.3996 | 10.7851 | < 0.001 |
| pitcher_id694477 | -0.2776 | 0.2778 | -0.9993 | 0.31767 |
| pitcher_id694738 | -0.1906 | 0.2744 | -0.6947 | 0.48728 |
| pitcher_id694819 | 5.1585 | 0.2609 | 19.7689 | < 0.001 |
| pitcher_id694851 | 0.9673 | 0.2881 | 3.3577 | < 0.001 |
| pitcher_id694973 | 3.5449 | 0.3413 | 10.3874 | < 0.001 |
| pitcher_id695076 | 0.0587 | 0.2666 | 0.2204 | 0.82560 |
| pitcher_id695243 | 4.6697 | 0.4475 | 10.4363 | < 0.001 |
| pitcher_id695418 | 0.0111 | 0.2586 | 0.0429 | 0.96576 |
| pitcher_id695505 | 4.3235 | 0.2732 | 15.8254 | < 0.001 |
| pitcher_id696147 | 3.6353 | 0.2925 | 12.4302 | < 0.001 |
| pitcher_id696149 | 5.4858 | 0.2704 | 20.2884 | < 0.001 |
| pitcher_id696270 | -1.5362 | 0.2734 | -5.6184 | < 0.001 |
| pitcher_id699134 | 2.8028 | 0.3416 | 8.2056 | < 0.001 |
| pitcher_id699151 | -1.9686 | 0.2868 | -6.8633 | < 0.001 |
| pitcher_id700241 | -2.1766 | 0.2599 | -8.3746 | < 0.001 |
| pitcher_id700669 | 3.1182 | 1.0080 | 3.0934 | 0.00198 |
| pitcher_id700712 | 4.9947 | 0.2910 | 17.1658 | < 0.001 |
| pitcher_id701542 | 1.0652 | 0.2711 | 3.9299 | < 0.001 |
| pitcher_id701552 | -2.2413 | 0.4479 | -5.0038 | < 0.001 |
| pitcher_id800048 | -0.6070 | 0.2748 | -2.2088 | 0.02720 |
| pitcher_id800311 | 1.5874 | 0.2991 | 5.3067 | < 0.001 |
| pitcher_id801403 | 3.8771 | 0.2765 | 14.0197 | < 0.001 |
| pitcher_id805123 | 1.4332 | 0.2886 | 4.9659 | < 0.001 |
| pitcher_id806960 | 1.8757 | 0.2796 | 6.7078 | < 0.001 |
| pitcher_id808963 | 3.5567 | 0.2849 | 12.4826 | < 0.001 |
| pitcher_id808967 | 1.8243 | 0.2610 | 6.9890 | < 0.001 |
| pitcher_id813349 | 0.6421 | 0.2595 | 2.4741 | 0.01337 |
| pitcher_id837227 | 1.6718 | 0.2769 | 6.0376 | < 0.001 |
# Calculate HC3 robust inference for the final model
final_robust <- lmtest::coeftest(
final_model,
vcov. = sandwich::vcovHC(final_model, type = "HC3")
)
# Extract robust results for the predictor of interest
final_pitch_count <- data.frame(
Predictor = "Total pitch count",
Estimate = final_robust["total_pitch_count", "Estimate"],
Std_Error = final_robust["total_pitch_count", "Std. Error"],
P_Value = final_robust["total_pitch_count", "Pr(>|t|)"]
)
# Format results
final_pitch_count <- final_pitch_count |>
mutate(
Estimate = round(Estimate, 5),
Std_Error = round(Std_Error, 5),
P_Value = format.pval(P_Value, digits = 3, eps = 0.001)
)
knitr::kable(
final_pitch_count,
row.names = FALSE,
col.names = c("Predictor", "Estimate",
"HC3 Standard Error", "HC3 p-value"),
caption = "Final Model: HC3 Robust Inference for Pitch Count"
)
| Predictor | Estimate | HC3 Standard Error | HC3 p-value |
|---|---|---|---|
| Total pitch count | -0.01241 | 0.00064 | <0.001 |
As mentioned, the final model includes total pitch count, release spin rate, pitch type, and pitcher ID as predictors of release speed. The coefficient table shows that release speed differs across pitch types and individual pitchers. The HC3 robust results show that the pitch count coefficient is -0.01241 mph per pitch with a robust standard error of 6.4^{-4} and a p-value less than 0.001. This demonstrates a statistically significant negative association between pitch count and release speed when release spin rate, pitch type, and pitcher ID are held fixed. However, this association does not establish that increasing pitch count causes release speed to decrease.
# Final model summary
final_summary <- summary(final_model)
# Model fit statistics
final_r2 <- final_summary$r.squared
final_adj_r2 <- final_summary$adj.r.squared
final_rse <- final_summary$sigma
# Overall F-test
final_f <- final_summary$fstatistic
final_f_p <- pf(
final_f[1],
final_f[2],
final_f[3],
lower.tail = FALSE
)
# Display model fit statistics
fit_table <- data.frame(
Statistic = c("R-squared", "Adjusted R-squared",
"Residual Standard Error (mph)",
"F-statistic", "Numerator df",
"Denominator df", "F-test p-value"),
Value = c(
round(final_r2, 4),
round(final_adj_r2, 4),
round(final_rse, 3),
round(unname(final_f[1]), 2),
unname(final_f[2]),
unname(final_f[3]),
format.pval(final_f_p, digits = 3, eps = 0.001)
)
)
knitr::kable(
fit_table,
row.names = FALSE,
caption = "Final Regression Model Fit Statistics"
)
| Statistic | Value |
|---|---|
| R-squared | 0.92 |
| Adjusted R-squared | 0.9185 |
| Residual Standard Error (mph) | 1.713 |
| F-statistic | 624.45 |
| Numerator df | 406 |
| Denominator df | 22059 |
| F-test p-value | <0.001 |
The final regression model has an R² of 0.92 and an adjusted R² of 0.9185 which explains the 92% of the variation in release speed. The residual standard error is 1.713 mph which is the typical size of the model’s residuals. The overall F-test produced F(406, 2.2059^{4}) = 624.45, with a p-value of <0.001. This serves as evidence that at least one predictor is associated with release speed, but the conventional F-test relies on assumptions that were not fully satisfied.
Total pitch count: The coefficient for total pitch count is -0.01241. This means that for each additional pitch in a game, the predicted release speed is about 0.01241 mph lower, holding release spin rate, pitch type, and pitcher ID fixed.
Release spin rate: The coefficient for release spin rate is 7.7^{-4}. This means that for each additional revolution per minute (rpm), the predicted release speed changes by 7.7^{-4} mph, holding total pitch count, pitch type, and pitcher ID fixed.
Pitch type: The reference category for pitch type is 4-Seam Fastball. Each pitch-type coefficient represents the predicted difference in release speed (mph) compared with a 4-Seam Fastball, holding total pitch count, release spin rate, and pitcher ID fixed. For example, the coefficient for Changeup is -7.2873, meaning that changeups are predicted to be around 7.2873 mph slower than 4-Seam Fastballs when the other predictors are held fixed.
Pitcher ID: Pitcher ID was included as a categorical predictor to account for differences in typical release speed between pitchers. Each pitcher coefficient represents the predicted difference in release speed (mph) compared with the reference pitcher, holding total pitch count, release spin rate, and pitch type fixed. For example, pitcher ID 445276 has a coefficient of 1.575, meaning this pitcher is predicted to throw approximately 1.575 mph faster than the reference pitcher when the other predictors are held fixed.
Intercept: The intercept is 92.6478 mph. This represents the predicted release speed for the reference pitcher throwing a 4-Seam Fastball at a total pitch count of zero and a release spin rate of zero rpm. Because these values are outside the observed data, the intercept does not have a meaningful practical interpretation.
When testing the pitch count hypothesis, its null hypothesis (\(H_0\)) states that the true slope of total pitch count is zero when the other predictors are held fixed and the alternative hypothesis (\(H_A\)) states that the slope is not zero. The final model produced a pitch-count coefficient of -0.01241 mph per pitch, a t-statistic of -19.4 and a p-value of <0.001.Assuming the null hypothesis and that the test’s assumptions are true, the p-value quantifies the probability of observing a t-statistic at least as extreme as the one obtained. The p-value is less than 0.05 which means I can reject the null hypothesis. This gives evidence that there is a negative association between total pitch count and release speed when release spin rate, pitch type, and pitcher ID are held fixed.
# Fit reduced model without total pitch count
reduced_model <- lm(
release_speed ~ release_spin_rate + pitch_name + pitcher_id,
data = model_data
)
# Calculate R-squared values
reduced_r2 <- summary(reduced_model)$r.squared
full_r2 <- summary(final_model)$r.squared
# Calculate additional explanatory value of pitch count
delta_r2 <- full_r2 - reduced_r2
# Compare reduced and final models
added_value_test <- anova(reduced_model, final_model)
# Display R-squared comparison
r2_comparison <- data.frame(
Model = c("Without pitch count", "With pitch count"),
R_Squared = c(reduced_r2, full_r2)
)
knitr::kable(
r2_comparison,
digits = 5,
row.names = FALSE,
col.names = c("Model", "R-squared"),
caption = "Additional Explanatory Value of Pitch Count"
)
| Model | R-squared |
|---|---|
| Without pitch count | 0.91841 |
| With pitch count | 0.91996 |
# Format ANOVA table p-values
anova_table <- as.data.frame(added_value_test)
anova_table$`Pr(>F)` <- format.pval(
anova_table$`Pr(>F)`,
digits = 3,
eps = 0.001
)
# Display formatted ANOVA comparison
knitr::kable(
anova_table,
digits = 4,
caption = "ANOVA Comparison of Reduced and Final Models"
)
| Res.Df | RSS | Df | Sum of Sq | F | Pr(>F) |
|---|---|---|---|---|---|
| 22060 | 65984.25 | NA | NA | NA | NA |
| 22059 | 64733.54 | 1 | 1250.706 | 426.1982 | <0.001 |
I compared the final model with a reduced model that left out pitch count but kept the other predictors to examine the added explanatory value of total pitch count. The reduced model had an R² of 0.91841 where the final model had an R² of 0.91996. This gives a \(\Delta\)R² of 0.00155. The ANOVA comparison produced F(1, 2.2059^{4}) = 426.2 with a p-value of <0.001. This shows that otal pitch count provides a statistically significant improvement in model fit, however, it explains only a small additional proportion of the variation in release speed.
To evaluate the final pitcher adjusted model, I investigated the linearity, independence, equal variance, and normality of this final model. The Residuals vs Fitted plot which investigates linearity showed slight curvature translating to this assumption being mostly satisfied with some nonlinearity remaining. The independence assumption is still a concern since multiple observations come from the same pitchers and games. Adding pitcher ID did not fully address this problem since it still allows for possible correlation between pitches even if they were thrown by different pitchers in different games. The Breusch-Pagan test was used again to examine equal variance and since it was not met HC3 robust standard errors were used to improve inference under unequal variance. Lastly, normality was examined with a Q-Q plot that showed most residuals following the reference line, yet there were noticeable deviations in both tails, holding back the normality assumption from being fully met. Overall, this final model is improved as it has a better fit and accounts for differences between pitchers. However, assumption limitations remain and should be considered when interpreting this model’s results.
This analysis results in identifying a small negative association between total pitch count and release speed among MLB pitches recorded in March 2026. The final pitcher adjusted model estimated that each additional pitch was associated with a decrease of about 0.01241 mph in release speed while holding release spin rate, pitch type, and pitcher ID fixed. The HC3 robust p-value was less than 0.001 which provides evidence against the null hypothesis that the true pitch-count coefficient is zero. This allows me to reject the null hypothesis and conclude that there is a statistically significant negative association between pitch count and release speed. It is important to note, however, that the small increase in R² of 0.00155 indicates that pitch count explains relatively little additional variation in release speed beyond the other predictors.
Total pitch count was statistically significant, but its practical important appears relatively small. The final model estimated a decrease of about 0.621 mph in release speed for a difference of 50 pitches while holding the other predictors fixed. Also, pitch count explained only 0.155 percentage points of additional variation in release speed compared to the other predictors. These findings suggest that pitch count is associated with release speed for these performances taking place in games in the month of March, but other factors, like pitch type and differences between pitchers, account for much more of the variation. This association does not establish that increasing pitch count causes pitchers to throw at slower release speeds.
The main limitation of this analysis is that the dataset only includes MLB pitches recorded in March 2026, the beginning of the season, due to the size of dataset that was considered manageable for this project. This means that the results may not mimic the trends and pitching patterns seen throughout the entire season. Also, multiple observations come from the same pitchers and games, meaning the independence assumption may not be fully satisfied. Pitcher level adjustments were included to try to resolve this but they do not completely address possible correlation between pitches within games. The final model also showed unequal variance and deviations from normality in the residuals. HC3 robust standard errors were used to address unequal variance, however, they do not correct for dependence between observations. Lastly, physical and situational factors such as pitcher fatigue, health condition, and game circumstanced were not included in the dataset and therefore could not have been directly accounted for in the model. Ultimately, the results should be interpreted as associations rather than evidence that increasing pitch count causes a decrease in release speed.
To expand on this study, a future additional analysis could include MLB pitching data from the entire 2026 season to investigate whether the relationship between total pitch count and release speed changed throughout the year. Examining the progression of pitching performances from early ti late in the season could help determine whether the association differs as pitchers adjust to their workloads. Also, joining this data with information that includes how many days of rest the pitcher has between appearances could provide more insight into differences in release speeds as recovery is an integral aspect of pitching performance. A future model could also account for repeated pitches within pitcher game groups to better address the independence concerns identified in this analysis.
I used ChatGPT in the following ways: - Report structure: Creating a skeleton .Rmd file based on the Report 2 brief that outlined the required sections and code chunks.
Section 2: Research question and hypotheses: Refining wording of my research question.
Section 3: Variables of interest: Checking and formatting inline R code for (also used throughout other sections)
Section 4: Data wrangling: Reviewing the data cleaning code
Section 5: Exploratory analysis: Improving the appearance of visualizations, including colors, histogram bin width, labels, and plot formatting, and assisting with interpretations.
Section 6: The first model: Debugging code and formatting regression results.
Section 7: Checking the model: Debugging code, improving visualizations, and adapting code from Labs 6–8 to meet the Report 2 requirements.
Section 8: Remediation and sensitivity analysis: Debugging code to be able to compare the original and pitcher-adjusted models
Section 9: The final model and its interpretation: Making sure I was interpreting regression coefficients and statistics correctly.
Writing and formatting: Reviewing statistical wording, improving clarity, checking inline R expressions, and formatting results throughout the report.
Website Generative AI Disclosure: I used ChatGPT to assist with converting my original Analysis Report 2 into an HTML report, implementing an interactive residual plot using Plotly, and reviewing the website against the extra credit requirements. The original regression models and statistical results were retained.