Tuesday, December 4, 2012

NPB park factors for 2006-2012


 One of my followers asked me yesterday on Twitter whether I published any park factors for NPB. Actually, I computed park factors and in consequence so-called "advanced" statistics (actually I don't like the idea of wOBA, WAR, FIP, etc... being classified in "advanced" category, but this post is not one centered around that way of thinking) for all players after the Japan Series last November. But because yesterday I noticed that somehow my script didn't snatch raw data correctly and instead stored mistaken values on my file (that's why I didn't realize until he asked me, since even if a script has some errors, it doesn't spit those errors if it stores something different on behalf of true one and the two values differ only a bit amount, at least through the quick and dirty eye test. I'd also like to point out that it was not my coding that caused the pain, but either a parse module or a site itself, though even if that was the case I'm not going to disparage them) and thought this was a good time to write a generalized script to compute park factors in order to utilize it again down the road, I decided to redo my park calculation and upload the result on this blog.

 Actually, as long as I know, all park factors you can find on the Web, even in Japanese (and I don't necessarily think you could do better by searching in Japanese than in English for NPB-related data), are raw factors, which is just computed with actual runs on the specific park in the specific year, and we all know that it should be tweaked a bit when implemented in actual players' statistics. I don't like to bother to talk about the internal structure of calculation that much, since most of you guys don't have much interest in NPB at least unless some players are going to head to MLB, let alone park factors, so here's a quick explanation. I figured out all runs logged on home and compared it to the league context. Then I scaled it so that league mean is 1.00 due to some games being played in rural stadiums, almost all of which are rather small and hence hitters park, and then averaged out values of each park with up to five years and some tiny weights dependent on the year, then regressed a bit to finish the calculation. The data below lists year, team (actually, I don't specify park name, though I accounted for park change for Hiroshima Carp prior to 2009), league, the number of home games, raw PF, and true, regressed PF in order. Note that YB on team abbreviation means Yokohama Bay Stars, and DB is DeNA Bay Stars, the same team but the team name changed due to a ownership change. Forgive me if you feel the way I show my PF below too dirty, but it lends itself better to you copying and pasting on your file.


year,team,league,N_home,raw_pf,true_pf
2006,Bs,pl,34,1.01,1
2006,C,cl,65,1.15,1.09
2006,D,cl,70,0.84,0.91
2006,E,pl,62,1.06,1.02
2006,F,pl,57,0.94,0.94
2006,G,cl,64,0.98,1
2006,H,pl,65,0.81,0.93
2006,L,pl,65,0.98,1.03
2006,M,pl,68,0.88,0.96
2006,T,cl,60,0.92,0.91
2006,YB,cl,66,1.12,1.12
2006,Ys,cl,65,1.26,1.12
2007,Bs,pl,48,0.89,1
2007,C,cl,66,1.07,1.09
2007,D,cl,67,0.98,0.91
2007,E,pl,67,0.94,1.01
2007,F,pl,58,0.88,0.94
2007,G,cl,63,0.91,1
2007,H,pl,70,1,0.93
2007,L,pl,70,1.08,1.04
2007,M,pl,72,1.01,0.96
2007,T,cl,62,0.92,0.91
2007,YB,cl,66,1.05,1.12
2007,Ys,cl,68,1.19,1.12
2008,Bs,pl,48,0.89,1
2008,C,cl,66,1.1,1.09
2008,D,cl,67,1,0.91
2008,E,pl,70,1.04,1.02
2008,F,pl,59,0.88,0.94
2008,G,cl,63,1.05,1
2008,H,pl,68,0.94,0.93
2008,L,pl,68,1.04,1.04
2008,M,pl,72,1.09,0.96
2008,T,cl,61,0.76,0.91
2008,YB,cl,65,1.12,1.12
2008,Ys,cl,65,0.98,1.11
2009,Bs,pl,49,1.07,0.98
2009,C,cl,67,0.97,0.98
2009,D,cl,67,0.81,0.9
2009,E,pl,70,1.04,1
2009,F,pl,60,1.02,0.94
2009,G,cl,63,0.95,0.99
2009,H,pl,69,0.92,0.95
2009,L,pl,69,1.07,1.07
2009,M,pl,72,0.88,0.99
2009,T,cl,60,0.97,0.92
2009,YB,cl,65,1.22,1.14
2009,Ys,cl,69,1.07,1.1
2010,Bs,pl,51,1.14,1
2010,C,cl,68,0.96,0.98
2010,D,cl,69,0.83,0.86
2010,E,pl,68,0.97,1.02
2010,F,pl,58,0.91,0.95
2010,G,cl,64,1.06,1.01
2010,H,pl,69,0.91,0.92
2010,L,pl,67,0.98,1.07
2010,M,pl,72,0.89,1.01
2010,T,cl,60,0.89,0.9
2010,YB,cl,65,1.14,1.15
2010,Ys,cl,66,1.09,1.11
2011,Bs,pl,58,0.81,0.99
2011,C,cl,69,1.04,0.98
2011,D,cl,70,0.75,0.86
2011,E,pl,63,0.96,1.02
2011,F,pl,61,0.88,0.95
2011,G,cl,63,0.93,1.01
2011,H,pl,68,0.89,0.91
2011,L,pl,67,1.16,1.07
2011,M,pl,72,1.02,1.02
2011,T,cl,61,0.95,0.9
2011,YB,cl,64,1.17,1.15
2011,Ys,cl,63,1.18,1.12
2012,Bs,pl,58,1,1
2012,C,cl,68,0.85,0.97
2012,D,cl,67,0.77,0.86
2012,E,pl,68,1.04,1.02
2012,F,pl,58,0.94,0.95
2012,G,cl,64,0.99,1.01
2012,H,pl,68,0.79,0.91
2012,L,pl,68,1.06,1.07
2012,M,pl,72,1.15,1.02
2012,T,cl,60,0.76,0.89
2012,YB,cl,63,1.1,1.15
2012,Ys,cl,66,1.24,1.12


No comments:

Post a Comment