Wednesday, January 16, 2019

How did Bobby Abreu Perform in Clutch Situations????

Was Bobby Abreu clutch?

If you did not live in the sports vacuum of Philadelphia you would never understand why I would even bother writing this.  If you do happen to live within the Philadelphia sports world, it makes perfect sense. 
During his tenure in Philadelphia, Bobby Abreu was criticized for a lack of hustle, awful defense (despite winning a Gold Glove), and for not being clutch.  The last campaign being paraded most by the villain of Philadelphia sports media, Howard Eskin.  When Abreu was traded for a package of underperforming and long shot prospects, many looked to Eskin and the Phillysports media for drawing such negative attention to the player.  





I am not the first person to go on this endeavor either, questioning the conventual wisdom of the Philadelphia sports talkers surrounding Abreu.  A quick google searched showed a goodphightblog from 2006 using SQL and a blog from an economics professor. 

Before I get the analysis started, just one disclaimer.  I am not going to infer where clutch stats mean anything, whether they are statistically significant from stats in a normal situation, or if some players have some clutch advantage.  I am merely testing if the Philly sports media talk was right about Bobby Abreu.  Personally, I believe any sort of “clutch” ability is a statistical anomaly or a product of human observation bias (ex. “I watched baseball player X hit a walk off homerun last year so he must be clutch.”

What is clutch??
              To start, what exactly is clutch??????  It depends who you ask.  I will try to entertain multiple definitions.  For example, the Elias Sports Bureau once defined it as “any at-bat in the seventh inning or later, with the batter's team trailing by three runs or less (or four runs if the bases were loaded).  Also, I will look at a clutch situation when a runner is in scoring position.

Dplyring the data and getting the table we need
To answer the clutch questions, the answer will rely on taking large play by play data sets and filtering them to only match the specific criteria.  I will use JimAlbert’s shortcut to make life easier on myself.  I will read in data from 1998-2011, the heart of Abreu’s career, and then filter them based on his player ID. 
So for the actual method to this, its kinda messy.  First, I read in the data.  This involves reading in all the event files from 1998-2011.  Then I end up with a bunch of large dataframes with many ABs we don’t care about.  I then write a single function so that only Abreu is included (note I have not named the columns and I am still using Abreu’s retro ID.  I can fix this later but for now I will deal with it until the data is clean)



abreu <- function(x) {
  filter(x, X11 == "abreb001")
}

#I then made a career log by binding all these datasets.
career <- rbind(abreu1998, abreu1999, abreu2000, abreu2001, abreu2002, abreu2003, abreu2004, abreu2005, abreu2006, abreu2007, abreu2008, abreu2009, abreu2010, abreu2011)


The next challenge is dealing with clutch situations, I need to filter to where the score differential was -3:0 or -4 if the bases were loaded and it was the seventh inning or later.  I will start with the score.  The way the dataframe is set up there is a small problem.  Because it presents the score gives “home score” and “away score”.  You cannot just subtract home and away score because sometime you would be home while other times you would be away.  So I wrote a set of functions based on the Away team ID and the team that Bobby Abreu would have been played on.  


#these functions create a variable that creates the score differential
# of the team abreu was on.
phifunc <- function(x) {
  mutate(x, score=if_else(X2 == "PHI", (X9 - X10), (X10- X9)))
}
nyyfunc <- function(x) {
  mutate(x, score=if_else(X2 == "NYY", (X9 - X10), (X10- X9)))
}
laafunc <- function(x){
  mutate(x, score=if_else(X2 == "LAA", (X9 - X10), (X10- X9)))
}


Now I have a massive dataset with the score column added.  Now let’s make this truly clutch and filter it for the specific conditions.  To reiterate again the clutch situation is down by 3 or less in the 7th inning or later or down by 4 with the bases loaded.  I wanna splice this into three different situations to compare.  The non-clutch situation, the clutch situation, and the clutch and runners-in-scoring-position situation.    

#make a dataframe for not clutch situations
not_clutch <- career %>%
  filter((INN_CT < 7 & BAT_EVENT_FL == TRUE) | ((score < -4 & BAT_EVENT_FL == TRUE) | score > 1 & INN_CT > 6 & BAT_EVENT_FL == TRUE))

#make a dataframe for clutch situations
clutchcareer <- career %>%
  filter((score > -4 & score < 1 & INN_CT > 6 & BAT_EVENT_FL == TRUE) | (score == -4 & !is.na(BASE1_RUN_ID) & !is.na(BASE2_RUN_ID) & !is.na(BASE3_RUN_ID) & INN_CT > 6 & BAT_EVENT_FL == TRUE))
#lets look at clutch plays when men were on base
clutch_risp <- clutchcareer %>%
  filter(!is.na(BASE2_RUN_ID) | !is.na(BASE3_RUN_ID))

#I then had to summarize everything into little tables and join them with the event codes table.

#how did Abreu perform in nonclutch situations
cnt_not_clutch <- not_clutch %>%
  group_by(EVENT_CD) %>%
  count()
#join with the event codes table
cnt_not_clutch <- right_join(event_codes, cnt_not_clutch, by= "EVENT_CD")
cnt_not_clutch <- select(cnt_not_clutch, EVENT_CD, event, n)


The result ends up being this:



I then performed this for all the different situations.  I then had to create another table to compare all the situations, as well as the total.  Using the tribble function, I received this as a result:

Important to note, ‘RISP’ is a subset of ‘Clutch’ and 'Non-Clutch'.  If you were to add the rows, they would then be greater than ‘Total’.


Analysis of the Result

              PAs and ABs
·       As one would expect, most of Abreu’s at bats during this period were non-clutch.  His AB/PA ratio was higher in clutch and risp situations because he was more likely to get walked in those situations.

BA, OBP, SLUG, OPS
·       Interestingly, Abreu’s batting average in clutch situations was actually higher than non-clutch and the total, and interestingly c&r as well.  However, by only .009 pts, I doubt its significant.
·       Looking at OBP, there is a clear trend in clutch and risp situations.  Too put it simply, he was walked a lot.  His OBP is nearly .040 higher in clutch situations than non-clutch and .090 points higher in risp situations than non-clutch.
·       His slugging percentage does not seem to be significantly different in any situation, although slightly lower in risp. 
·       As a result of a high OBP, his OPS is more than .050 points higher in clutch and risp situations than in a non-clutch situation.  It is worth to note, in all situations Bobby Abreu’s OPS is exceptional and on par with a perennial All-Star and Hall of Famer.
BBs
·       By far the most significant factor in the difference between Abreu’s walk and clutch and non-clutch numbers were his increase in walks in clutch situations.  This makes sense, in these situations pitchers were afraid of Bobby Abreu and would father put him on base than give him something to hit.  In non-clutch situations, Abreu was only walked 14.2% of the time.  In clutch situations it went up to 18.3% and in risp situations it was 25.7% with more than half of those walks being intentional.  Although Philly broadcasters may have thought Abreu was a bum in clutch situations, pitchers were certainly not in agreement.

Conclusion
Although Bobby Abreu’s only significant difference in a clutch situation as opposed to a non-clutch situation was his higher rate of walks, this effectively disproves any notion that he was not a clutch hitter.  While I believe the characteristic of being “clutch” likely does not exist, Bobby Abreu hit just as well in clutch situation as non-clutch and that is a pretty good statistic.  I am sure any manager would be fine with a baseball player hitting his total average in any situation when they post numbers like .293/.405/.481.  
Let us all forgive Abreu from any damning accusations from Philly sports media and recognize him for his HOF level career.

Visualizations

Humans are visual creatures. Lets use some ggplots to take a look at how Abreu performed in certain events.



This of course is not readily by humans because field outs occur at such a higher rate than any other event.  The way to solve this is to scale everything down to logarithms.

The log count of each event happening in a non-clutch situation


The log count of each event happening in a clutch situation.


The log count of each event happening in a RISP situation.



Hitting Statistics Across different situations.

No comments:

Post a Comment

How did Bobby Abreu Perform in Clutch Situations????

Was Bobby Abreu clutch? If you did not live in the sports vacuum of Philadelphia you would never understand why I would even bother writin...