Showing posts with label Leverage. Show all posts
Showing posts with label Leverage. Show all posts

05 April 2018

Your Best Reliever Sometimes Should Not Close Games

On April 3, Buck Showalter sat down a tired Mike Wright Jr. at the end of the fifth inning.  His night ended at 82 pitches, which was nine more than his last game in Spring Training.  It felt like an early hook and that maybe he could stretch to a couple batters more to provide some cover for a bullpen that has been used heavily the previous couple days.

At the conclusion of the fifth, Wright had covered 20 batters and was about to enter the heart of the lineup for the third time.  In his former incarnations as a starting pitcher, the third time through was typically rough.  Well, all times through were rough, but it got worse that third time.  In his last season as a starter (2016), opponents would hit him in the low 800 OPS range, but that would jump to over 1000 OPS that third time through.  He walked a lot of batters, struck out few, and was hit hard.  The idea since then has been a transition over to a sinker/slider pitcher would help him get deeper into games by changing looks and keeping the ball on the ground.

That was not happening that night, Wright has trouble placing his sinker with it often hitting the glove a foot or more out of the zone.  This led him to rely more on his four seam fastball and slider/curve offerings.  The expectation was that this pairing got him through the order those first two times and he was bound to suffer that third time out there even though his pitch count left some room for another batter or two.  It was an ideal time for him to go.

Added to this, the Orioles had regained the lead and were up 4-3 going into the bottom of the sixth inning.  So traditionally, the idea would be to send out Wright again and see what happens.  As noted above, we should know better than that.  Slightly less traditionally, the idea would be that the sixth inning falls outside of the seventh-eighth-ninth holy reliever Save time and the proper reliever to send in would be your fourth righty or second lefty non-closer into the breach to stop the opposition.  However, we know better than that now.  We actually have known better for a while.

