<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6005365167182351559</id><updated>2011-07-30T21:00:27.474-04:00</updated><title type='text'>Statistics in Baseball</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-3396818642800297533</id><published>2010-10-19T18:04:00.000-04:00</published><updated>2010-10-19T18:04:23.707-04:00</updated><title type='text'>Big changes!</title><content type='html'>I've got a great new job, starting in January, for a sports betting company in London. This means that the blog entries will probably stop for good because my baseball modelling efforts will go into the job. I may still post once in a while about other sports that my employers don't bet on - like maybe curling!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-3396818642800297533?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/3396818642800297533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/10/big-changes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3396818642800297533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3396818642800297533'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/10/big-changes.html' title='Big changes!'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-6266469872370754646</id><published>2010-10-11T00:01:00.000-04:00</published><updated>2010-10-19T17:46:07.983-04:00</updated><title type='text'>The Home Run Derby effect?</title><content type='html'>Do players who participate in the All-Star Game Home Run Derby screw up their swing, go into a slump, and have a poor second half? I've heard this one from the talking heads before, and it sounds completely false to me. Mark McGwire used to put on a show in batting practice in 1998, and it didn't stop him from hitting 70 home runs.&lt;br /&gt;&lt;br /&gt;The Home Run Derby data were found from the &lt;a href="http://mlb.mlb.com/mlb/history/hr_derby.jsp"&gt;MLB website&lt;/a&gt;, but they weren't in CSV or tab separated format, so I had to do some manipulation. I would have liked to get data on just the few games following the HR Derby to check for slumps, but I settled for the first and second half splits (as determined by the All-Star break) from &lt;a href="http://www.baseball-reference.com/"&gt;Baseball-Reference&lt;/a&gt;. I used the years 2003-2009.&lt;br /&gt;&lt;br /&gt;OPS is a good measure of how effective a hitter is, so I thought it would be best to compare pre- and post-break numbers in terms of OPS (I tried some other things and they led to similar conclusions). Baseball-Reference has a statistic called sOPS+ which measures a player's OPS relative to the league. This controls for season, but since I was looking at first and second half differences, this wasn't too important. I tried it anyway, and it gave almost the exact same results as OPS, so I stuck with OPS.&lt;br /&gt;&lt;br /&gt;Although some players appeared in more than one HR Derby between 2003 and 2009, I assumed that the 56 differences between pre-break OPS and post-break OPS were independent. The differences looked Gaussian, and the average pre-break OPS was .958 and the average post-break OPS was .924, leading to a one-sided p-value of 0.02 in the paired t-test - so it's true, the participants do worse after the break! This idea is furthered by the fact that the mean career pre- and post-break OPS for the players are not significantly different - the decrease seems to happen specifically in the year the players compete in the HR Derby.&lt;br /&gt;&lt;br /&gt;But... how are hitters selected for the HR Derby? By having a very good first half. The hitters participating are ones who have often done unusually well in the first half, and were heading for a drop-off in the second half whether they took part in the derby or not. I can think of two ways to get around this and answer the question of whether the HR Derby &lt;span style="font-style: italic;"&gt;causes&lt;/span&gt; the poorer second half. One is to compare the second half OPS in HR Derby years to the second half OPS in non-HR Derby years, and the other is to see if players who take part in more rounds of the derby have a bigger second half drop-off than players who are eliminated early. (I could also look at the second half drop-off for players in the All-Star Game who weren't in the HR Derby, but it was enough of a pain getting the data for just these players, so I'll try to avoid this approach.)&lt;br /&gt;&lt;br /&gt;The mean career second half OPS of the 56 HR Derby hitters is .894, and in HR Derby years it is .924. This is still a bit unsatisfactory because the HR Derby year is presumably in the prime of their career, so let's try the second way. Consider the number of swings taken in the competition by each player; this is equal to ten times the number of rounds they were in, plus their HR total. Fitting a linear regression of decrease in OPS on number of HR Derby swings, it is apparent that the more swings the player takes, the less the pre- and post-break OPS difference is, i.e. the opposite of the proposed effect. So I'm pretty comfortable writing the poorer second halves off to selection bias.&lt;br /&gt;&lt;br /&gt;Thanks to Bret Hanlon for the idea for this post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-6266469872370754646?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/6266469872370754646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/10/home-run-derby-effect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/6266469872370754646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/6266469872370754646'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/10/home-run-derby-effect.html' title='The Home Run Derby effect?'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-7378939144339535401</id><published>2010-10-10T00:01:00.001-04:00</published><updated>2010-10-23T07:55:16.009-04:00</updated><title type='text'>Starting pitchers in their last inning of the game</title><content type='html'>In my &lt;a href="http://statisticsinsports.blogspot.com/2010/08/when-to-remove-starting-pitcher.html"&gt;previous post&lt;/a&gt; I compared the FIP for starting pitchers in their final inning of the game to the FIP of their team's bullpen, and found that they're being left in the game too long. Today I'm just going to present three tables that I created from the R code used to make that post. I limited the data to the AL in 2009 in the previous post because the bullpen data had to be collated manually, but no such barrier exists this time, so I used both the AL and NL from 2002-2009, limiting the data to pitchers who started at least 50 games over that time.&lt;br /&gt;&lt;br /&gt;This first table looks at pitchers who had the most significant drop-off (all of them had p-values less than 10^(-6)) from their non-final inning numbers to their final inning numbers. 233 of the 241 of the pitchers in the sample had a significant drop-off (p-values less than 0.05), but these were the most severe. I don't know how much this difference really means because the important number for managerial decisions is the late FIP, but many of these guys are good pitchers, and are probably pitching in close games pretty often (unlike somebody who has a really high FIP throughout the game), and their team would benefit if the manager got them out one inning early. Of course knowing when the pitcher is going to start getting knocked around in a given game is impossible - sometimes they might be getting pulled in the 8th, other times in the 7th, etc. However it seems managers should be extra aware about these pitchers, and get them out of the game as soon as they're showing even a slight decrease in velocity.&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="middle"&gt;pitcher&lt;/th&gt;&lt;th align="middle"&gt;early FIP &lt;/th&gt;&lt;th align="middle"&gt;late FIP &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Burnett, A.J.&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.351&lt;/td&gt;&lt;td align="middle"&gt;5.907&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Byrd, Paul&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.182&lt;/td&gt;&lt;td align="middle"&gt;7.196&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Fogg, Josh&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.529&lt;/td&gt;&lt;td align="middle"&gt;8.090&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Garland, John&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.210&lt;/td&gt;&lt;td align="middle"&gt;7.301&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Hernandez, Livan&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.039&lt;/td&gt;&lt;td align="middle"&gt;6.670&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Lackey, John&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.538&lt;/td&gt;&lt;td align="middle"&gt;5.755&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Lohse, Kyle&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.332&lt;/td&gt;&lt;td align="middle"&gt;7.152&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Meche, Gil&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.940&lt;/td&gt;&lt;td align="middle"&gt;6.950&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Ortiz, Russ&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.183&lt;/td&gt;&lt;td align="middle"&gt;7.639&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Pavano, Carl&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.536&lt;/td&gt;&lt;td align="middle"&gt;7.049&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Perez, Oliver&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.176&lt;/td&gt;&lt;td align="middle"&gt;7.506&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Robertson, Nate&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.160&lt;/td&gt;&lt;td align="middle"&gt;7.473&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Santana, Johan&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;2.915&lt;/td&gt;&lt;td align="middle"&gt;5.337&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Silva, Carlos&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.143&lt;/td&gt;&lt;td align="middle"&gt;7.384&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Trachsel, Steve&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.444&lt;/td&gt;&lt;td align="middle"&gt;7.597&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Wakefield, Tim&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.149&lt;/td&gt;&lt;td align="middle"&gt;7.193&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;This table is less interesting, but these were the only eight pitchers who didn't have a significant last inning FIP increase.&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="middle"&gt;pitcher&lt;/th&gt;&lt;th align="middle"&gt;early FIP &lt;/th&gt;&lt;th align="middle"&gt;late FIP &lt;/th&gt;&lt;th align="middle"&gt;p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Williams, David&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;5.131&lt;/td&gt;&lt;td align="middle"&gt;6.063&lt;/td&gt;&lt;td align="middle"&gt;0.187&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Smoltz, John&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.114&lt;/td&gt;&lt;td align="middle"&gt;3.827&lt;/td&gt;&lt;td align="middle"&gt;0.089&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Litsch, Jesse&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.510&lt;/td&gt;&lt;td align="middle"&gt;5.820&lt;/td&gt;&lt;td align="middle"&gt;0.085&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Ryan, Brendan&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.148&lt;/td&gt;&lt;td align="middle"&gt;5.208&lt;/td&gt;&lt;td align="middle"&gt;0.073&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Kuroda, Hiroki&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.400&lt;/td&gt;&lt;td align="middle"&gt;4.561&lt;/td&gt;&lt;td align="middle"&gt;0.071&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Santos, Victor&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.556&lt;/td&gt;&lt;td align="middle"&gt;5.713&lt;/td&gt;&lt;td align="middle"&gt;0.066&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Galarraga, Armando&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.760&lt;/td&gt;&lt;td align="middle"&gt;6.435&lt;/td&gt;&lt;td align="middle"&gt;0.056&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Hammel, Jason&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.976&lt;/td&gt;&lt;td align="middle"&gt;5.410&lt;/td&gt;&lt;td align="middle"&gt;0.050&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;The final table shows the nine pitchers who had a last inning FIP over 9.00. I don't think any of them are still starting games. Rick Reed had a good career and my data set just caught the tail end of it. Most have been tried as relief pitchers, and Darren Oliver has actually become a pretty good one.&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="middle"&gt;player&lt;/th&gt;&lt;th align="middle"&gt;early FIP &lt;/th&gt;&lt;th align="middle"&gt;late FIP &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;James, Chuck&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.240&lt;/td&gt;&lt;td align="middle"&gt;10.827&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;McClung, Seth&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.669&lt;/td&gt;&lt;td align="middle"&gt;10.280&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Oliver, Darren&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;5.053&lt;/td&gt;&lt;td align="middle"&gt;9.661&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Kinney, Matt&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.037&lt;/td&gt;&lt;td align="middle"&gt;9.640&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Waechter, Doug&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.830&lt;/td&gt;&lt;td align="middle"&gt;9.609&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Reed, Rick&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;3.531&lt;/td&gt;&lt;td align="middle"&gt;9.534&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Helling, Rick&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.162&lt;/td&gt;&lt;td align="middle"&gt;9.433&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Owings, Micah&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.872&lt;/td&gt;&lt;td align="middle"&gt;9.243&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="middle"&gt;Mays, Joe&lt;br /&gt;&lt;/td&gt;&lt;td align="middle"&gt;4.595&lt;/td&gt;&lt;td align="middle"&gt;9.032&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-7378939144339535401?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/7378939144339535401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/10/starting-pitchers-in-their-last-inning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/7378939144339535401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/7378939144339535401'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/10/starting-pitchers-in-their-last-inning.html' title='Starting pitchers in their last inning of the game'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-5001447640987572871</id><published>2010-09-01T00:01:00.001-04:00</published><updated>2010-10-23T07:54:06.907-04:00</updated><title type='text'>When to remove the starting pitcher</title><content type='html'>I've always thought managers are slow to go to the bullpen. It seems like they usually wait for the starting pitchers to get into trouble instead of trying to get them out before trouble starts, so I decided to look at the data. My strategy was to compare the last inning of starting pitching to the bullpen's average numbers, and look for significant differences. Getting bullpen numbers for each team isn't easy, and I had to copy/paste each team individually from different pages at &lt;a href="http://www.baseball-reference.com/"&gt;Baseball-Reference&lt;/a&gt; - not wanting to do this for a bunch of different seasons, I just used the 2009 AL numbers. I would speculate that the NL managers are a bit better at pulling the starter because sometimes they are nudged to do so when he comes up to bat. As it turns out, using only 2009 gives plenty of data to see that managers do not pull the starters in a timely manner. In fact, for all 14 teams there is a significant difference between the bullpen and the last inning of their starting pitching.&lt;br /&gt;&lt;br /&gt;Rather than using ERA to compare SPs and RPs, I used &lt;a href="http://en.wikipedia.org/wiki/Defense_independent_pitching_statistics#FIP"&gt;FIP&lt;/a&gt;. I added HBP to BB in this formula. The additive term seems to have changed from 3.20 to 3.10 since I wrote my &lt;a href="http://statisticsinsports.blogspot.com/2009/11/closers-in-non-save-situations.html"&gt;entry on closers&lt;/a&gt;. The advantage of using FIP is twofold: it takes a lot of the luck out of the equation, and actually predicts future ERA better than past ERA does; and inherited runners are not important because we're just considering HR, BB, K, and IP. It's easy to estimate the standard deviation of FIP because it can be written as a function of multinomial probabilities. This is important here because I want to be able to tell if the bullpen's FIP is &lt;span style="font-style: italic;"&gt;significantly&lt;/span&gt; better than the starters' FIP.&lt;br /&gt;&lt;br /&gt;I limited the data to pitchers who started at least 15 games (64 pitchers qualify), figuring by that point the manager should have a good idea of when the pitcher is tiring. Of course I have the advantage of looking at the whole season's data to see where the differences lie - at the beginning of the season, the manager may not know how good his bullpen will be, or how his new pitchers behave in the late innings, etc. But as we'll see from the huge differences - SPs should be removed sooner rather than later!&lt;br /&gt;&lt;br /&gt;The following table shows the team's average SP FIP for their last inning in the second column, the bullpen's FIP in the third column, and the p-value testing whether RP FIP is less than SP FIP in the final column.&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;team&lt;/th&gt; &lt;th align="center"&gt; SP FIP &lt;/th&gt;&lt;th align="center"&gt; RP FIP &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;ANA&lt;/td&gt;&lt;td align="center"&gt;7.278&lt;/td&gt;&lt;td align="center"&gt;4.274&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;BAL&lt;/td&gt;&lt;td align="center"&gt;7.522&lt;/td&gt;&lt;td align="center"&gt;4.557&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;BOS&lt;/td&gt;&lt;td align="center"&gt;6.334&lt;/td&gt;&lt;td align="center"&gt;4.154&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;CHA&lt;/td&gt;&lt;td align="center"&gt;7.209&lt;/td&gt;&lt;td align="center"&gt;3.927&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;CLE&lt;/td&gt;&lt;td align="center"&gt;7.851&lt;/td&gt;&lt;td align="center"&gt;4.686&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;DET&lt;/td&gt;&lt;td align="center"&gt;6.173&lt;/td&gt;&lt;td align="center"&gt;4.666&lt;/td&gt;&lt;td align="center"&gt;0.024&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;KCA&lt;/td&gt;&lt;td align="center"&gt;6.737&lt;/td&gt;&lt;td align="center"&gt;4.586&lt;/td&gt;&lt;td align="center"&gt;0.003&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;MIN&lt;/td&gt;&lt;td align="center"&gt;9.148&lt;/td&gt;&lt;td align="center"&gt;4.322&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;NYA&lt;/td&gt;&lt;td align="center"&gt;5.438&lt;/td&gt;&lt;td align="center"&gt;4.329&lt;/td&gt;&lt;td align="center"&gt;0.044&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;OAK&lt;/td&gt;&lt;td align="center"&gt;6.265&lt;/td&gt;&lt;td align="center"&gt;3.349&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;SEA&lt;/td&gt;&lt;td align="center"&gt;5.673&lt;/td&gt;&lt;td align="center"&gt;4.352&lt;/td&gt;&lt;td align="center"&gt;0.046&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;TBA&lt;/td&gt;&lt;td align="center"&gt;7.011&lt;/td&gt;&lt;td align="center"&gt;4.487&lt;/td&gt;&lt;td align="center"&gt;0.002&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;TEX&lt;/td&gt;&lt;td align="center"&gt;6.402&lt;/td&gt;&lt;td align="center"&gt;4.057&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;TOR&lt;/td&gt;&lt;td align="center"&gt;8.500&lt;/td&gt;&lt;td align="center"&gt;4.211&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Joe Girardi of the Yankees and Don Wakamatsu of the Mariners were the best at removing their starters before they got knocked around. But they still seem to leave them in too long, and actually they might only be the best because both teams had four qualifying SP, all of whom were pretty good - notice they have the best SP numbers of any teams.&lt;br /&gt;&lt;br /&gt;Most teams actually have slightly better RP numbers than SP numbers (even when removing the last inning pitched for all the SP); I guess this is due to being able to throw harder when you throw fewer pitches (I've also heard pitchers are worse the second time through the order - something to investigate in the future). The differences are quite small, but still, if the managers are aware of this, maybe their bullpens are already operating at their innings limit, and can't come in one inning earlier. Or at least all their good RP are operating at their innings limit. I bet some of the difference that shows up in the table is unavoidable, but it sure seems like it would help to have your best AAA pitcher on the roster, instead of another backup hitter, to eat up some of the bad SP innings.&lt;br /&gt;&lt;br /&gt;Next time I'll look at some of the pitchers who have the biggest dropoff in FIP from the first several innings to their final inning and at the ones who are the worst in their final inning. Without needing bullpen average FIPs here, I'll be able to consider several seasons at once.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-5001447640987572871?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/5001447640987572871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/08/when-to-remove-starting-pitcher.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/5001447640987572871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/5001447640987572871'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/08/when-to-remove-starting-pitcher.html' title='When to remove the starting pitcher'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-443457132550784335</id><published>2010-08-01T00:01:00.000-04:00</published><updated>2010-10-19T17:46:08.037-04:00</updated><title type='text'>Do knuckleballers induce slumps?</title><content type='html'>The &lt;a href="http://en.wikipedia.org/wiki/Knuckleball"&gt;knuckleball&lt;/a&gt; is a very unusual pitch. It's thrown significantly slower than every other pitch, and it's been said to mess with a hitter's timing. Hitters seem to do fine against the knuckleball (KB), but I've heard people say that they'll go into a slump after facing the knuckler. Today I thought I'd investigate. Retrosheet's game logs provide the starting pitcher for every game as well as the basic offensive statistics needed to compute on-base percentage (OBP) and slugging percentage (SLG), so getting data was easy.&lt;br /&gt;&lt;br /&gt;I picked out six knuckleballers, either famous or contemporary: Tom Candiotti, Charlie Hough, Steve Sparks, Tim Wakefield, Phil Niekro, and Hoyt Wilhelm. There are some other famous ones, like Joe Niekro, but they didn't throw it for their whole career. I searched through the data to find any games that one of these pitchers started, and then looked at their opponent's OBP and SLG in their &lt;span style="font-style: italic;"&gt;k&lt;/span&gt;th game after the knuckler game (&lt;span style="font-style: italic;"&gt;k&lt;/span&gt;=1,...,3 is all that was needed), and paired that with the team's average OBP and SLG over the whole season, with the intention of studying the paired differences to look for a post-KB game effect. I assumed that the differences were independent - which is at least approximately true.&lt;br /&gt;&lt;br /&gt;To calculate the team's overall strength I had to use the unweighted average OBP and SLG, i.e. I averaged the OBP and SLG from all 162 games rather than adding all the count data together to find the weighted average. This was necessary because the weighted average tends to be higher than the value for a single game.&lt;br /&gt;&lt;br /&gt;The differences between the season average and the &lt;span style="font-style: italic;"&gt;k&lt;/span&gt;th game average have a beautiful bell-shaped curve (for both OBP and SLG), so I used two paired t-tests to see if the differences were significantly greater than zero. Since each difference is actually based on the difference of two averages, both of which might have a slightly different sample size each time (at-bat totals won't be exactly the same every game), I could probably be more efficient by assigning some weights to the differences, but I highly doubt this would make a non-negligible difference in the p-values.&lt;br /&gt;&lt;br /&gt;The third column in the following two tables shows the &lt;span&gt;average for the &lt;span style="font-style: italic;"&gt;k&lt;/span&gt;th&lt;/span&gt; game after the knuckleball game, &lt;span style="font-style: italic;"&gt;k&lt;/span&gt;=1,...,3, with the average season total for the teams in the sample in the second column. The p-values are testing OBP&gt;post-KB OBP and SLG&gt;post-KB SLG respectively, and they are based on a paired t-test.&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;game&lt;/th&gt; &lt;th align="center"&gt; OBP &lt;/th&gt;&lt;th align="center"&gt; post-KB OBP &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1&lt;/td&gt;&lt;td align="center"&gt;0.3206&lt;/td&gt;&lt;td align="center"&gt;0.3195&lt;/td&gt;&lt;td align="center"&gt;0.2566&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;2&lt;/td&gt;&lt;td align="center"&gt;0.3206&lt;/td&gt;&lt;td align="center"&gt;0.3226&lt;/td&gt;&lt;td align="center"&gt;0.8676&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;3&lt;/td&gt;&lt;td align="center"&gt;0.3206&lt;/td&gt;&lt;td align="center"&gt;0.3198&lt;/td&gt;&lt;td align="center"&gt;0.3233&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;game&lt;/th&gt; &lt;th align="center"&gt; SLG&lt;br /&gt;&lt;/th&gt;&lt;th align="center"&gt; post-KB SLG &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1&lt;/td&gt;&lt;td align="center"&gt;0.3934&lt;/td&gt;&lt;td align="center"&gt;0.3869&lt;/td&gt;&lt;td align="center"&gt;0.0174&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;2&lt;/td&gt;&lt;td align="center"&gt;0.3934&lt;/td&gt;&lt;td align="center"&gt;0.3939&lt;/td&gt;&lt;td align="center"&gt;0.5696&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;3&lt;/td&gt;&lt;td align="center"&gt;0.3934&lt;/td&gt;&lt;td align="center"&gt;0.394&lt;/td&gt;&lt;td align="center"&gt;0.5872&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;The knuckleball actually does seem to sap the team's power the day after they face it. Actually most of the next day woes are due to Candiotti's and Wakefield's effects, in particular Wakefield's. His tables are below:&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;game&lt;/th&gt; &lt;th align="center"&gt; OBP &lt;/th&gt;&lt;th align="center"&gt; post-KB OBP &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1&lt;/td&gt;&lt;td align="center"&gt;0.3261&lt;/td&gt;&lt;td align="center"&gt;0.3163&lt;/td&gt;&lt;td align="center"&gt;0.0093&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;2&lt;/td&gt;&lt;td align="center"&gt;0.3261&lt;/td&gt;&lt;td align="center"&gt;0.3256&lt;/td&gt;&lt;td align="center"&gt;0.4509&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;3&lt;/td&gt;&lt;td align="center"&gt;0.3261&lt;/td&gt;&lt;td align="center"&gt;0.3224&lt;/td&gt;&lt;td align="center"&gt;0.1968&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;game&lt;/th&gt; &lt;th align="center"&gt; SLG&lt;br /&gt;&lt;/th&gt;&lt;th align="center"&gt; post-KB SLG &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1&lt;/td&gt;&lt;td align="center"&gt;0.4164&lt;/td&gt;&lt;td align="center"&gt;0.3958&lt;/td&gt;&lt;td align="center"&gt;0.0021&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;2&lt;/td&gt;&lt;td align="center"&gt;0.4164&lt;/td&gt;&lt;td align="center"&gt;0.4168&lt;/td&gt;&lt;td align="center"&gt;0.5205&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;3&lt;/td&gt;&lt;td align="center"&gt;0.4164&lt;/td&gt;&lt;td align="center"&gt;0.4081&lt;/td&gt;&lt;td align="center"&gt;0.1328&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;The overall effects are higher in Wakefield's tables because he's pitched in an offensive era. Hitters really do seem significantly worse than normal the day after they face him - even with the &lt;a href="http://en.wikipedia.org/wiki/Bonferroni_correction"&gt;Bonferroni correction&lt;/a&gt;, the SLG decrease is significant, and the OBP decrease is marginally significant. The unweighted averages of OBP and SLG are .316 and .398 in games Wakefield pitches - actually quite close to the averages of the opposing team on the following day, and both lower than the overall average. Hough, Niekro, and Wilhelm are the superior pitchers, but maybe they didn't throw the knuckler as often as Wakefield does, and hence don't screw up the hitters' next day timing as much? Or maybe it has something to do with contemporary hitters not seeing the knuckler as often as guys in the past may have? Steve Sparks doesn't cause this next day drop-off though.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;Thanks to &lt;a href="http://www.stat.duke.edu/%7Ebs128/"&gt;Ben Shaby&lt;/a&gt; for suggesting this idea. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-443457132550784335?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/443457132550784335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/do-knuckleballers-induce-slumps.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/443457132550784335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/443457132550784335'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/do-knuckleballers-induce-slumps.html' title='Do knuckleballers induce slumps?'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-2376765705116034206</id><published>2010-07-17T12:08:00.001-04:00</published><updated>2010-10-23T07:52:28.204-04:00</updated><title type='text'>Late-inning defensive substitutions</title><content type='html'>Sometimes a manager will remove a poor fielder from the game when his team is winning, believing the defensive improvement is enough to offset the loss of this player's bat. This usually happens in the 9th inning. Here's a short discussion about it: &lt;a href="http://www.insidethebook.com/ee/index.php/site/article/late_inning_fielding_replacement/"&gt;Tango analysis&lt;/a&gt;. My plan was to consider the following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;win: a binary response for logistic regression indicating if the team held on to win the game,&lt;/li&gt;&lt;li&gt;I.def: an indicator of whether the player was substituted for,&lt;/li&gt;&lt;li&gt;dist: the number of spots in the order until this player is due to bat again. Presumably as this increases, the defensive substitution starts to look better and better,&lt;/li&gt;&lt;li&gt;lead: either one or two runs,&lt;/li&gt;&lt;li&gt;inn: inning - limited to top of the 9th and bottom of the 9th. I didn't want to include the 8th and get into dealing with players who weren't replaced in the 8th but then were in the 9th. The replacement usually happens in the 9th inning anyway,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;player: identity of the original player, much like the pinch running analysis, I'm going to lump all the replacements together,&lt;/li&gt;&lt;li&gt;opp: the opposing team,&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;and to limit the analysis to the AL games to avoid the implications of double switches that happen only in the NL.&lt;br /&gt;&lt;br /&gt;To lead into my (short) analysis, I want to continue the selection bias discussion from my &lt;a href="http://statisticsinsports.blogspot.com/2010/07/are-pinch-runners-effective-part-3-of-3.html"&gt;previous post&lt;/a&gt;. In that situation, requiring all four pairwise combinations of win/loss with pinch runner/no pinch runner to exist for each player created a selection bias and led to an overestimate of the PR main effect. I don't think it affected the analysis very much because my interest was in estimating the sum of this main effect and the average player:PR interaction for 25 good hitters, and this sum should not be affected by a biased main effect - the sum for an individual player estimates his personal PR effect and this is not dependent on any bias in the estimate of the average.&lt;br /&gt;&lt;br /&gt;In today's analysis I am looking at defensive replacement by teams in the lead, so they go on to win the game - with or without the replacement - a vast majority of the time. Hence, if I set up the model in the same way as I set up the pinch runner model, with win as the response in a logistic regression, this selection bias will be quite severe. The pairwise combination most often lacking is the loss/replacement, and so many players whose replacement only ever led to victory get deleted from the sample. Proceeding as if everything was normal leads to a hugely negative defensive replacement main effect. Again my interest would be in the sum of this effect and the interaction effects of good hitters, so this is not an insurmountable obstacle.&lt;br /&gt;&lt;br /&gt;The obstacle seems to be the lack of repetitions. I was picturing managers replacing their good hitters in close games all the time, and then when extra innings roll around, being left without their good hitters. But as an exploratory analysis I looked at 25 years of data, limited to players hitting in the top five in the order (lower than that the replacement might well be as good as the guy he's replacing) who've been substituted for in the 9th inning with a one or two run lead at least one time (not imposing any condition on having lost at least one game, and so unable to estimate a player effect), and found that out of the 36844 cases remaining, only 629 were defensive replacements - this amounts to less than 2 substitutions per season per team. And of those 36844, only 1490 times did their spot come to bat again - 1428 times with them in it, and 62 times with their replacement in it. At least you'd think that the team wins more often when the player hasn't been replaced, right? 657 wins/1428 games (46%) batting for himself, and 30 wins/62 games (48%) with the replacement - a statistically insignificant difference. Unsurprisingly, when I fit the full logistic regression model described above (again I limited to the top five in the order and fit without player:I.def interaction), the I.def effect was not anywhere close to significant.&lt;br /&gt;&lt;br /&gt;This brute force approach to try to get around the noisy data is not going to work here. It certainly looks like the defensive replacement effect, if any, is quite minimal anyway. I'm satisfied for now, but to answer the question properly, I'd have to be able to measure exactly how much a defensive replacement helps the defense, and I don't have the data to do that right now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-2376765705116034206?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/2376765705116034206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/late-inning-defensive-substitutions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/2376765705116034206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/2376765705116034206'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/late-inning-defensive-substitutions.html' title='Late-inning defensive substitutions'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-3817729355846987853</id><published>2010-07-04T13:14:00.001-04:00</published><updated>2010-10-23T07:51:10.854-04:00</updated><title type='text'>Are pinch runners effective? Part 3 of 3</title><content type='html'>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 &lt;a href="http://statisticsinsports.blogspot.com/2010/07/are-pinch-runners-effective-part-2-of-3.html"&gt;previous post&lt;/a&gt; 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.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;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:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I.PR: an indicator of whether there was a pinch runner,&lt;/li&gt;&lt;li&gt;lead: the score difference between the two teams (either -1, 0, or 1),&lt;/li&gt;&lt;li&gt;inn: either top 8th, bottom 8th, top 9th, or bottom 9th. I lumped extra innings in with the 9th inning,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;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),&lt;/li&gt;&lt;li&gt;I.2nd: an indicator of whether the runner was on 2nd base (the alternative is the reference level, 1st base),&lt;/li&gt;&lt;li&gt;player: identity of the original runner (for parsimony I'm lumping all pinch runners together as being fast guys),&lt;/li&gt;&lt;li&gt;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.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;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.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;(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.)&lt;br /&gt;&lt;br /&gt;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:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Berkman, Lance&lt;/li&gt;&lt;li&gt;Bonds, Barry&lt;/li&gt;&lt;li&gt;Cabrera, Miguel&lt;/li&gt;&lt;li&gt;Dunn, Adam&lt;/li&gt;&lt;li&gt;Giambi, Jason&lt;/li&gt;&lt;li&gt;Guerrero, Vladimir&lt;/li&gt;&lt;li&gt;Gwynn, Tony&lt;/li&gt;&lt;li&gt;Helton, Todd&lt;/li&gt;&lt;li&gt;Holliday, Matt&lt;/li&gt;&lt;li&gt;Howard, Ryan&lt;/li&gt;&lt;li&gt;Jones, Chipper&lt;/li&gt;&lt;li&gt;Kent, Jeff&lt;/li&gt;&lt;li&gt;Lee, Carlos&lt;/li&gt;&lt;li&gt;McGriff, Fred&lt;/li&gt;&lt;li&gt;McGwire, Mark&lt;/li&gt;&lt;li&gt;Ordonez, Magglio&lt;/li&gt;&lt;li&gt;Ortiz, David&lt;/li&gt;&lt;li&gt;Palmeiro, Rafael&lt;/li&gt;&lt;li&gt;Piazza, Mike&lt;/li&gt;&lt;li&gt;Ramirez, Manny&lt;/li&gt;&lt;li&gt;Rodriguez, Ivan&lt;/li&gt;&lt;li&gt;Sheffield, Gary&lt;/li&gt;&lt;li&gt;Sosa, Sammy&lt;/li&gt;&lt;li&gt;Thomas, Frank&lt;/li&gt;&lt;li&gt;Youkilis, Kevin&lt;/li&gt;&lt;/ul&gt;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).&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;situation&lt;/th&gt; &lt;th align="center"&gt; P(win) no PR &lt;/th&gt;&lt;th align="center"&gt; P(win) PR &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t8,1,0&lt;/td&gt;&lt;td align="center"&gt;0.325&lt;/td&gt;&lt;td align="center"&gt;0.379&lt;/td&gt;&lt;td align="center"&gt;0.217&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t8,1,1&lt;/td&gt;&lt;td align="center"&gt;0.232&lt;/td&gt;&lt;td align="center"&gt;0.277&lt;/td&gt;&lt;td align="center"&gt;0.226&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t8,1,2&lt;/td&gt;&lt;td align="center"&gt;0.145&lt;/td&gt;&lt;td align="center"&gt;0.177&lt;/td&gt;&lt;td align="center"&gt;0.236&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t8,2,0&lt;/td&gt;&lt;td align="center"&gt;0.399&lt;/td&gt;&lt;td align="center"&gt;0.457&lt;/td&gt;&lt;td align="center"&gt;0.210&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t8,2,1&lt;/td&gt;&lt;td align="center"&gt;0.290&lt;/td&gt;&lt;td align="center"&gt;0.341&lt;/td&gt;&lt;td align="center"&gt;0.221&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t8,2,2&lt;/td&gt;&lt;td align="center"&gt;0.156&lt;/td&gt;&lt;td align="center"&gt;0.190&lt;/td&gt;&lt;td align="center"&gt;0.235&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b8,1,0&lt;/td&gt;&lt;td align="center"&gt;0.442&lt;/td&gt;&lt;td align="center"&gt;0.501&lt;/td&gt;&lt;td align="center"&gt;0.206&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b8,1,1&lt;/td&gt;&lt;td align="center"&gt;0.332&lt;/td&gt;&lt;td align="center"&gt;0.386&lt;/td&gt;&lt;td align="center"&gt;0.217&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b8,1,2&lt;/td&gt;&lt;td align="center"&gt;0.218&lt;/td&gt;&lt;td align="center"&gt;0.261&lt;/td&gt;&lt;td align="center"&gt;0.228&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b8,2,0&lt;/td&gt;&lt;td align="center"&gt;0.521&lt;/td&gt;&lt;td align="center"&gt;0.580&lt;/td&gt;&lt;td align="center"&gt;0.200&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b8,2,1&lt;/td&gt;&lt;td align="center"&gt;0.401&lt;/td&gt;&lt;td align="center"&gt;0.459&lt;/td&gt;&lt;td align="center"&gt;0.210&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b8,2,2&lt;/td&gt;&lt;td align="center"&gt;0.233&lt;/td&gt;&lt;td align="center"&gt;0.278&lt;/td&gt;&lt;td align="center"&gt;0.227&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t9,1,0&lt;/td&gt;&lt;td align="center"&gt;0.216&lt;/td&gt;&lt;td align="center"&gt;0.259&lt;/td&gt;&lt;td align="center"&gt;0.227&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t9,1,1&lt;/td&gt;&lt;td align="center"&gt;0.148&lt;/td&gt;&lt;td align="center"&gt;0.180&lt;/td&gt;&lt;td align="center"&gt;0.234&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t9,1,2&lt;/td&gt;&lt;td align="center"&gt;0.089&lt;/td&gt;&lt;td align="center"&gt;0.110&lt;/td&gt;&lt;td align="center"&gt;0.240&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t9,2,0&lt;/td&gt;&lt;td align="center"&gt;0.275&lt;/td&gt;&lt;td align="center"&gt;0.325&lt;/td&gt;&lt;td align="center"&gt;0.222&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t9,2,1&lt;/td&gt;&lt;td align="center"&gt;0.190&lt;/td&gt;&lt;td align="center"&gt;0.229&lt;/td&gt;&lt;td align="center"&gt;0.230&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,t9,2,2&lt;/td&gt;&lt;td align="center"&gt;0.096&lt;/td&gt;&lt;td align="center"&gt;0.118&lt;/td&gt;&lt;td align="center"&gt;0.240&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b9,1,0&lt;/td&gt;&lt;td align="center"&gt;0.296&lt;/td&gt;&lt;td align="center"&gt;0.348&lt;/td&gt;&lt;td align="center"&gt;0.219&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b9,1,1&lt;/td&gt;&lt;td align="center"&gt;0.209&lt;/td&gt;&lt;td align="center"&gt;0.251&lt;/td&gt;&lt;td align="center"&gt;0.228&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b9,1,2&lt;/td&gt;&lt;td align="center"&gt;0.129&lt;/td&gt;&lt;td align="center"&gt;0.158&lt;/td&gt;&lt;td align="center"&gt;0.236&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b9,2,0&lt;/td&gt;&lt;td align="center"&gt;0.367&lt;/td&gt;&lt;td align="center"&gt;0.423&lt;/td&gt;&lt;td align="center"&gt;0.213&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b9,2,1&lt;/td&gt;&lt;td align="center"&gt;0.263&lt;/td&gt;&lt;td align="center"&gt;0.311&lt;/td&gt;&lt;td align="center"&gt;0.223&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-1,b9,2,2&lt;/td&gt;&lt;td align="center"&gt;0.139&lt;/td&gt;&lt;td align="center"&gt;0.170&lt;/td&gt;&lt;td align="center"&gt;0.236&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t8,1,0&lt;/td&gt;&lt;td align="center"&gt;0.551&lt;/td&gt;&lt;td align="center"&gt;0.662&lt;/td&gt;&lt;td align="center"&gt;0.009&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t8,1,1&lt;/td&gt;&lt;td align="center"&gt;0.468&lt;/td&gt;&lt;td align="center"&gt;0.583&lt;/td&gt;&lt;td align="center"&gt;0.011&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t8,1,2&lt;/td&gt;&lt;td align="center"&gt;0.401&lt;/td&gt;&lt;td align="center"&gt;0.516&lt;/td&gt;&lt;td align="center"&gt;0.013&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t8,2,0&lt;/td&gt;&lt;td align="center"&gt;0.628&lt;/td&gt;&lt;td align="center"&gt;0.729&lt;/td&gt;&lt;td align="center"&gt;0.007&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t8,2,1&lt;/td&gt;&lt;td align="center"&gt;0.543&lt;/td&gt;&lt;td align="center"&gt;0.654&lt;/td&gt;&lt;td align="center"&gt;0.009&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t8,2,2&lt;/td&gt;&lt;td align="center"&gt;0.421&lt;/td&gt;&lt;td align="center"&gt;0.537&lt;/td&gt;&lt;td align="center"&gt;0.013&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b8,1,0&lt;/td&gt;&lt;td align="center"&gt;0.723&lt;/td&gt;&lt;td align="center"&gt;0.806&lt;/td&gt;&lt;td align="center"&gt;0.006&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b8,1,1&lt;/td&gt;&lt;td align="center"&gt;0.652&lt;/td&gt;&lt;td align="center"&gt;0.749&lt;/td&gt;&lt;td align="center"&gt;0.007&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b8,1,2&lt;/td&gt;&lt;td align="center"&gt;0.588&lt;/td&gt;&lt;td align="center"&gt;0.694&lt;/td&gt;&lt;td align="center"&gt;0.008&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b8,2,0&lt;/td&gt;&lt;td align="center"&gt;0.782&lt;/td&gt;&lt;td align="center"&gt;0.851&lt;/td&gt;&lt;td align="center"&gt;0.005&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b8,2,1&lt;/td&gt;&lt;td align="center"&gt;0.716&lt;/td&gt;&lt;td align="center"&gt;0.801&lt;/td&gt;&lt;td align="center"&gt;0.006&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b8,2,2&lt;/td&gt;&lt;td align="center"&gt;0.608&lt;/td&gt;&lt;td align="center"&gt;0.712&lt;/td&gt;&lt;td align="center"&gt;0.008&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t9,1,0&lt;/td&gt;&lt;td align="center"&gt;0.565&lt;/td&gt;&lt;td align="center"&gt;0.674&lt;/td&gt;&lt;td align="center"&gt;0.009&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t9,1,1&lt;/td&gt;&lt;td align="center"&gt;0.482&lt;/td&gt;&lt;td align="center"&gt;0.597&lt;/td&gt;&lt;td align="center"&gt;0.011&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t9,1,2&lt;/td&gt;&lt;td align="center"&gt;0.415&lt;/td&gt;&lt;td align="center"&gt;0.530&lt;/td&gt;&lt;td align="center"&gt;0.013&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t9,2,0&lt;/td&gt;&lt;td align="center"&gt;0.641&lt;/td&gt;&lt;td align="center"&gt;0.740&lt;/td&gt;&lt;td align="center"&gt;0.007&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t9,2,1&lt;/td&gt;&lt;td align="center"&gt;0.557&lt;/td&gt;&lt;td align="center"&gt;0.667&lt;/td&gt;&lt;td align="center"&gt;0.009&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,t9,2,2&lt;/td&gt;&lt;td align="center"&gt;0.435&lt;/td&gt;&lt;td align="center"&gt;0.551&lt;/td&gt;&lt;td align="center"&gt;0.012&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b9,1,0&lt;/td&gt;&lt;td align="center"&gt;0.739&lt;/td&gt;&lt;td align="center"&gt;0.819&lt;/td&gt;&lt;td align="center"&gt;0.006&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b9,1,1&lt;/td&gt;&lt;td align="center"&gt;0.670&lt;/td&gt;&lt;td align="center"&gt;0.764&lt;/td&gt;&lt;td align="center"&gt;0.007&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b9,1,2&lt;/td&gt;&lt;td align="center"&gt;0.607&lt;/td&gt;&lt;td align="center"&gt;0.711&lt;/td&gt;&lt;td align="center"&gt;0.008&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b9,2,0&lt;/td&gt;&lt;td align="center"&gt;0.796&lt;/td&gt;&lt;td align="center"&gt;0.861&lt;/td&gt;&lt;td align="center"&gt;0.005&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b9,2,1&lt;/td&gt;&lt;td align="center"&gt;0.733&lt;/td&gt;&lt;td align="center"&gt;0.814&lt;/td&gt;&lt;td align="center"&gt;0.006&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;0,b9,2,2&lt;/td&gt;&lt;td align="center"&gt;0.627&lt;/td&gt;&lt;td align="center"&gt;0.728&lt;/td&gt;&lt;td align="center"&gt;0.007&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t8,1,0&lt;/td&gt;&lt;td align="center"&gt;0.796&lt;/td&gt;&lt;td align="center"&gt;0.879&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t8,1,1&lt;/td&gt;&lt;td align="center"&gt;0.742&lt;/td&gt;&lt;td align="center"&gt;0.843&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t8,1,2&lt;/td&gt;&lt;td align="center"&gt;0.731&lt;/td&gt;&lt;td align="center"&gt;0.835&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t8,2,0&lt;/td&gt;&lt;td align="center"&gt;0.843&lt;/td&gt;&lt;td align="center"&gt;0.909&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t8,2,1&lt;/td&gt;&lt;td align="center"&gt;0.795&lt;/td&gt;&lt;td align="center"&gt;0.879&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t8,2,2&lt;/td&gt;&lt;td align="center"&gt;0.747&lt;/td&gt;&lt;td align="center"&gt;0.846&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,b8,1,0&lt;/td&gt;&lt;td align="center"&gt;0.917&lt;/td&gt;&lt;td align="center"&gt;0.954&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,b8,1,1&lt;/td&gt;&lt;td align="center"&gt;0.891&lt;/td&gt;&lt;td align="center"&gt;0.938&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,b8,1,2&lt;/td&gt;&lt;td align="center"&gt;0.885&lt;/td&gt;&lt;td align="center"&gt;0.935&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,b8,2,0&lt;/td&gt;&lt;td align="center"&gt;0.939&lt;/td&gt;&lt;td align="center"&gt;0.966&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,b8,2,1&lt;/td&gt;&lt;td align="center"&gt;0.917&lt;/td&gt;&lt;td align="center"&gt;0.954&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,b8,2,2&lt;/td&gt;&lt;td align="center"&gt;0.894&lt;/td&gt;&lt;td align="center"&gt;0.940&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t9,1,0&lt;/td&gt;&lt;td align="center"&gt;0.877&lt;/td&gt;&lt;td align="center"&gt;0.930&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t9,1,1&lt;/td&gt;&lt;td align="center"&gt;0.840&lt;/td&gt;&lt;td align="center"&gt;0.907&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t9,1,2&lt;/td&gt;&lt;td align="center"&gt;0.832&lt;/td&gt;&lt;td align="center"&gt;0.902&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t9,2,0&lt;/td&gt;&lt;td align="center"&gt;0.907&lt;/td&gt;&lt;td align="center"&gt;0.948&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t9,2,1&lt;/td&gt;&lt;td align="center"&gt;0.876&lt;/td&gt;&lt;td align="center"&gt;0.929&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;1,t9,2,2&lt;/td&gt;&lt;td align="center"&gt;0.843&lt;/td&gt;&lt;td align="center"&gt;0.909&lt;/td&gt;&lt;td align="center"&gt;0.001&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;A couple interesting things I notice:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;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.&lt;/li&gt;&lt;li&gt;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.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;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.&lt;br /&gt;&lt;br /&gt;I think my next entry will be about late-inning defensive replacements.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-3817729355846987853?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/3817729355846987853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/are-pinch-runners-effective-part-3-of-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3817729355846987853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3817729355846987853'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/are-pinch-runners-effective-part-3-of-3.html' title='Are pinch runners effective? Part 3 of 3'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-3948838158213495893</id><published>2010-07-03T11:08:00.001-04:00</published><updated>2010-10-23T07:50:31.903-04:00</updated><title type='text'>Are pinch runners effective? Part 2 of 3</title><content type='html'>For the introduction (part 1), see my &lt;a href="http://statisticsinsports.blogspot.com/2010/06/are-pinch-runners-effective-part-1-of-3.html"&gt;previous post&lt;/a&gt;. In this entry I'm going to estimate the increase in the probability of scoring provided by a pinch runner (PR). My next post (part 3) will attempt to answer the ultimate question: is this increase in probability enough to justify weakening the offense for future innings.&lt;br /&gt;&lt;br /&gt;After some R coding to count the necessary information, I fit a multiple logistic regression model with:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;I.run: binary response, the indicator of whether the run scored,&lt;/li&gt;&lt;li&gt;I.PR: an indicator of whether there was a pinch runner,&lt;/li&gt;&lt;li&gt;lead: the score difference between the two teams (either -1, 0, or 1). Maybe somewhat surprisingly this makes a difference,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;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),&lt;/li&gt;&lt;li&gt;I.2nd: an indicator of whether the runner was on 2nd base (the alternative is the reference level, 1st base),&lt;/li&gt;&lt;li&gt;player: identity of the original runner (for parsimony I'm lumping all pinch runners together as being fast guys),&lt;/li&gt;&lt;/ul&gt;while limiting the data as described in the introduction.&lt;br /&gt;&lt;br /&gt;I'm making the assumption that there are only three outcomes stemming from possibly pinch running: the run won't score either way, it will score either way, or the PR would score when the original player would've been stranded. I'm ignoring the possible effects - that is, on subsequent runs in this inning that are less likely because of the extra out - of the slow runner being more susceptible to getting thrown out on the bases (by a force play or otherwise). I imagine the frequency of being thrown out when the PR wouldn't have been is low compared to the frequency of times this slow runner just gets held up by the 3rd base coach when the PR wouldn't have been. Regardless, it might get too complicated figuring out how much this extra out affects the distribution of run scoring in the inning. However if I fail to find that pinch running is beneficial (in part 3), I may have to revisit this assumption. I can think of two different ways to weaken it:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;instead of the binary response, the response could be a count of the number of runs scored in the inning subsequent to this runner reaching base. I balked at that for this entry because in an entry last year, I had trouble getting R to do multinomial regression with covariance matrices provided - but that data set was bigger, so it may be worth a shot in my next post,&lt;/li&gt;&lt;li&gt;instead of separating steps 1 and 2, just fit a binary logistic regression with win/loss as the response. This gets at the question directly, but I'm worried that the response will be pretty noisy.&lt;/li&gt;&lt;/ul&gt;I considered the past 15 seasons (1995-2009), where a total of 720 different players satisfied the following two conditions: (i) they were both pinch run for and allowed to run for themselves in the 8th inning or later of a tie or one-run game, and (ii) they scored or had their PR score. The second condition removes about half a percent of the population left after the first condition, and I think it creates a minor selection bias - non-PR situations are being deleted more than PR situations (because there are many more non-PR situations), and the proportion of deletions corresponding to successes is probably not exactly the same as the proportion left in the sample. But without the second condition it would be impossible to estimate a player effect, so I required it anyway.&lt;br /&gt;&lt;br /&gt;There are a number of interactions that could potentially enter the logistic model, but only two interactions were close to significant (for more on the I.PR:player interaction see the end of this post); they are shown below. I used the default treatment contrasts in R for I.PR, lead, outs, and I.2nd, but sum contrasts for the players, so the intercept corresponds to the log odds of scoring for the average player, running for himself, after a lead-off single when trailing by one run. The parameter estimates and their p-values are listed below; the residual deviance is 32836  on 27742  degrees of freedom, making the overdispersion parameter estimate less than 1.09, so I didn't bother allowing for overdispersion. It would not have changed any of the conclusions anyway. I've included David Ortiz's estimate below because he will come up again in a moment.&lt;br /&gt;&lt;table align="center"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="center"&gt; intercept &lt;/td&gt;&lt;td align="center"&gt; -0.430 &lt;/td&gt;&lt;td align="center"&gt; 2e-16 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; I.PR &lt;/td&gt;&lt;td align="center"&gt; 0.086 &lt;/td&gt;&lt;td align="center"&gt; 0.161&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; lead0&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt; 0.104 &lt;/td&gt;&lt;td align="center"&gt; 0.004 **     &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; lead1&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt; 0.216 &lt;/td&gt;&lt;td align="center"&gt; 2.48e-07 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; outs1 &lt;/td&gt;&lt;td align="center"&gt; -0.661 &lt;/td&gt;&lt;td align="center"&gt; 2e-16 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; outs2 &lt;/td&gt;&lt;td align="center"&gt; -1.476 &lt;/td&gt;&lt;td align="center"&gt; 2e-16 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; I.2nd &lt;/td&gt;&lt;td align="center"&gt; 0.774 &lt;/td&gt;&lt;td align="center"&gt; 2e-16 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; outs1:I.2nd &lt;/td&gt;&lt;td align="center"&gt; -0.207 &lt;/td&gt;&lt;td align="center"&gt; 0.011 * &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; outs2:I.2nd &lt;/td&gt;&lt;td align="center"&gt; -0.305 &lt;/td&gt;&lt;td align="center"&gt; 0.002 ** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; I.PR:lead0&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt; 0.161 &lt;/td&gt;&lt;td align="center"&gt; 0.046 * &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; I.PR:lead1&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt; 0.146&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt;  0.209 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; Ortiz &lt;/td&gt;&lt;td align="center"&gt; 0.674&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt; 0.010 * &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;The coefficient estimates of interest are the ones concerning I.PR. The main effect for I.PR says that exp(0.086) is the multiplicative change in the odds of scoring created by pinch running when lead=-1, and similarly adding the main effect to each interaction term allows estimation of the multiplicative change in the odds when lead=0 or 1. I expect the more meaningful number in part 3 will be the additive change in probability - this will be different depending on the situation.  The following table compares the probability of scoring a run with no PR to the probability of scoring a run with a PR in all 18 situations. This is done for an average player. A Taylor series expansion was used to estimate the variance of the difference of the probability estimates, and normality was assumed to calculate the p-values for the one-sided tests of those differences.&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;situation&lt;/th&gt; &lt;th align="center"&gt; P(run) no PR &lt;/th&gt;&lt;th align="center"&gt; P(run) PR &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=1,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.394&lt;/td&gt;&lt;td align="center"&gt;0.415&lt;/td&gt;&lt;td align="center"&gt;0.081&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=1,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.251&lt;/td&gt;&lt;td align="center"&gt;0.268&lt;/td&gt;&lt;td align="center"&gt;0.082&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=1,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.129&lt;/td&gt;&lt;td align="center"&gt;0.139&lt;/td&gt;&lt;td align="center"&gt;0.084&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=2,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.585&lt;/td&gt;&lt;td align="center"&gt;0.606&lt;/td&gt;&lt;td align="center"&gt;0.080&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=2,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.372&lt;/td&gt;&lt;td align="center"&gt;0.392&lt;/td&gt;&lt;td align="center"&gt;0.082&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=2,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.192&lt;/td&gt;&lt;td align="center"&gt;0.206&lt;/td&gt;&lt;td align="center"&gt;0.084&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=1,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.419&lt;/td&gt;&lt;td align="center"&gt;0.480&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=1,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.271&lt;/td&gt;&lt;td align="center"&gt;0.323&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=1,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.142&lt;/td&gt;&lt;td align="center"&gt;0.174&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=2,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.610&lt;/td&gt;&lt;td align="center"&gt;0.667&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=2,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.396&lt;/td&gt;&lt;td align="center"&gt;0.457&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=2,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.209&lt;/td&gt;&lt;td align="center"&gt;0.252&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=1,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.447&lt;/td&gt;&lt;td align="center"&gt;0.504&lt;/td&gt;&lt;td align="center"&gt;0.011&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=1,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.294&lt;/td&gt;&lt;td align="center"&gt;0.344&lt;/td&gt;&lt;td align="center"&gt;0.013&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=1,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.156&lt;/td&gt;&lt;td align="center"&gt;0.189&lt;/td&gt;&lt;td align="center"&gt;0.016&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=2,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.636&lt;/td&gt;&lt;td align="center"&gt;0.688&lt;/td&gt;&lt;td align="center"&gt;0.009&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=2,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.423&lt;/td&gt;&lt;td align="center"&gt;0.481&lt;/td&gt;&lt;td align="center"&gt;0.012&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=2,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.228&lt;/td&gt;&lt;td align="center"&gt;0.271&lt;/td&gt;&lt;td align="center"&gt;0.015&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;The following table is the same as the previous one, except it's for David Ortiz instead of the average player. He often hit prior to Manny Ramirez or Kevin Youkilis (good hitters).&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;situation&lt;/th&gt; &lt;th align="center"&gt; P(run) no PR &lt;/th&gt;&lt;th align="center"&gt; P(run) PR &lt;/th&gt; &lt;th align="center"&gt; p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=1,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.561&lt;/td&gt;&lt;td align="center"&gt;0.582&lt;/td&gt;&lt;td align="center"&gt;0.080&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=1,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.397&lt;/td&gt;&lt;td align="center"&gt;0.418&lt;/td&gt;&lt;td align="center"&gt;0.082&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=1,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.226&lt;/td&gt;&lt;td align="center"&gt;0.241&lt;/td&gt;&lt;td align="center"&gt;0.086&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=2,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.735&lt;/td&gt;&lt;td align="center"&gt;0.751&lt;/td&gt;&lt;td align="center"&gt;0.082&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=2,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.537&lt;/td&gt;&lt;td align="center"&gt;0.559&lt;/td&gt;&lt;td align="center"&gt;0.080&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=-1,base=2,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.318&lt;/td&gt;&lt;td align="center"&gt;0.337&lt;/td&gt;&lt;td align="center"&gt;0.083&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=1,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.586&lt;/td&gt;&lt;td align="center"&gt;0.644&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=1,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.422&lt;/td&gt;&lt;td align="center"&gt;0.483&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=1,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.244&lt;/td&gt;&lt;td align="center"&gt;0.293&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=2,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.754&lt;/td&gt;&lt;td align="center"&gt;0.797&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=2,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.563&lt;/td&gt;&lt;td align="center"&gt;0.623&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=0,base=2,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.341&lt;/td&gt;&lt;td align="center"&gt;0.398&lt;/td&gt;&lt;td align="center"&gt;0.000&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=1,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.613&lt;/td&gt;&lt;td align="center"&gt;0.666&lt;/td&gt;&lt;td align="center"&gt;0.010&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=1,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.450&lt;/td&gt;&lt;td align="center"&gt;0.507&lt;/td&gt;&lt;td align="center"&gt;0.011&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=1,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.266&lt;/td&gt;&lt;td align="center"&gt;0.313&lt;/td&gt;&lt;td align="center"&gt;0.016&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=2,outs=0&lt;/td&gt;&lt;td align="center"&gt;0.774&lt;/td&gt;&lt;td align="center"&gt;0.812&lt;/td&gt;&lt;td align="center"&gt;0.012&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=2,outs=1&lt;/td&gt;&lt;td align="center"&gt;0.590&lt;/td&gt;&lt;td align="center"&gt;0.645&lt;/td&gt;&lt;td align="center"&gt;0.010&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;lead=1,base=2,outs=2&lt;/td&gt;&lt;td align="center"&gt;0.366&lt;/td&gt;&lt;td align="center"&gt;0.422&lt;/td&gt;&lt;td align="center"&gt;0.013&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;The Ortiz coefficient's standard error was 0.263, so these probability estimates may be larger than the true probabilities: and surely they are because even Manny Ramirez cannot hit about .400, which is what the two-out numbers above are suggesting, with RISP in the long term.&lt;br /&gt;&lt;br /&gt;We can see from the low p-values in both tables that pinch running helps increase the chance of scoring, at least when the leading or tied. The PR effect is actually much bigger than I imagined it would be. Other than the large probability increases from the 1st table to the 2nd, there are a couple of interesting things. First, as the I.PR*lead interaction suggested, the PR effect is much smaller when the team is trailing; the raw probability of scoring is also smaller when trailing. I think the latter is easily explained by the fact that the opposing team's best pitchers tend to be their set-up man and closer, and these are the pitchers you face when trailing by one run in the 8th or 9th inning. Another less likely explanation might be that if you are losing by one run, you are not hitting as well on the day, and hence less likely to score. This gets into the "hot hand effect" though, and so I think the likely explanation is the opposing pitching.&lt;br /&gt;&lt;br /&gt;I don't think the smaller PR effect in games where the team is trailing is as intuitive, but it probably also has a lot to do with facing the opposing team's best pitching: the speed of your base runner is not important if the subsequent hitters are not getting hits. I actually fit a poisson regression with expected runs scored subsequent to the runner reaching base as the response, and interestingly the expected runs scored with the PR when trailing by one were &lt;span style="font-style: italic;"&gt;lower&lt;/span&gt; than the expected runs with no PR. The effect was extremely small and not statistically significant, but with the size of my sample I wouldn't expect to see that. I wonder if it has to do with a different strategy being employed when trailing - the PR tries to steal 2nd base, or the manager tries to bunt him over to 2nd base. Either of these moves certainly decrease the expected runs scored in the inning (although possibly increasing the chance of scoring at least one run).&lt;br /&gt;&lt;br /&gt;By not allowing for an interaction between I.PR and player, which would measure how fast the original base runner is, I've basically assumed that David Ortiz has the same speed as the average player (at least, average among those who have ever pinch run for - which is almost everybody at one time or another). But the variation in each of these interaction estimates would be even bigger than the variation we're now seeing in the player estimates, so I didn't bother with this here; I will have to include this is my final analysis in part 3 though, perhaps averaging several players together to more precisely estimate an overall effect of pinch running for good hitters. Anyway, because Ortiz is unusually slow, you can probably safely take away a little bit from Ortiz's probabilities and add a little bit to his PR's.&lt;br /&gt;&lt;br /&gt;This wraps up step 1. I've had to make some simplifications and assumptions to fit this logistic model (some of which I might have to try to relax in my next post), but at least the data have allowed me to show that pinch running significantly increases the chance of scoring.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-3948838158213495893?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/3948838158213495893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/are-pinch-runners-effective-part-2-of-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3948838158213495893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3948838158213495893'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/07/are-pinch-runners-effective-part-2-of-3.html' title='Are pinch runners effective? Part 2 of 3'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-7293723401450712355</id><published>2010-06-29T23:24:00.001-04:00</published><updated>2010-10-23T07:49:44.854-04:00</updated><title type='text'>Are pinch runners effective? Part 1 of 3</title><content type='html'>Late in a close game when a slow runner gets on base, a manager will often remove him in favour of a pinch runner (PR), hoping to score a vital run. This can be done when the team is ahead and trying to get an insurance run, when the team is tied and trying to take the lead, or when the team is behind and trying to tie the game. I'm skeptical of this strategy because although the chances of scoring in the current inning are no doubt increased, this spot in the batting order may well come up again later, and the superior hitter who used to occupy it will no longer be in the game. Here's a cursory discussion that says it may work though: &lt;a href="http://www.tangotiger.net/wiki/index.php?title=Mailbags#Pinch_runners_-_how_much_value_do_they_have.3F"&gt;Tango analysis&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The optimal strategy will likely depend on a few things:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;how many outs there are - perhaps with two outs, it won't be worthwhile to use a PR because the runner, regardless of his speed, is so unlikely to score, but with no outs it will be worth it,&lt;/li&gt;&lt;li&gt;whether the runner is on 1st base or 2nd base (pinch running tends not to happen at 3rd base),&lt;/li&gt;&lt;li&gt;the run difference between the two teams,&lt;/li&gt;&lt;li&gt;the inning,&lt;/li&gt;&lt;li&gt;the hitting ability of the player who reached base, and the hitting ability of the other players in his team's lineup as well as the other team's lineup.&lt;/li&gt;&lt;/ul&gt;I've decided to break the problem into two steps, which will be the subject of my upcoming entries. This post will just serve as the introduction. The first step will be to estimate how much more likely the run is to score when the PR enters the game. The second step, which will be more complicated, will address the runs that are lost in future innings due to the decrease in the lineup's hitting ability. It's not yet clear to me what exactly must be estimated in step 2 in order to solve the overarching question. It will involve the probability of this spot in the order coming to bat again, which will of course depend on the current inning and score, and the estimation in this step may have to happen jointly with step 1 in order to get a sensible variance estimate.&lt;br /&gt;&lt;br /&gt;To deal with step 1, I don't want to just blindly compare pinch running situations to situations with no PR - the lack of PR may indicate that the player who reached base is fast himself, and this will mitigate any true PR effect. I want to limit the sample to players who are sometimes pinch run for and sometimes not, and then control for player (and hence implicitly his team) in the model.&lt;br /&gt;&lt;br /&gt;I'm going to limit the data to close games (within one run) in the late innings (8th or later). A gross PR effect (step 1) could be estimated without these restrictions (although pinch running in other situations may have more to do with resting a player or replacing an injured player), but the net effect that needs to be estimated in step 2 involves the manager's strategic decision to remove the man on base, believing either that this spot in the order is unlikely to reach the plate again, or that the immediacy of the potentially ensuing run takes precedence. I also want to limit the situations to PRs (or no PRs) when only one man is on base; this will keep the number of possible situations low - either there is a runner on 1st and nowhere else, or there is a runner on 2nd and nowhere else.&lt;br /&gt;&lt;br /&gt;One other thing to note is that I'm not dealing with pitchers here. Deciding whether to pinch run for the pitcher is a completely different scenario, although it probably doesn't happen that much anyway because he'd sooner be pinch hit for.&lt;br /&gt;&lt;br /&gt;Fortunately having &lt;a href="http://statisticsinsports.blogspot.com/2009/10/score-of-game-and-pitcher-performance.html"&gt;previously&lt;/a&gt; dealt with the Retrosheet play-by-play data needed to set up the model, the parsing of data shouldn't be too time consuming.&lt;br /&gt;&lt;br /&gt;Stay tuned for part 2!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-7293723401450712355?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/7293723401450712355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2010/06/are-pinch-runners-effective-part-1-of-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/7293723401450712355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/7293723401450712355'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2010/06/are-pinch-runners-effective-part-1-of-3.html' title='Are pinch runners effective? Part 1 of 3'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-4789277451963504666</id><published>2009-11-06T19:02:00.001-05:00</published><updated>2010-10-23T07:47:59.551-04:00</updated><title type='text'>Closers in non-save situations</title><content type='html'>Closers in baseball today are specialists who get psyched up to come to the mound in the 9th inning and protect a small lead. The top performers are quite effective at this, but I've often heard the pundits and fellow fantasy baseball enthusiasts complain that managers bring the closers into non-save situations and screw up their ratios (ERA and WHIP). The theory is that when the team is already up by a few runs, or is losing, the closer can't have the same intensity. I've always been a bit skeptical about this; it sounds a lot like the clutch hitting myth, so today I'm going to investigate.&lt;br /&gt;&lt;br /&gt;I've seen a couple articles (&lt;a href="http://www.hardballtimes.com/main/article/does-trevor-hoffman-struggle-in-non-save-situations/"&gt;here&lt;/a&gt; and &lt;a href="http://bleacherreport.com/articles/43994-whats-the-deal-with-mariano-riveras-non-save-struggles"&gt;here&lt;/a&gt;) that have approached this problem in an heuristic way and only for one closer. I picked the first 6 closers off the top of my head - Trevor Hoffman, Bobby Jenks, Joe Nathan, Jonathan Papelbon, Mariano Rivera, and Billy Wagner - and I'll do some inference to see if any of them pitch significantly better when in save situations. I've limited the analyses to seasons when they were full-time closers.&lt;br /&gt;&lt;br /&gt;The incredible &lt;a href="http://www.baseball-reference.com/"&gt;Baseball-Reference&lt;/a&gt; has split stats for every pitcher for every year, and this includes all major performance indicators in save situations and in non-save situations, so getting the data into the right format was easy. The following graphs show the &lt;a href="http://en.wikipedia.org/wiki/Defense_independent_pitching_statistics"&gt;FIP&lt;/a&gt; and ERA for the 6 closers with the red indicating save situations and the blue indicating non-save situations. I threw out a partial season for both Hoffman and Wagner (mostly to make the graphs look nicer).&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLBHon9BI/AAAAAAAAAAg/I4BgpgAoRGk/s1600/hoffman.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLBHon9BI/AAAAAAAAAAg/I4BgpgAoRGk/s320/hoffman.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLDYK037I/AAAAAAAAAAk/vgUzaAzCSBQ/s1600/jenks.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLDYK037I/AAAAAAAAAAk/vgUzaAzCSBQ/s320/jenks.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLHT9OHpI/AAAAAAAAAAo/-m2cu6qK9s0/s1600/nathan.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLHT9OHpI/AAAAAAAAAAo/-m2cu6qK9s0/s320/nathan.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&amp;nbsp;&lt;a href="http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLLJvOu5HI/AAAAAAAAAAs/CSd6GL_BHUw/s1600/papelbon.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLLJvOu5HI/AAAAAAAAAAs/CSd6GL_BHUw/s320/papelbon.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLKodXZvI/AAAAAAAAAAw/oEOYVql5YOI/s1600/rivera.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLKodXZvI/AAAAAAAAAAw/oEOYVql5YOI/s320/rivera.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_ZO7aBfXMj_E/TMLLL1xhyXI/AAAAAAAAAA0/KwdVKXnaI4M/s1600/wagner.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://3.bp.blogspot.com/_ZO7aBfXMj_E/TMLLL1xhyXI/AAAAAAAAAA0/KwdVKXnaI4M/s320/wagner.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;I thought if there was a difference in performance between the two situations that there could be a time trend - perhaps the veteran closer has learned how to perform in the non-save situations better than the raw, young closer. But these graphs show no obvious interaction between time and situation for any closer, so to perform my statistical analyses I aggregated the stats across all years.&lt;br /&gt;&lt;br /&gt;For each player/situation combination I got estimates for the probability of a home run (HR), walk or hit by pitch (BB), strikeout (K), and of another type of out (out). Dividing the numerator and denominator of the usual FIP formula by PA, we see that FIP = 3(13P(HR) + 3P(BB) - 2P(K))/(P(K)+P(out)) + 3.2. And since it's written as a function of the probabilities and we know the covariance of &lt;a href="http://en.wikipedia.org/wiki/Multinomial_distribution"&gt;multinomial probabilities&lt;/a&gt;, the delta method can be applied to get the variance of each FIP estimate.&lt;br /&gt;&lt;br /&gt;The following table shows the FIP estimates for save situation and non-save situation, and the p-value - assuming normality of the estimates - for the test of FIP(SV) less than FIP(NSV).&lt;br /&gt;&lt;br /&gt;&lt;table align="center" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th align="center"&gt;Pitcher &lt;/th&gt;&lt;th align="center"&gt;FIP(SV) &lt;/th&gt;&lt;th align="center"&gt;FIP(NSV) &lt;/th&gt;&lt;th align="center"&gt;p-value &lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;Hoffman &lt;/td&gt;&lt;td align="center"&gt;2.83 &lt;/td&gt;&lt;td align="center"&gt;3.30 &lt;/td&gt;&lt;td align="center"&gt;0.08 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;Jenks &lt;/td&gt;&lt;td align="center"&gt;3.31 &lt;/td&gt;&lt;td align="center"&gt;3.57 &lt;/td&gt;&lt;td align="center"&gt;0.33 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;Nathan &lt;/td&gt;&lt;td align="center"&gt;2.67 &lt;/td&gt;&lt;td align="center"&gt;2.14 &lt;/td&gt;&lt;td align="center"&gt;0.90 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;Papelbon &lt;/td&gt;&lt;td align="center"&gt;2.51 &lt;/td&gt;&lt;td align="center"&gt;2.34 &lt;/td&gt;&lt;td align="center"&gt;0.63 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;Rivera &lt;/td&gt;&lt;td align="center"&gt;2.71 &lt;/td&gt;&lt;td align="center"&gt;3.06 &lt;/td&gt;&lt;td align="center"&gt;0.12 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;Wagner &lt;/td&gt;&lt;td align="center"&gt;2.75 &lt;/td&gt;&lt;td align="center"&gt;2.63 &lt;/td&gt;&lt;td align="center"&gt;0.64 &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;We can see that three pitchers actually pitch better in non-save situations and even without controlling for multiple testing, no pitcher is significantly better in save situations. That doesn't mean that this will hold for every closer (although I suspect all significant differences would be false positives), but for these 6 the myth has been broken!&lt;br /&gt;&lt;br /&gt;The data used here were obtained from &lt;a href="http://www.baseball-reference.com/"&gt;Baseball-Reference&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-4789277451963504666?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/4789277451963504666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2009/11/closers-in-non-save-situations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/4789277451963504666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/4789277451963504666'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2009/11/closers-in-non-save-situations.html' title='Closers in non-save situations'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ZO7aBfXMj_E/TMLLBHon9BI/AAAAAAAAAAg/I4BgpgAoRGk/s72-c/hoffman.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-447062349963515866</id><published>2009-10-18T11:52:00.001-04:00</published><updated>2010-10-23T07:44:36.870-04:00</updated><title type='text'>Score of the game and pitcher performance</title><content type='html'>Continuing my &lt;a href="http://statisticsinsports.blogspot.com/2009/09/does-one-long-half-inning-lead-to.html"&gt;previous post&lt;/a&gt;, I will now briefly analyze the association between the score the game and some pitching stats. I certainly expected to see some statistical significance here as I used more data - a pitcher with a big lead will probably throw more strikes, giving up more home runs and fewer walks, to limit the probability of a big inning. I was interested in seeing just how big this effect is. Perhaps the FIP for pitchers with a big lead is actually lower than for those with a smaller lead, and pitchers should consider throwing more strikes all the time? Anyway, I'm sure a more detailed study on this, and the associated win probabilities for different pitching strategies has already been done.&lt;br /&gt;&lt;br /&gt;I fit binomial logistic models (one each for HR, BB, and K) accounting for team at bat and for the pitcher (and number of pitches in the previous inning). The other factor was either lead^2 or just lead of the team pitching. With lead^2, I got coefficients and p-values:&lt;br /&gt;&lt;table align="center"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="center"&gt; HR &lt;/td&gt;&lt;td align="center"&gt; 0.0032 &lt;/td&gt;&lt;td align="center"&gt; 8.53e-05 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; BB &lt;/td&gt;&lt;td align="center"&gt; -0.0027 &lt;/td&gt;&lt;td align="center"&gt; 1.14e-05 *** &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt; K &lt;/td&gt;&lt;td align="center"&gt; -0.0011 &lt;/td&gt;&lt;td align="center"&gt; 0.017213 * &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Lead^2 is significant for HR, BB, and K, but each translates to less than half a percent multiplicative change in the odds of the associated counting statistic for each increase of one in lead^2. There are indeed more HR and fewer BB (and fewer K) when the game is not close, but for every 200 HR you see with lead^2 = x, you'll see less than one extra HR for lead^2 = x+1. This works out to about 10% more home runs in 5 run games than in tie games.&lt;br /&gt;&lt;br /&gt;I fit the same model with lead instead of lead^2, and the effects were in the same direction but not as large, and the lead effect in the K model was not significant at all. This implies that pitchers on both sides throw more strikes when the game isn't close.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-447062349963515866?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/447062349963515866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2009/10/score-of-game-and-pitcher-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/447062349963515866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/447062349963515866'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2009/10/score-of-game-and-pitcher-performance.html' title='Score of the game and pitcher performance'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-149320770330163971</id><published>2009-09-02T08:47:00.001-04:00</published><updated>2010-10-23T07:43:47.044-04:00</updated><title type='text'>Does one long half inning lead to another?</title><content type='html'>I've sometimes heard announcers say that while a pitcher loves watching his team rally, he gets tight sitting on the bench for so long, and his performance in the next half inning may suffer. This mildly relates to my &lt;a href="http://statisticsinsports.blogspot.com/2009/08/yankees-icing-opposing-pitchers.html"&gt;previous post&lt;/a&gt; about a long 7th inning stretch not affecting the pitcher. But a long rally could mean 15, 20, even 25 minutes on the bench for a pitcher, so maybe that's enough time for his performance in the next half inning to suffer?&lt;br /&gt;&lt;br /&gt;My idea to answer this question was to fit a multinomial logistic regression with the levels of the response being the necessary counts to estimate FIP: HR, BB+HBP, K, other outs; and the predictors being team at bat, pitcher, stadium, and pitches in the previous inning. The data from Retrosheet doesn't have the time of each half inning, but I figure pitches thrown is going to be highly correlated with actual time, and will suffice. Once the parameters in the multinomial logistic regression are estimated, one could easily estimate FIP=(13HR+3(BB+HBP)-2K)/IP for different values of pitches in the previous inning (for the average pitcher and average team at bat) and use the multivariate delta method to find the variance of each FIP estimate.&lt;br /&gt;&lt;br /&gt;I didn't want to use linear regression with FIP as the response because it would basically be categorical. Moreover, sometimes IP=0, so I couldn't model FIP directly anyway - limiting the interpretability of my results for those who want to see FIP, and not some transformation of it.&lt;br /&gt;&lt;br /&gt;I think the multinomial regression is necessary rather than a few binomial regressions because to estimate the variance of the FIP estimates, we need to take into account the covariance in the parameter estimates (any glm fit in R will spit out a correlation matrix of parameter estimates upon request). If using only binomial regressions, we can't estimate the correlation between the coefficient for pitches in the previous inning in the HR/PA model and the corresponding coefficient in the BB/PA model, for example.&lt;br /&gt;&lt;br /&gt;Unfortunately, the multinomial regression functions available in R don't seem up to the task. (Let me know if I'm missing something.) But vglm in the VGAM package wants the data in binary form, which makes the already large data set (with one row for each inning) even larger, requiring a separate row for each PA. R then runs out of memory when finding the root - at least when I'm using all the PA from 2007-2008. The other function I found, multinom in the nnet library, doesn't seem to compute the covariance matrix.&lt;br /&gt;&lt;br /&gt;But to answer today's question, it turns out one doesn't really need to look at the FIP. After some painful character string manipulation to parse the data, I fit three separate binomial logistic regressions - for HR, BB, K - and in none of them is the coefficient for previous pitches even close to significant, nor are any of the estimates practically different from zero. Below are the coefficients and the corresponding p-values:&lt;br /&gt;&lt;table align="center"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="center"&gt;HR &lt;/td&gt;&lt;td align="center"&gt;-0.0026 &lt;/td&gt;&lt;td align="center"&gt;0.14 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;BB &lt;/td&gt;&lt;td align="center"&gt;0.0012 &lt;/td&gt;&lt;td align="center"&gt;0.26 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;K &lt;/td&gt;&lt;td align="center"&gt;-0.0003 &lt;/td&gt;&lt;td align="center"&gt;0.70 &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;So it looks like length of the previous inning does not have any effect on the pitcher, and he should be wholeheartedly cheering for his team to score runs - even if he's mostly interested in his own sabermetric stats.&lt;br /&gt;&lt;br /&gt;Next time, I'll use similar code to analyze the relationship between the score of the game and HR, BB, K allowed. It looks like there are some significant differences there.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-149320770330163971?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/149320770330163971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2009/09/does-one-long-half-inning-lead-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/149320770330163971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/149320770330163971'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2009/09/does-one-long-half-inning-lead-to.html' title='Does one long half inning lead to another?'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-4478673614049691024</id><published>2009-08-13T20:49:00.002-04:00</published><updated>2010-10-23T07:41:21.182-04:00</updated><title type='text'>Fielding Independent Pitching</title><content type='html'>I was working on a longer post about how a pitcher's performance might be affected by the score of the game, or how long the previous half inning took, and I realized that the &lt;a href="http://en.wikipedia.org/wiki/Defense_Independent_Pitching_Statistics"&gt;FIP&lt;/a&gt; formula developed by Tom Tango was a bit counter-intuitive to me. I know there are more complex formulas that can perform better, but as a quick predictor of future ERA, FIP seems to be the popular choice. What puzzled me was the use of IP rather than plate appearances (PA) - I thought using IP would bring luck back into the equation, and hence predict lower ERAs for pitchers who happened to have a low &lt;a href="http://en.wikipedia.org/wiki/BABIP"&gt;BABIP&lt;/a&gt; in the preceding season.&lt;br /&gt;&lt;br /&gt;So I did some quick analyses using data from 1995-2008. I fit a weighted (based on IP) multiple linear regression model with season ERA as the response and the previous season's HR/IP, (BB+HBP)/IP, and K/IP as predictors. I limited the analysis to pitchers who had pitched at least 130 innings in both the predictor year and the response year. I'm sure the results wouldn't change much if I didn't use the innings quota, but I wanted to focus on starting pitchers because that's the group my next post will be about. The multiple regression assumptions of homoscedasticity and linearity appear to be reasonable:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLIRSToaOI/AAAAAAAAAAU/5u2qE2T6WOo/s1600/fip+resids.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLIRSToaOI/AAAAAAAAAAU/5u2qE2T6WOo/s320/fip+resids.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;The estimates (all highly significant) are:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLJE_zhQuI/AAAAAAAAAAY/SYLUH2BygX0/s1600/ip.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLJE_zhQuI/AAAAAAAAAAY/SYLUH2BygX0/s1600/ip.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;Rounding off to the nearest integer, my formula agrees with FIP. Then I fit the same model, but with HR/PA, (BB+HBP)/PA, and K/PA (using PA as the weight), and got:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_ZO7aBfXMj_E/TMLJP33ivfI/AAAAAAAAAAc/seW956hS_Ws/s1600/pa.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_ZO7aBfXMj_E/TMLJP33ivfI/AAAAAAAAAAc/seW956hS_Ws/s1600/pa.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The higher R^2 for the innings pitched model tells us that model does a better job of predicting ERA for the subsequent season. Removing balls in play from the regression equation reduced the quality of the fit, so this is evidence that pitchers do have some control over BABIP.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;&lt;span style="font-weight: bold;"&gt;The data used here were obtained from &lt;a href="http://www.fangraphs.com/"&gt;FanGraphs&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-4478673614049691024?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/4478673614049691024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2009/08/fielding-independent-pitching.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/4478673614049691024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/4478673614049691024'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2009/08/fielding-independent-pitching.html' title='Fielding Independent Pitching'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZO7aBfXMj_E/TMLIRSToaOI/AAAAAAAAAAU/5u2qE2T6WOo/s72-c/fip+resids.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-8239763251292812499</id><published>2009-08-02T10:11:00.004-04:00</published><updated>2010-10-23T07:58:27.561-04:00</updated><title type='text'>Yankees icing opposing pitchers?</title><content type='html'>Ever since September 11, 2001, "God Bless America" has been played at the 7th inning stretch of all games at Yankee Stadium, slightly delaying the start of the bottom of the 7th. Other stadiums reserve playing the song for special occasions such as Opening Day, Memorial Day, the 4th of July, and 9/11.&lt;br /&gt;&lt;br /&gt;I've often read that this extended break before the bottom of the 7th "ices" the opposing pitcher, much like a timeout before a field goal attempt supposedly distresses a placekicker. This break gets even longer during the postseason when they trot out Dr. Ronan Tynan to sing an extended live version, making the visiting pitcher - and everyone else - stand still (&lt;a href="http://www.nbcnewyork.com/news/sports/You-Can-Now-Honor-America-From-The-Yankee-Stadium-Loo.html"&gt;they used to really frown on movement during the song!&lt;/a&gt;) while Dr. Tynan sings. I would think this delay might affect a new pitcher coming in from the bullpen more than it would affect the old one coming from the dugout - because the guy in the dugout already sat still for the top of the 7th inning. But either way, the claim is that the Yankees seem to do quite well in the bottom of the 7th at home, &lt;a href="http://www.nytimes.com/2003/10/04/sports/sports-of-the-times-yankees-seventh-inning-stretch-shouldn-t-be-so-stretched-out.html"&gt;especially in the playoffs&lt;/a&gt;, since 9/11/2001.&lt;br /&gt;&lt;br /&gt;I've seen a couple analyses confirming this effect (I won't name names) that don't really seem to get at the issue. I think the way to simply test for a "God Bless America" effect is to take into account the dynamic annual strength of the Yankee offense, and to limit the analysis to Yankee Stadium games in order to control for park effect. A more complicated analysis could of course take into account opposing pitching strength, injuries, etc.&lt;br /&gt;&lt;br /&gt;Rather than looking directly at runs, it would be preferable to look at a sabermetric statistic like &lt;a href="http://en.wikipedia.org/wiki/Base_Runs"&gt;base runs&lt;/a&gt;, but I'm going to be lazy and look at runs directly. The number of runs the Yankees score in the bottom of the 7th inning of a given game is a count, so it's natural to model it with the Poisson distribution, incorporating an offset for the strength of the Yankee offense. I'll estimate the strength of the offense as the number of runs they score during the whole regular season at home; this actually has a bigger range than I thought, going from 520 runs in 2007 to just 412 runs in 2008 - no doubt partly due to A-Rod's injury. I'll start by considering just the regular season games played between 1995 and 2008. The required quasi-Poisson regression model is:&lt;br /&gt;&lt;br /&gt;&lt;table align="center"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="center"&gt;log(E(runs)) = log(strength) + &lt;span style="font-style: italic;"&gt;b&lt;/span&gt;*GBA,&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;where E(runs) denotes the expected value (or mean) of 7th inning runs, and GBA is 1 if the game took place after 9/11/2001, and 0 if before. The results (from &lt;a href="http://cran.r-project.org/"&gt;R&lt;/a&gt;) for &lt;span style="font-style: italic;"&gt;b&lt;/span&gt; are:&lt;br /&gt;&lt;table align="center"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="center"&gt;Estimate &lt;/td&gt;&lt;td align="center"&gt;p-value &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="center"&gt;-0.002675 &lt;/td&gt;&lt;td align="center"&gt;0.98 &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;(Dispersion parameter for quasipoisson family taken to be 2.29)&lt;br /&gt;&lt;br /&gt;The Yanks are actually scoring at a slightly higher rate in the bottom of the 7th since 9/11/2001 (not shown), but the results above show that after controlling for their increasing offensive strength, they are scoring at a lower rate since the addition of the song! The rate change is highly insignificant though, with a p-value of 0.98. But the mumbling about an unfair advantage appears to be unfounded. What about a playoff advantage though? That's what the opposition really gripes about... it turns out no complicated modeling is necessary to answer that question.&lt;br /&gt;&lt;br /&gt;Between 1995 and 2000, the Yanks played 31 home playoff games, and scored 29 7th inning runs, for an average of 0.94. They scored at least once in the 7th 14 times. Between 2001 and 2008, the Yanks played 32 home playoff games, and scored 15 7th inning runs, for an average of 0.47. In those years they scored at least once in the 7th only 9 times!&lt;span style="text-decoration: underline;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_ZO7aBfXMj_E/TMLHYk29i_I/AAAAAAAAAAQ/c7SVppVHNds/s1600/yanks+in+7th.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="319" src="http://4.bp.blogspot.com/_ZO7aBfXMj_E/TMLHYk29i_I/AAAAAAAAAAQ/c7SVppVHNds/s320/yanks+in+7th.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="text-decoration: underline;"&gt; &lt;/span&gt;So it turns out that Dr. Tynan's long performance of "God Bless America" doesn't really throw the opposing pitchers off their game any more than being late in the game in the playoffs at Yankee Stadium has already done. If anything, it seems like it might help the opposition... of course the sample size is pretty small.&lt;br /&gt;&lt;br /&gt;Or... maybe the live song has helped the Yanks, but A-Rod has single-handedly mitigated the benefits! :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-8239763251292812499?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/8239763251292812499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2009/08/yankees-icing-opposing-pitchers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/8239763251292812499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/8239763251292812499'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2009/08/yankees-icing-opposing-pitchers.html' title='Yankees icing opposing pitchers?'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ZO7aBfXMj_E/TMLHYk29i_I/AAAAAAAAAAQ/c7SVppVHNds/s72-c/yanks+in+7th.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6005365167182351559.post-3554209409367589964</id><published>2009-07-31T23:56:00.000-04:00</published><updated>2010-10-19T17:46:08.206-04:00</updated><title type='text'>Welcome</title><content type='html'>This is the first of possibly many blog entries about statistics in baseball. A bit about me: I'm a Ph.D. student in Statistics at Cornell University, and I've been a baseball fan since I was about five years old I suppose. I started playing fantasy baseball in the early 90's, and I've been at it ever since.&lt;br /&gt;&lt;br /&gt;I'm not sure how often I'll have time to write, or how accessible all of my writings will be to the casual statistician, but I hope some people will read what I write here, and maybe I'll actually be filling a niche: baseball analysis with more rigorous statistics than most blogs. It'll be good practice for my own data analysis skills too - something I don't get much of.&lt;br /&gt;&lt;br /&gt;I've recently downloaded some data from www.retrosheet.org, and I'm required to cite them with the following statement whenever I use the data: The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org". This incredibly useful site has free downloads of the play by play information and summary information for the vast majority of MLB games ever played, and complete data for everything recent.&lt;br /&gt;&lt;br /&gt;I'll use the statistical package &lt;a href="http://cran.r-project.org/"&gt;R&lt;/a&gt; for my data analysis. The first question I'll tackle is whether the Yankees' "icing" of opposing pitchers with their long 7th inning stretch is actually effective. Stay tuned.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6005365167182351559-3554209409367589964?l=statisticsinsports.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://statisticsinsports.blogspot.com/feeds/3554209409367589964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://statisticsinsports.blogspot.com/2009/07/welcome.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3554209409367589964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6005365167182351559/posts/default/3554209409367589964'/><link rel='alternate' type='text/html' href='http://statisticsinsports.blogspot.com/2009/07/welcome.html' title='Welcome'/><author><name>David Clement</name><uri>http://www.blogger.com/profile/14903688130603212290</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
