Monday, April 21, 2014

Which players are making baseball games so slow?

Who are the fastest and slowest players in baseball, in terms of keeping the games moving along?

Four years ago, I wrote two posts that tried to answer that question.  I took Retrosheet game logs from 2000 to 2009, and ran a huge regression, trying to predict game time (hours and minutes) from the 18 players in the starting lineups, the two starting pitchers, the two teams, the years, the number of pitches, the number of stolen base attempts, and anything else I could think of.  

It turned out that players appeared to vary quite a bit -- at the extremes, it appeared that some batters could affect game time by as much as four minutes, and pitchers as much as seven minutes.  For the record, here are the "fastest" and "slowest" players I found, in minutes and seconds they appear to add:

+4:10 Slowest batter:  Denard Span 
-4:11 Fastest batter:  Chris Getz

+7:43 Slowest pitcher: Matt Garza 
-7:13 Fastest pitcher: Tim Wakefield

+5:45 Slowest catcher: Gary Bennett
-4:39 Fastest catcher: Eddie Perez

A full spreadsheet of my 2010 estimates is here.

----

Last week, Carl Bialik, of FiveThirtyEight, revisited the question of slow games, and I learned that FanGraphs now has real data available.  They took timestamped PITCHf/x game logs, and calculated the average time between pitches, for each batter and pitcher.  They call that statistic "pace," and it's available for 2007 to 2014.

So, now, there's some hard data to verify my numbers with.  

I found 290 batters who were in both my study and the Fangraphs data.  Then, I ran a regression to predict FanGraphs' number from mine.

It turned out that for every extra minute per game that I found, FanGraphs found only about a half a second per pitch (.4778).  So if I have a player at +2 minutes per game, you'd expect FanGraphs to have clocked him at +0.95 seconds per pitch.

How many pitches does a starting batter see in a game? Maybe, 16?  So, I have 120 seconds, and FanGraphs has 15 seconds.  That's eight times the difference!  

But, hang on.  The correlation between the two measures is surprisingly high -- +0.40.  That suggests that, generally, I got the *order* of the players right.  Generally, the regression was successful in separating the fast batters from the slow batters.

If you look at the 20 players Fangraphs has as slowest, my study estimated 19 of them as slower than average.   (Wil Nieves was the exception.)  

For their fastest 19 batters (I skipped over the six-way tie for 20th), my study wasn't quite as good.  It found only 11 of 19 as faster than average.  But, of Fangraphs' next 19 fastest, my study was 15-4.  

My feeling is ... it's not great, but it's not bad.  I'm willing to argue that the regression is reasonably capable of differentiating the speedy batters from the time-wasters. 

------

For pitchers, the fit was much better.  

The correlation was +0.73, much higher than I had expected. And the units were decent, too.  For every minute of slowness per game the regression found, it translated to 42 seconds in Fangraphs (based on a guess of 94 pitches per start).  

Why did the pitchers come out so much better than the hitters?  My guess: it's hard to separate the effect of Derek Jeter from the other eight batters, because they play together so much of the time.  In contrast, for every starting pitcher, there are at least 120 games without him where the rest of the lineup is almost the same.  That makes the differences much more obvious for the regression to figure out.

(BTW, Derek Jeter was the second "slowest" batter in my study, at +3.78 minutes per game.)

------

But, still ... why is the regression so far off for the batters, by a factor of 8?

No doubt, some of it is the effects of random luck.  But I think the most important factor is that time between pitches isn't the only factor affecting the length of a game.  

In his article, Carl Bialik noted that from 2008 to 2014, Yankees games took 12.8 minutes longer, on average, than Blue Jays games.  But, after adjusting for the pace of the hitters and pitchers, there were still 6.5 minutes unexplained.  

For the Red Sox, it was +11.8 minutes including pace, and +3.0 minutes without.

That's just a two-team sample, but "pace" appears to be only about a half to two-thirds of the reason games take so long.

What's the rest?  