In 2002, Tom Tango (who is now MLBAM's "data architect") came up with the concept of leverage index.  You see, we have a whole lot of information about baseball over the years.  We know what has happened in certain scenarios and whether a team won or loss beyond that scenario.  By looking at all of those situations, you can develop historical-based probabilities on whether a team wins or not.  By knowing the inning, outs, baserunners and locations, and score differential, you get an average probability of whether a club may win or lose.

By taking that data and looking at how the probability can change, we end up at what is called a Leverage Index.  In general, these conditions are easy to see.  When a club is up seven runs in the ninth, the leverage index would be low because it does not really matter what happens with a single batter.  The differential is too great.  In a tighter game where the difference is a run, you can see how much more important that event is.

I won't go deeply into how it is all calculated, but I will provide a link to Leverage Index in certain scenarios and note the following:
Very High Leverage ... greater than 3.0
High Leverage ... 1.5 to 3.0
Medium Leverage ... 0.8 to 1.5
Low Leverage ... less than 0.8
The Orioles were facing a 1.6 Leverage Index in the bottom of the sixth inning, which would indicate that the club has entered a period where it is important to fight for the win as a single plate appearance could result in a rather poor outcome.  A modern bullpen when called upon would see this as an important moment to put in a rather solid reliever.  It is a role that Buck Showalter has often assigned to Mychal Givens.

On that night, it did not work out.  Givens was taken deep and the Orioles found themselves in a hole.  Buck, having a short bullpen, then tabbed Pedro Araujo in what would be considered a low leverage position (0.6).  Things quickly went south and the Orioles hung on with one run down and the bases loaded, two outs, in the bottom of the seventh.

At this point, there is a decision to be made.  The bullpen has one rested reliever left, Nestor Cortes, Jr.  The Leverage Index at this point is 2.4, which means the outcome of this event will likely have considerable impact on the game moving forward.  Do you go with the rested arm or do you send Darren O'Day out there for the second night in a row?  More so, do you have the foresight of this predicament to get O'Day up in the bullpen when Araujo immediately looks bad as he pitches to his first batter?  Do you get O'Day up while knowing that maybe Araujo gets lucky and settles down?  Do you try to sneak into the eighth or ninth inning where maybe the Leverage Index is higher for you to utilize O'Day?

It is a tough question to answer.  Yes, putting Givens in seems pretty easy and straightforward.  Putting in Araujo also seems like a no-brainer.  From there it got messy.

But let us go back to general bullpen usage.  Below I took a few excerpts out of the Leverage Index values link to earlier in the article.  What we see are generally preferrable times to bring in a very good reliever (italics) and your best reliever (bold) based on being the visitor and starting off the bottom of the inning.
Visitor
Bases Empty No Outs
Bottom of Up 2 Up 1 Tie Down 1 Down 2
1st 0.9 0.9 0.9 0.8 0.6
2nd 1 1 0.9 0.8 0.6
3rd 1 1.1 1 0.8 0.6
4th 1.1 1.2 1.1 0.9 0.6
5th 1.3 1.3 1.2 0.9 0.6
6th 1.4 1.6 1.3 0.9 0.6
7th 1.6 1.9 1.5 0.8 0.4
8th 1.8 2.5 1.8 0.6 0.3
9th 2 3.6 2.3
With this initial setup, you can see how being up a run can make situations more important than they might seem and suggest a different usage.  Strong middle relievers should be considered in the sixth inning, like Givens.  Likewise, closers should be considered for entry into a close game in the ninth, which is something that Buck Showalter will live with on his non-use of Zach Britton in the Orioles only 2016 playoff game.

It is important to remember that these are initial conditions.  As baserunners appear and out accumulate, these numbers can go up or down.  For instance, the bottom of the third with bases loaded and down a run or two is considered a very high leverage scenario (3.1).  Ideally, you would put a closer in that situation, but the way bullpens are constructed it would be difficult to justify killing the bullpen for a game that is still pretty young.  So the number is not all, but it does provide a decent understanding of important scenarios and how maybe it is important to use high end relievers early or use your best pitcher in non-save scenarios.

13 April 2016

Why Chris Davis Is Not A Rally-Killer

Chris Davis 
Photo by Keith Allison

During last week’s Camden Highball podcast, I made the following statement (paraphrased):
I love you, Chris Davis. But I don’t want you batting in the bottom of the 9th when the team is down by two and there are two runners on base. One-third of the time you’re going to strike out (not advance the runner). These little moments are going to add up during the year.
Prior to recording the podcast I’d thought a lot about the relationship between swinging strike rate and WPA. My gut told me a high-strikeout player like Davis would hurt the team by failing to advance runners in close games.

It seemed true. It felt true. So I said it out loud.

After I listened to the recording, an embarrassed flush spread to my cheeks. Here I am, writing on a sabermetrics web site, and I just used my gut to make a statement. Ugh! We all say foolish things, but not many of us get the chance to say foolish things that strangers on the Internet hear and that live for eternity on Dropbox. I managed to do both at once.

In order to feel less foolish, I had to atone for my sins. Isn't that what this whole sabermetrics thing is about, backing up your beliefs with evidence? So I said "gut, I'm sorry, but I need to fact check you." My gut responded favorably, but that's probably because I'd just eaten a peanut butter creme Oreo.

I examined the relationship between a player's swinging strike rate and the following metrics:
  • Win Probability Added: Measures how much a player added to their team’s chance to win during the course of a season, taking into account both the leverages (inning, score, runners on base, number of outs) in which they batted and how well they did in the plate appearance.
  • Win Probability Added / Leverage Index (WPA/LI): WPA without the leverage component. Unlike WPA, WPA/LI doesn't punish players for appearing in lots of low-leverage situations, nor does it reward players to bat in a lot of high-leverage situations. Players can't control the leverage of the situations in which they bat.
I sampled non-pitchers from 2010-2015 who averaged at least 50 PA per season. This low threshold avoided survivor bias by looking at not only starters, but also role players and those who were injured.

My hypothesis: players with high swinging-strike rates will have a lower WPA than players with low or average swinging strike rates. For context, Davis’ swinging strike rate of 15.48% ranks 20th-highest out of 1,607 players in this sample.

Unfortunately for my gut, the research shows swinging strike rate doesn't correlate well to either WPA or WPA/LI:


Swinging strike rate explains only 0.07% of the variance in WPA, or about 0.002 wins per year. That's a tiny number of wins.

The relationship isn't much stronger when you remove leverage from the equation. The r^2 between swinging strike rate explains only 0.0198 wins of WPA/LI per year. No one will notice this change in a player's WAR.

But r^2 isn't everything. The regression lines slope upward, indicating that as swinging strike rate increases, WPA and WPA/LI also increase. If you followed this model you'd want a player to swing and miss as much as possible, because the model says their WPA would be very high. But no one wants a batter to swing and miss ever, let alone "as much as possible".

That's why the plots look different if you focus on players with medium-to-high swinging strike rates:


The r^2 values remain weak. More importantly, these trend lines slope downward. Now the model says: if you swing and miss a lot, you're starting from a deeper hole than your peers who make more contact. You can still make a positive contribution, but you'll have a harder time doing so. There's the logical sense we are looking for.

A 2nd-degree polynomial fit of the original data shows this effect better:


While Chris Davis' swinging strike rate doesn't explain his WPA or WPA/LI, he should be careful going forward. If he swings and misses much more than he does now, he'll have a harder time contributing to the team.

Fortunately, Davis is a more complete player than just swinging and missing. He possesses tremendous power and mixes in a pretty good walk rate. These factors boost his wOBA, which correlates much better with WPA and WPA/LI:


The r^2 between wOBA and WPA is 0.64 (2.1 wins), and between wOBA and WPA/LI it's a whopping 0.82 (2.3 wins). Overall offensive prowess, as measured by wOBA, explains variance in WPA and WPA/LI much better than than swinging strike rate does.

These relationships hold up well for hitters in Davis' class:



In both cases, the regression models make logical sense. Have a high wOBA and you'll contribute wins to your team. Chris Davis should have a high wOBA. All is right with the universe.

I'm sorry, Chris Davis. I take back what I said. I won't grimace in frustration anymore when I see you bat in a high-leverage spot. I'll remind myself that you're a very talented baseball player who whacks the ball all over the yard, no matter the game situation.

But please don't swing and miss any more than you already do.

21 August 2014

Why Fans Should Be Excited About the 2014 Orioles Bullpen



Last week, Matt Kremnitzer wrote an article about the Orioles bullpen in which he compared the 2012 bullpen to the 2014 bullpen. In this article he included a chart comparing certain statistics of the 2012 and 2014 bullpen and noted the results have been reasonably similar even if the 2012 bullpen has been better. 

I was thinking about this article and how it measured bullpen performance. Bullpen performance is typically measured by taking the results for each reliever and weighting them by the number of innings pitched by that reliever. Two relievers that each threw sixty innings would have the same amount of weight when determining reliever performance. A reliever that throws sixty innings would have twice the weight as one that threw thirty innings.

The problem with this method is that it presumes that all relievers in the bullpen should be treated equally. I'm not sure I would do that because it’s only logical that the performance of a closer is more important than the performance of a long man. The closer usually comes into games in the ninth inning when the game is close while the long man comes into the game considerably earlier when the game isn’t close. If the long man gives up a run then little harm is done but if the closer allows a run then it could lead to a blown save and a loss. Teams would rather have a closer with a 0 ERA than a long man with a 0 ERA and it only makes sense to reflect that in bullpen performance. All relievers aren’t equal and it’s necessary to find some method of ensuring that the most important relievers have the most value in these calculations.

Tom Tango developed a statistic called leverage index (LI). This statistic measures how important a particular situation is in a baseball game depending on the inning, score, outs, and number of players on base. It is possible to use this statistic to determine which relievers have been used in the most important situations and therefore which relievers are most valuable. This allows us to quantify the difference between a closer and a long man. The leverage index most commonly used is one that measures a player’s average LI for all game events known as pLI. In fact, Fangraphs uses this leverage index when determining pitching WAR. Another leverage index is called gmLI. This index measures a pitchers average LI when he enters the game. I personally believe that gmLI is a better metric than pLI and will therefore use gmLI in this article. 

Fangraphs provides the gmLI for each reliever. It is possible to use this statistic to weight bullpen performance by the importance of each pitcher as well as by innings thrown which should result in a more accurate measure of bullpen performance than considering each pitcher to be of equal performance regardless of role. We can use this statistic to see how the Orioles 2014 bullpen compares to other teams bullpens. In addition, I’m only using relievers on an active roster because Orioles’ fans are excited about their current relievers. Orioles’ and other teams’ fans couldn’t care less about guys like Evan Meek.  

This table shows the number of pitchers used by each bullpen, the bullpen’s ERA without using leverage, the bullpen’s ERA using leverage and the difference between the two.


Team
Pitchers
Non-Leveraged ERA
Leverage ERA
Difference
Rays
10
3.12
3.14
-0.02
Mets
11
3.01
3.02
-0.01
Mariners
11
2.49
2.49
0.00
Tigers
18
4.28
4.24
0.04
Marlins
14
3.07
3.02
0.05
Giants
10
2.65
2.60
0.05
Twins
11
3.33
3.25
0.07
Blue Jays
16
3.75
3.66
0.09
Orioles
12
3.07
2.99
0.09
Rockies
15
4.84
4.74
0.10
Athletics
12
2.72
2.62
0.10
Indians
14
2.84
2.72
0.12
Astros
16
4.85
4.73
0.12
Nationals
12
2.81
2.69
0.13
Yankees
16
3.33
3.19
0.13
Braves
14
3.19
3.06
0.14
White Sox
16
4.28
4.14
0.14
Diamondbacks
15
3.75
3.60
0.15
Padres
12
2.39
2.22
0.18
Rangers
23
3.96
3.76
0.20
Cardinals
14
3.68
3.48
0.20
Cubs
15
3.45
3.24
0.21
Brewers
15
3.56
3.31
0.24
Angels
20
2.96
2.70
0.26
Pirates
14
3.40
3.10
0.29
Reds
12
3.96
3.58
0.38
Red Sox
14
3.27
2.82
0.45
Dodgers
13
3.75
3.27
0.48
Phillies
14
3.67
3.19
0.48
Royals
15
3.18
2.38
0.79



Using this method shows the strength of the Royals bullpen. The Royals have only three relievers that have pitched over ten innings with a gmLI over 1.1. All three of those relievers have an ERA under 2. The backend of the Royals bullpen has been dominant and as a result their bullpen ERA using leverage is considerably lower than their bullpen ERA not considering leverage. Likewise, the Phillies have had Papelbon and Adams pitch most of their high leverage innings and both of them have low ERAs. This method makes them look better than they would otherwise.

This does little to explain why people should excited about the Orioles bullpen. While our leveraged ERA is 2.99 this is only good for tenth in the majors. The difference between our leveraged bullpen ERA and non-leveraged bullpen ERA is miniscule and one of the lowest in the majors. In addition, the 2012 bullpen is still better then the 2014 bullpen even when considering leverage.

Fortunately, this next table may answer this question. This table consists of the team name and the average leverage of the bullpen and shows that the Orioles bullpen has the second highest game leverage.


Team
Average Leverage
Rangers
0.997
Blue Jays
1.010
Dodgers
1.019
Padres
1.023
Giants
1.050
Nationals
1.071
Twins
1.077
Astros
1.087
Royals
1.090
Athletics
1.106
Brewers
1.115
Tigers
1.117
Indians
1.120
Rockies
1.121
Cubs
1.156
Mets
1.165
Diamondbacks
1.181
Pirates
1.184
Mariners
1.191
Phillies
1.193
Angels
1.194
Reds
1.224
Marlins
1.229
Rays
1.231
Cardinals
1.252
White Sox
1.270
Red Sox
1.286
Braves
1.312
Orioles
1.340
Yankees
1.387

Orioles fans are excited about their bullpen because it has done well in high pressure situations. As I write this post, O'Day has just struck out Abreu and Garcia with runners at first and second to maintain a one run lead while Britton had a one-two-three ninth to pick up his 27th save despite having little margin for error with just a one run lead. The Orioles have needed their bullpen to come through in the clutch this season and it has met the challenge. As a result, the Orioles are in excellent position to clinch the division and fans are showing their bullpen the love.