Sunday, July 4, 2010

Are pinch runners effective? Part 3 of 3

In this entry I'm going to see whether pinch running is a good tradeoff: increasing the probability of scoring by enough to offset the loss of offense in extra innings. My previous post saw how much pinch running helped the chances of scoring - it was more than I thought. Now we'll complete the second half of the problem.

My original plan was to look only at future innings where the PR (or original hitter if he wasn't pinch run for) came to bat. This would decrease the variance inevitably created by considering opponents' runs or runs in innings when this spot didn't come to bat. Then by finding the probability of this spot returning to the plate in each different situation, I could isolate the negative side of the PR effect, which could then be combined with the estimate of the positive side that I already have. I was hoping this would let me separate the effects of pinch running and the defensive replacement that surely occurs along with it, but these probabilities of returning to bat are going to depend on the opponent's run scoring and this depends a bit on the defense. The main problem though, would be to connect these separate analyses of the good and the bad of pinch running with a sensible variance estimate that allows for the dependence between the two models.

So I scrapped this idea and decided to start by just fitting a multiple logistic regression with win/loss as the binary response, hoping that the noisiness of the data would be offset by the fact that I had the data for games all the way back to 1952. The predictors I considered were:
  • I.PR: an indicator of whether there was a pinch runner,
  • lead: the score difference between the two teams (either -1, 0, or 1),
  • inn: either top 8th, bottom 8th, top 9th, or bottom 9th. I lumped extra innings in with the 9th inning,
  • outs: the number of outs when the runner first got on base (this is categorical because there's no reason outs would be related linearly to the log odds of scoring),
  • I.2nd: an indicator of whether the runner was on 2nd base (the alternative is the reference level, 1st base),
  • player: identity of the original runner (for parsimony I'm lumping all pinch runners together as being fast guys),
  • opp: the opposing team. This doesn't make much difference because unless you're going to control for which pitcher you're facing, the variance in opposition even within the same team is pretty big due to different pitchers across different generations.
I looked at data for the past 20 years (1990-2009). I used sum contrasts for players (so the average player would have a zero estimate for his effect) and treatment contrasts for all the other predictors. The significant interactions were I.PR:lead, inn:lead, outs:lead, and I.2nd:outs. Notice that there is no data for bottom9th:lead1, so this did not have an estimate; however, that did not preclude proper estimation of the remaining inn:lead effects. This time I wanted to include the I.PR:player interaction because this helps measure exactly what I want to know. Before explaining why this is so, it's best to explain the meaning of the main effects.

The main effect of player measures mostly how good his team is, particularly the players hitting immediately after him. A player effect of zero means his team is about average. The main effect of I.PR measures how much pinch running for the average player increases the log odds of winning. Note that this "average" is not the same as the other one: this one refers more to the speed of player himself. It also incorporates how good a hitter he is - because he might return to the plate in extra innings - but as we will see, it's mostly about his speed, just as the player main effect is mostly about his team rather than himself.

But the interaction of I.PR and player provides information about pinch running for this player relative to the average; if it's positive, a PR should be employed for this player at least as often as the average player; if it's negative, the PR should be employed less often than the average. In fact if the sum of the interaction coefficient and the I.PR coefficient is negative, the log odds of winning the game are decreased when the player is pinch run for.

(Aside: the minor selection bias I mentioned in part 2 is exacerbated here. To estimate the player:I.PR interaction, we need all four pairwise combinations of win/loss with PR/no PR for each player, so any player who is lacking one of these combinations is deleted. By far the most likely to be missing are the two involving PR. About 55% of these deletions were loss/PR - a higher percentage of losses than the true PR population contains - so the PR main effect in my analysis has a positive bias. But my goal is to look at player-specific PR effects, and those are based on the sum of the PR main effect with the interaction term, a sum which should be invariant to any bias in the main effect - if the main effect is too high, the interaction estimate will just be lower to balance it out. I wouldn't expect the parameter estimates for the effects not involving PR to be biased.)

I don't want to consider just one player at a time because the variance of the interaction coefficient estimates is too large to make an informed conclusion. But what I can do is average the interaction effects of many players together. Without looking at the data, I picked a list of 25 players who I thought were good hitters, but in general pretty slow runners:
  • Berkman, Lance
  • Bonds, Barry
  • Cabrera, Miguel
  • Dunn, Adam
  • Giambi, Jason
  • Guerrero, Vladimir
  • Gwynn, Tony
  • Helton, Todd
  • Holliday, Matt
  • Howard, Ryan
  • Jones, Chipper
  • Kent, Jeff
  • Lee, Carlos
  • McGriff, Fred
  • McGwire, Mark
  • Ordonez, Magglio
  • Ortiz, David
  • Palmeiro, Rafael
  • Piazza, Mike
  • Ramirez, Manny
  • Rodriguez, Ivan
  • Sheffield, Gary
  • Sosa, Sammy
  • Thomas, Frank
  • Youkilis, Kevin
Most of these guys have been pinch run for tens of times, and not pinch run for over 100 times. If their average interaction coefficient estimate was significantly negative, that would tell me they should be pinch run for at least as often as the average player. (I'm being vague because we don't know yet if the average player should be pinch run for.) But their average I.PR:player coefficient estimate is 0.26 with a standard error of 0.18. I guess I could take an even larger sample of good, slow hitters, but even with the big standard error, I'm convinced that this interaction estimate has a lot more to do with speed than hitting ability - the results from part 2 really did show that having a PR helps a lot. The estimate of the main effect of PR is also positive, but as I mentioned earlier, it's biased, so I won't draw any conclusions about the average players here (I did do a separate analysis without interaction, and hence without a noticeable selection bias, and the PR effect for the average player was still significant).

The table below is based on the average of the 25 aforementioned players. It gives the probabilities of winning in each of the 66 different situations (don't worry, I used a loop in R to make the html code so I didn't have to type it all). The situation column is as follows: lead, inning, base, outs. The p-values are for the 2-sided test between the two probability estimates.

situation P(win) no PR P(win) PR p-value
-1,t8,1,00.3250.3790.217
-1,t8,1,10.2320.2770.226
-1,t8,1,20.1450.1770.236
-1,t8,2,00.3990.4570.210
-1,t8,2,10.2900.3410.221
-1,t8,2,20.1560.1900.235
-1,b8,1,00.4420.5010.206
-1,b8,1,10.3320.3860.217
-1,b8,1,20.2180.2610.228
-1,b8,2,00.5210.5800.200
-1,b8,2,10.4010.4590.210
-1,b8,2,20.2330.2780.227
-1,t9,1,00.2160.2590.227
-1,t9,1,10.1480.1800.234
-1,t9,1,20.0890.1100.240
-1,t9,2,00.2750.3250.222
-1,t9,2,10.1900.2290.230
-1,t9,2,20.0960.1180.240
-1,b9,1,00.2960.3480.219
-1,b9,1,10.2090.2510.228
-1,b9,1,20.1290.1580.236
-1,b9,2,00.3670.4230.213
-1,b9,2,10.2630.3110.223
-1,b9,2,20.1390.1700.236
0,t8,1,00.5510.6620.009
0,t8,1,10.4680.5830.011
0,t8,1,20.4010.5160.013
0,t8,2,00.6280.7290.007
0,t8,2,10.5430.6540.009
0,t8,2,20.4210.5370.013
0,b8,1,00.7230.8060.006
0,b8,1,10.6520.7490.007
0,b8,1,20.5880.6940.008
0,b8,2,00.7820.8510.005
0,b8,2,10.7160.8010.006
0,b8,2,20.6080.7120.008
0,t9,1,00.5650.6740.009
0,t9,1,10.4820.5970.011
0,t9,1,20.4150.5300.013
0,t9,2,00.6410.7400.007
0,t9,2,10.5570.6670.009
0,t9,2,20.4350.5510.012
0,b9,1,00.7390.8190.006
0,b9,1,10.6700.7640.007
0,b9,1,20.6070.7110.008
0,b9,2,00.7960.8610.005
0,b9,2,10.7330.8140.006
0,b9,2,20.6270.7280.007
1,t8,1,00.7960.8790.001
1,t8,1,10.7420.8430.001
1,t8,1,20.7310.8350.001
1,t8,2,00.8430.9090.001
1,t8,2,10.7950.8790.001
1,t8,2,20.7470.8460.001
1,b8,1,00.9170.9540.001
1,b8,1,10.8910.9380.001
1,b8,1,20.8850.9350.001
1,b8,2,00.9390.9660.001
1,b8,2,10.9170.9540.001
1,b8,2,20.8940.9400.001
1,t9,1,00.8770.9300.001
1,t9,1,10.8400.9070.001
1,t9,1,20.8320.9020.001
1,t9,2,00.9070.9480.001
1,t9,2,10.8760.9290.001
1,t9,2,20.8430.9090.001

A couple interesting things I notice:
  • the win probability estimates when trailing by one or when tied are higher with a runner on 1st and no out than with a runner on 2nd and one out. Newsflash: bunting is dumb in general, even when you only need one run.
  • some of the PR effects are shockingly large compared to what I had estimated in part 2 for the change in probability of the run scoring. I can only say that I double checked these estimates, and that the estimates from part 2 hadn't allowed for the slowness of the hitter. The other difference I can think of is that (for convenience) my code counted the runner as having scored even if he'd been erased by a fielder's choice and a subsequent runner scored. If this was more common in non-PR situations, it could have led to an understatement of the true PR effect in part 2.
In conclusion, I am convinced that pinch running in the late innings is an effective strategy. This was a bit surprising to me, but apparently the small chance of extra innings (and the new, poorer hitter being unable to contribute to a run that the good hitter could have) is outweighed by the relatively large improvement in run scoring in the current inning. The effect seems to get even bigger when the hitter was slow, even if he's a great hitter.

I think my next entry will be about late-inning defensive replacements.


The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".

1 comment:

  1. I am shocked. And, to be honest, pretty disappointed. It's always so satisfying when conventional wisdom is wrong. When it turns out to be right, it's just deflating.

    ReplyDelete