There are lots of possibilities. Time between innings?  16 half-inning breaks, an extra 5 seconds each, adds up to 80 seconds.  Seventh-inning stretches, I bet those take longer in some parks than others.  The time it takes to announce a batter ... are some parks faster than others, and does the batter wait for it?  Does it take five extra seconds for crowd cheering when Derek Jeter bats?  What about defense ... how long it takes to get the ball back to the pitcher after an out?  Do some outfielders take their time throwing the ball back? 

To check for the park-related factors, I re-ran my regression, but, this time, I used an extra dummy variable for home/road. And, indeed, some significant differences showed up.  Even after controlling for everything else, including the players, games take an extra 1.9 minutes at Yankee Stadium, and an extra 1.4 minutes at Fenway Park.

And ... it looks like there might possibly be a pattern: larger market teams appear to be hosting slower games than small-market teams. Here are the teams with the largest unexplained slowness:

+1.91 Yankees
+1.88 Nationals
+1.71 Braves
+1.45 Red Sox
+1.40 Dodgers

And the most unexplained quickness:

-2.94 Blue Jays
-2.45 Giants
-2.25 A's
-1.83 Tigers
-1.17 Cubs

Maybe it's not a perfect pattern, but it's still suggestive.

-----

So, that's some support for the idea that there is some kind of park-related effect.  It doesn't explain why the batter numbers are so extreme, since this after controlling for players.  But, it could still be part team and part player, if (say) the fans cheer an extra 10 seconds for any Yankee batter, but an extra 30 seconds for Derek Jeter.  

Another thing that might be happening: there are many players who miss only a few games.  I checked Derek Jeter in 2010.  He started all but seven games, and every one of those seven was on the road.  Could the regression be conflating Jeter games with home games?  (It doesn't really show up as a huge confidence interval in the regression, though.)

Or, maybe everyone works faster in meaningless end-of-season games, and those are the ones where Derek Jeter is more likely to be sat out.  

You can probably think of other possibilities, some being a real effect, and some a statistical artifact.  Or, I might have made a mistake somewhere.  

But, I suspect there's something real going on, something other than what's measured by "pace." And, the regression seems to be assigning a lot of it to individual batters -- with some to the team in general, and some to the home park.

I'm not sure what it is, though. 





Labels: , , ,

Thursday, May 13, 2010

Why are Yankees/Red Sox games so slow? Part II

This is part II -- part I is here.

----------

After posting the results of my regression on how players influence the length of baseball games, some commenters here and at "The Book" blog suggested I add more variables to the mix, to see if that would affect the results.

So I added a few things. I added pickoff throws (even though those weren't available for the first couple of years of the study). I added whether the game was on the weekend. Finally, I split pitches into whether the bases were empty or not (Mike Fast noticed that pitches come a lot slower with runners on).

The "weekend" variable was not significant. Including pickoff throws helped a fair bit. But it was splitting the pitches that made the biggest improvement. It turns out that with the bases empty, a pitch takes about 19 seconds. With runners on, it takes 27 seconds. That was a big difference.

The r-squared of the regression went only from .93 to .94, but I think some of the coefficients became more accurate. The estimate for the effect of adding an extra half-inning went from less than zero (which was obviously wrong) to two minutes (which is probably right). My explanation for why this happened is here.

Still, there wasn't much difference in the overall results. The players who came out as fast last time still came out as fast now, and the slow players are roughly the same too. The rankings changed a little bit, though. Here's a new Excel file with the results (two worksheets), for those who are interested.

------

Over at "The Book" blog, Mike Fast raised some legitimate questions about whether the results are correct. He wrote,


"I believe these regressions are giving results that are incorrect ... [by actual clock times, in a certain subset of games], Jeter uses a little more than one extra minute per game as compared to Jose Lopez, rather than 6 extra minutes that the regression tells us. Now that’s just comparing between-pitch-time, but I would expect that to be the bulk of the difference between any two players."


So there are three possibilities:

1. Mike's sample of games is not representative;
2. Jeter and Lopez affect game times in other ways than just speed between pitches;
3. The regression has incorrect results.

I think there might be a little bit of all three there, but especially the third. Let me go through them:

1. I ran the regression for different sets of years, and I found that Jeter seemed to be slower in the early years of the decade than in the latter years. Mike's empirical data came from 2008-2009, so that might explain part of it.

2. Here's a New York Times article about the first game of the season, Derek Jeter stepped out of the box for 13.6 seconds between pitches. That's not the total time, just the time he stepped out of the box. Robinson Cano delayed 18.7 seconds.

Now, it's only one game. But in the full study, Jeter still comes out as slower than Cano: +3.48 minutes to +2.05 minutes. Again, the NYT only measured one game, which is perhaps not representative. And perhaps Jeter sees more pitches than Cano. But this might be very slight evidence that something else is going on.

What could it be? It would have to be something not covered by the regression. Maybe it's mound conferences. Does Jeter initiate them or prolong them? (That's not a rhetorical question: I legitimately have no idea.) Maybe it's that Jeter takes a long time to get into the batter's box at the beginning of an at-bat. If he takes an extra 10 seconds, that's 40 seconds a game, which is quite a bit. Again, I don't know. Maybe he takes a long time to get to first base on a walk? Nah, that couldn't be more than a second or two per walk, which wouldn't add up to much over an entire season. Maybe when he's on first and a subsequent batter hits a long foul, he runs all the way to third base and takes a long time to get back? Doesn't sound plausible. But, anyway, those are the kinds of things we'd be looking for.

3. Is it possible that the numbers are wrong? For sure, they're somewhat wrong: a regression only gives estimates, with standard errors. For Jeter, the estimate was 3.48 minutes with a standard error of 0.65 minutes. Since, in general, an estimate is outside two standard errors 95% of the time, that means there's a 5% chance that Jeter's actual effect is less than 2.18 minutes, or more than 4.78 minutes. Splitting the 5% between "too low" and "too high," we might guess that there's a 2.5% chance that Jeter's impact is actually less than 2.18 minutes, even though he came out at 3.48 minutes.

But, actually, it's more than 2.5%. That's because by choosing Jeter, we're falling prey to selective sampling: we're only picking on Jeter because he came out at the top of the list (actually, second from the top, after Denard Span). And players at the extremes are more likely to be inaccurate than players in the middle.

You can see why this is so if you imagine taking all the batting lines from one day, and putting them in order. All the players at the top -- the ones who were player of the game, who went 3-for-5 with a home run -- overachieved their actual talent. And all the players at the bottom -- the ones who were 0-for-5 -- underachieved their actual talent.

When Ryan Howard goes 3-for-4, it would be silly to assume that .750 is a good estimate of his actual ability. When Ken Griffey Jr. goes 0-for-5, it would be equally silly to assume .000 is a good estimate of his actual ability.

The same thing is true here. When Derek Jeter shows up at 3.48, which is the ".750 batting average" of game slowness, we have to keep in mind that it's probably significantly too high. And when Nick Markakis appears at -2.77, the third-fastest batter in the study, it's probably significantly too low.

How much too high or too low? I don't know. But what we *do* know is that we expect 2.5% of our players to be more than 2 standard errors too high. There are 694 batters in the study, so 17 batters fall into that category. Is Derek Jeter among them? We can't say for sure. We *do* know that those 17 players should be concentrated near the top of the list of players, so there's a pretty good chance that Jeter is one of them. Even if he's not, there's a good chance that he's still too high, just less than 2 standard errors too high.

Having said that: you can only figure the extremes are more likely to have been "lucky" if, after you strip out a reasonable amount of "luck", the player would collapse into the middle of the other players. If not, you have less of a reason to believe that luck was a big deal. For instance, as we figured, if you take 2 SE of luck out of Derek Jeter, he goes from 3.48 to 2.18. That moves him from 2nd place to ... 10th place. That's not that big a drop, and it means that although Jeter is still likely to have his slowness overestimated, it's probably not overestimated as much as if he dropped closer to the middle of the pack. If I absolutely had to guess Jeter's actual slowness, based only on the results of the regression, I'd say maybe regress him to the mean by about 1.5 SDs . That's just a gut feeling.

What we *can* conclude is:

-- the order of the players is roughly correct. As a group, the players at the top are indeed much slower than the guys at the bottom.

-- A player at the top is always more likely to be slower than a player below him in the list. Even though Jeter, the second-slowest hitter in the study, is likely too high, so are the third- and fourth and fifth-slowest hitter, so Jeter is still likely to be slower than they are. Not 100% likely, but always more than 50% likely.

-- most of the players near the top and bottom of the list project to being significantly more extreme than they actually are in real life. They are still significantly faster or slower than average -- just not as much so as the raw numbers imply.

-- your limit of plausibility is about 3 standard errors (1 in 100 players, or maybe 10 in the list, would be that far off). So for Tim Wakefield, who is 11.5 standard errors faster than your typical pitcher ... well, maybe, in the worst case, he's only 8.5 SE faster. So he's obviously still really fast. (And, since even that would only move him from fastest to fifth-fastest ... well, 3 SE is probably too much to deduct from him in the first place.)

-- if you do NOT selectively sample your players based on how high they are on the list, you should expect the regression estimates to be about right. So if you average a whole team, or look at lefties vs. righties, or high draft choices vs. low draft choices, or some other criterion that doesn't have to do with how fast or slow a player is ... you should be able to reasonably trust the results.

-----

So, anyway, my guess about Jeter is that, these days, he's maybe 2 minutes slower than normal, not 3.5. Why? Because

-- he's faster now than he used to be
-- empirical data suggests he's not as slow as 3.5 minutes, although that only looked at pitch times
-- he finished near the top of the list of players, which suggests that he needs to be regressed to the mean a fair bit.

-----

One technical point: I was assuming that, for the 694 batters, the estimates are all independent (which is why you'd expect 2.5% of players to be too high). I'm not sure if that's true ... it could be that if you found out for sure that Jeter is only (say) 90 seconds slower than average, and forced that into the regression, a whole lot of other players would change significantly. If anyone has expertise on this point, or any other statistical argument raised here, please chime in.

Labels: , ,

Friday, April 30, 2010

Why are Yankees/Red Sox games so slow?

There's been lots of talk lately about how Yankees and Red Sox games take too long and move too slow.

Part of the "take too long" part is that those games tend to have lots of plate appearances and pitches. But another part is just that Red Sox and Yankee players tend to play slowly -- Derek Jeter appearing to be the worst of many offenders.

I figured that out with a study that's basically a large regression (thanks to WSJ's Carl Bialik for requesting it; Carl wrote about it earlier this week).

Here's what I did. I took every game from 2000 to 2009, and tried to predict game time from a bunch of different factors -- the number of pitches in the game, the number of innings, how many of the last few innings were close, how many steal attempts there were (to try to account for pickoff throws), the attendance, how many relievers were used, how many plate appearances there were, and how many runs were scored.

Those coefficients were mostly as you'd expect -- every extra pitch took about 23.3 seconds extra. Every half-inning that was close (as opposed to when the score was a blowout) added 47 seconds. Every reliever added 2:13 (probably the time to warm up the pitcher, if the change was mid-inning). And so on.

I also adjusted for the season in which the games took place. The results surprised me a bit; I hadn't realize that, all else being equal, games were almost four minutes slower in 2000-2001 than they were in 2009. But 2009 was the slowest game time since 2003. The fastest games of the decade were in 2004, when they were 4:54 faster than 2009, all else being equal.

I checked months, too, and April and September are fastest. Summer games are about two minutes longer than April. Maybe everyone hurries a bit more to get out of the cold?

Then, the fun part: For 1105 different players, I assigned each a dummy variable, which represented whether or not he was in the starting lineup that day (I was using Retrosheet game logs, so starting lineup was all I could get without digging into play-by-play data). I included any player who had at least one season of 250 AB between 2000 and 2009, or, for pitchers, at least one season of 25 games started.

Finally, I calculated one factor separately for every team, after adjusting for the players in the starting lineup. Those weren't that interesting. I think most of what they represent is how fast the *other* players are -- spot starters, relief pitchers, September callups who never got to 250 AB.

However: Boston and the Yankees were still among the slowest: their games were a minute or two longer than the average other team, even after adjusting for individual players. I wonder if that means there's something else going on: maybe the Yankees and Red Sox announcers are really slow, and the batters have to wait longer to get started? More research is required there.

Anyway, after doing all that, I got estimates for the effect of every player separately -- that is, how much longer or shorter games were with him in the lineup, compared to a player in the lineup instead who wasn't one of the 1,104 others in the study. It turns out that the missing players and relievers are faster than the regulars and starters, by about 26 seconds a batter, 11 seconds a catcher, and 19 seconds a pitcher. Because of that, I adjusted every regular by subtracting the average of his group, because it makes more sense to compare him to the other 1,104 regulars instead of the September callups and relievers.

So the final result gives a kind of "with or without you" factor for every player. For instance, take Derek Jeter. He was the second-highest in "delay of game" factor among batters (excluding catchers). All else being equal, the regression tells us that a game with Derek Jeter in the starting lineup was 3 minutes and 30 seconds slower than the exact same game where he wasn't in the lineup. It turns out that Jeter was the second-slowest batter in the study.

3:30 seems like a lot to me. How much is Jeter really involved in the play? Maybe 4 or 5 plate appearances a game, which is 15 or 20 pitches? That works out to between 10 and 15 seconds a pitch.

Does Derek Jeter really take an extra ten seconds between pitches than the average batter? I haven't watched him bat that closely, but maybe you guys can let me know if that's a reasonable estimate. There is some randomness involved in the regression, and, since Jeter was the second highest in the league, you might want to regress his number to the mean a little bit. But still -- his game factor of 3:30 was 3.6 standard deviations from zero, so it's almost certain that he's pretty slow.

I suppose that theoretically, it could also be his defense ... when he catches a pop up, does he do a little 30 second dance before throwing the ball? Doesn't seem likely to me. Baserunning seems like a better candidate ... maybe Jeter draws a lot of throws when he's on first base, but doesn't steal much (steal attempts appear in the regression). I should have had the regression account for pickoff throws, but I didn't think of it until now.

As in any regression, there could be something else going on. It could be that there's something special about the games that Jeter misses that make them a lot faster than otherwise. For instance: when I did my first pass at this, I found that Jeter was slow by almost six minutes, rather than three-and-a-half. Why? Because my first pass didn't control for season. And about half the games Jeter missed in the decade came in 2003, when games were about four minutes shorter than normal. So the games he missed were faster than the games he played for reasons other than his slowness.

So, if you want to take a guess at other reasons Jeter's number might be too high, you need something like that. Something that makes games faster, that would be disproportionately applicable to games that Jeter missed. And that "something" has to be something not controlled for in the study -- something other than year, month, attendance, other players in the lineup, and so on.

I couldn't come up with anything, but that doesn't mean that you won't.

-----------

Anyway, let me show you the top ten fast and slow players, and you can decide for yourself if the results seem reasonable. Here are the slow batters. Minutes are in decimals (4.5 equals four minutes thirty seconds) because I'm too lazy to convert:

+4.31 Denard Span
+3.51 Derek Jeter
+3.28 Miguel Tejada
+2.87 Rickie Weeks
+2.72 Albert Belle
+2.45 Dustin Pedroia
+2.43 Dante Bichette
+2.25 Greg Dobbs
+2.22 David Segui
+2.21 Reggie Abercrombie

And here are the fast batters:

-3.41 Chris Getz
-3.12 Kevin Jordan
-2.97 Nick Markakis
-2.79 Jake Fox
-2.74 Mark Ellis
-2.62 Will Venable
-2.49 Jose Lopez
-2.29 Mark McGwire
-2.23 Warren Morris
-2.19 Chris Davis

I did catchers separately, because you can't know how much of their speed is due to their batting, and how much is due to their catching. If a guy catches 140 pitches a game, and takes an extra half-second to throw each one back to the pitcher, that's an extra minute he's adding to the game. So you'd expect the catchers to have more extreme numbers than the other batters, and they do. Here are the slow catchers:

+6.01 Gary Bennett
+5.63 Benito Santiago
+4.73 Einar Diaz
+4.43 Tom Wilson
+4.12 Ryan Hanigan
+3.76 Doug Mirabelli
+3.05 Javier Valentin
+2.87 Eliezer Alfonzo
+2.44 Kelly Shoppach
+2.40 Mike Piazza

And the fast catchers:

-4.67 Eddie Perez
-4.09 Josh Bard
-3.88 Omir Santos
-3.88 Chris Coste
-3.58 Jeff Clement
-3.35 Ken Huckaby
-3.33 Charles Johnson
-2.97 John Flaherty
-2.97 Tom Lampkin
-2.61 Ben Davis

Finally, starting pitchers. These guys have a huge impact on game time ... I guess they vary a lot in how much time they take to get ready for the next pitch. Slow pitchers:

+7.32 Gil Heredia
+7.14 Steve Trachsel
+6.98 Matt Garza
+5.49 Armando Reynoso
+5.32 Jason Johnson
+5.22 Kevin Appier
+5.04 Chien-Ming Wang
+4.98 Ross Ohlendorf
+4.88 Edinson Volquez
+4.86 Elmer Dessens

And the fast pitchers. It's ironic that the guy who throws the slowest actually pitches the fastest. (Well, maybe not *that* ironic, but certainly more ironic than rain on your wedding day.)

-7.71 Tim Wakefield
-7.36 Kevin Tapani
-6.69 Glendon Rusch
-5.88 Steve Sparks
-5.39 Kirk Rueter
-5.13 James Baldwin
-5.08 Joe Blanton
-5.02 Ben Sheets
-4.99 Mark Buehrle
-4.98 Matt Morris

Tim Lincecum is 16th fastest, by the way, at -4.24.

------------

Now that we know the slow and fast players, we can do teams by adding up all the players. I'll just do a version of the Yankees and Red Sox, to see if those guys really do slow down the game. Here's the starting lineups from the Red Sox/Yankees game of April 4, 2010:

+3.5 Derek Jeter
-0.8 Nick Johnson
-0.7 Mark Teixeira
+0.9 Alex Rodriguez
+1.9 Robinson Cano
+1.3 Jorge Posada
-0.9 Curtis Granderson
+0.0 Nick Swisher
+1.1 Brett Gardner
-0.4 CC Sabathia
-----------------------
+5.9 Yankees total

-0.2 Jacoby Ellsbury
+2.5 Dustin Pedroia
+1.2 Victor Martinez
+0.6 Kevin Youkilis
+0.4 David Ortiz
+0.3 Adrian Beltre
-0.6 J.D. Drew
+0.2 Mike Cameron
+1.2 Marco Scutaro
+3.6 Josh Beckett
----------------------
+9.1 Red Sox total

So, our estimate is that the game took 15 minutes longer than it would have if average teams had been playing, instead of Boston and New York. That seems like a lot to me.

As it turns out, it was a 9-7 slugfest that went 3:46.

----------

On August 18, 2006, the first game of a doubleheader, the Red Sox beat the visiting Yankees 10-4, in 3 hours and 55 minutes. The starting lineups for those two teams featured players who would be expected to be 24.4 minutes slower than average. That was the slowest-playered game in the decade; of the 20 men in the combined starting lineups, 18 of them were slow. Only Jason Giambi and Craig Wilson were faster than average, by a combined 50 seconds.

The game with the fastest players last decade took place on April 16, 2008. Seattle beat Oakland 4-2. The regression predicted that the game should have taken 20.2 minutes less than normal. It was indeed a very fast game, at 2:09, but, of course, that's partly because it didn't turn out to be much of a slugfest.

---------

Keep in mind that these estimates for individual players really aren't all that precise. The standard error of a typical player is between half a minute and a minute. When Kevin Youkilis comes in at +0.6 minutes slower than average, but his standard error is also 0.6, there's a pretty good chance (about 1 in 6) that he could very well be *faster* than average.

You're on more solid ground when you assume that an extreme player (like Jeter or Markakis) is fast or slow, or when you add a bunch of players together.

--------

I've put the data up on my website, in an Excel spreadsheet. It contains two worksheets: one that gives you slowness estimates for all the players, and another that's the full regression results. I'll annotate that one later so it's easier to understand, and I'll come back and update this post.

I might also rerun this for the 1980s ... if only to see just how slow Mike Hargrove actually was.


Labels: ,