Wednesday, 20 August 2014

bbFIP Primer.

Alot of people out there, believe that BABIP (Batting Average On Balls In Play) is a regression based statistic, and to out perform the regression point is more luck then skill.  What do you do if you do believe that BABIP control is a skill based on the type of contact given up? FIP (Fielding Independent Pitching) regresses BABIP to the league average so it isn't of any use to measure from that standpoint.   Early in 2010, Tom Tango ran run expectancy based regressions (or in layman terms, he derived how much impact on runs each batted ball type had) on data from 2002-09 and developed a formula that would finally include batted ball type into FIP.  Not to confuse this bbFIP with  tERA, which is based completely on linear weights       (http://www.insidethebook.com/ee/index.php/site/comments/tangos_lab_batted_ball_fip/) Here you can find everything that went into creating the statistic. 
The simple explanation is through what Tom Tango figured out unintentional walks, hit by pitch, line drives, strikeouts and popups had roughly a similar run expectancy whether for positive or negative.  The first part of the formula is the “BIGS”, which is (( unintentional walks + hit by pitch + line drives) – (Strikeouts + Popups)). Then taking that total and dividing it by the number of batters faced.  Lets use the shorthand formula of:

( ( UBB + HBP + LD ) -  ( K + PU) ) / PA.

The next part of the equation is what we call “SMALLS”.  Outfield fly balls and ground balls had similar run expectancy so the second part of the equation is (outfield fly balls – ground balls). Of course we divide this by batters faced as well.  The final equation for “SMALLS” is:

( FB – GB ) / PA

Finally, its time to put it all together as an equation. Doing some fancy math that I won't bother to get into, we multiply our BIGS/PA by 11 and SMALLS/PA by 3, thus giving ourselves the difference in run expectancy.  Then at the very end of the whole equation we add a simple constant (C) to get bbFIP onto an ERA scale.  In the end our final calculation is:

bbFIP = (11* ( ( UBB + HBP + LD ) - ( K + PU ) / PA) ) +(3* ( ( FB – GB ) / PA ) ) + C

bbFIP really allows us to weed out those outliers from FIP that out or under perform their peripherals. Original FIP is highly dependent on home runs, strikeouts and walks, and basically assumes that each pitcher should regress towards the mean in terms of BABIP. The thing about BABIP is that it really still depends on batted ball type. Ground balls and popups will turn into runs much less often then fly balls or line drives.

Brandon Morrow is an example of a pitcher who under performs his raw peripherals (BB, K, HR/FB). The fact that he gives up a higher % of FB and LD (compared to league average) and a low % of GB and PU.  This leads to a higher bbFIP then FIP (3.81 to 3.64 in 2011). 

Conversely, Cole Hamels generates a higher then average rate of GB and FB and a lower % of FB and LD.  Hamels posted a 2.41 bbFIP and a 3.02 FIP in 2011, outperforming his already solid raw peripherals.




In the end, just like all statistics bbFIP is just another tool in the grand scheme.  There is, nor will there ever be all encompassing statistic for independent player performance, although bbFIP brings another different approach to evaluation.

Monday, 11 August 2014

Turning bbFIP Into a Wins Above Replacement Metric

            Earlier this year I wrote about my favourite pitching metric, bbFIP (link). bbFIP was a take on FIP that calculated batted ball type into BIP rather than ignoring batted ball type, something I felt shafted groundball pitchers and aided flyball types.  Since the baseball season ended I’ve concentrated my energies toward attempting to create a Wins Above Replacement. 
            
           bbWAR is based upon the fangraphs (http://www.fangraphs.com/library/index.php/misc/war/) model for Wins Above Replacement, which I thought fitting since bbFIP and FIP are calculated in a similar matter, bbFIP just considers more variables of pitcher control.  For a slightly more descriptive explanation you can check out the fangraphs explanation (http://www.fangraphs.com/library/index.php/misc/war/), though I will walk through it as well. 

          The first thing I did was separate all relevant data into 4 categories. These categories were: Home Starting Data, Road Starting Data, Home Relieving Data, and Road Relieving Data.  The separation of these 4 categories just makes it easier when dealing with differences in replacement level between Starting and Relieving as well as calculating park adjustments.

We will follow 1 pitcher through the process, for this I have chosen everyone’s favourite phenomenon, Steven Strasburg.
PART -1 bbFIP
            The first step in bbWAR is, obviously enough, calculating each pitchers bbFIP. For this I will quote directly from the bbFIP primer.

The first part of the formula is the “BIGS”, which is (( unintentional walks + hit by pitch + line drives) – (Strikeouts + Popups)). Then taking that total and dividing it by the number of batters faced.  Lets use the shorthand formula of: ( ( UBB + HBP + LD ) -  ( K + PU) ) / PA. The next part of the equation is what we call “SMALLS”.  Outfield fly balls and ground balls had similar run expectancy so the second part of the equation is (outfield fly balls – ground balls). Of course we divide this by batters faced as well.  The final equation for “SMALLS” is: ( FB – GB ) / PA Finally, its time to put it all together as an equation. Doing some fancy math that I won't bother to get into, we multiply our BIGS/PA by 11 and SMALLS/PA by 3, thus giving ourselves the difference in run expectancy.  Then at the very end of the whole equation we add a simple constant (C) to get bbFIP onto an ERA scale.  In the end our final calculation is: bbFIP =( ( ( ( UBB + HBP + LD ) - ( K + PU ) / PA) ) + ( ( OFFB – GB ) / PA ) ) and finally ((11*bigs)+(3*smalls) ) + C


****The bolded and italicized text points out something I’d like to make note of.  Instead of scaling bbFIP to league ERA, to properly calculate WAR, it is scaled to RA/9 instead.
Using bbFIP to create WAR leads to some large differences in opinion from fWAR, rWAR or WARP, such as Jarrod Parker being worth 1.3 wins in 2012.  It may not look right, but bbWAR just calculates differently due to its batted ball usage.  Using batted ball rates does lead to some numbers that just don’t look right such as Jered Weaver’s 1.6 and Matt Cain’s 2.7 WAR in 2012.  This is due to batted ball classification issues as not all flyballs are hard hit.  Ideally for me batted balls would have 2 types of flyball classification, but as of right now there is just the one.
This gives us our first calculation, which we can just call bbFIP Calc.
Strasburg
Home Start bbFIP: 3.24
Road Start bbFIP: 3.00

PART – 2 Park Adjustment
Park Adjustment is one of the simpler steps in the process once we have separated all the data. All home data needs to have the park adjustment factored in. All park factors can be found in the fangraphs Guts! (http://www.fangraphs.com/guts.aspx?type=pf&teamid=0&season=2012) section.
Washington Nationals home park for 2012 posted a 100 park factor meaning that we just multiply his bbFIP 1.00.  But in say Colorado, where the park factor was 113 for 2012, you would multiply by 0.87.  Reaching that number is fairly simple. An easy way to calculate is x=((200 - park factor)/100)
Strasburg
Home Start bbFIP: 3.24

PART 3 – Run Environment
Run Environment is the conversion of runs to wins. To calculate this, we need IP/G, bbFIP (park adjusted for home data).  So to get the run environment we use the formula via Tom Tango for Runs To Wins conversion:
Run Environment =((((18 - IP/G) * LeagueRA + IP/G * bbFIP) / 18) + 2) * 1.5
Strasburg RE:
Home: 8.92
Road: 8.77

PART 4 – Win %, Above Average, Above Replacement
This next part of the calculation has several formulas that are based upon each other. First we have to find out how much better his bbFIP was then league average.  So our first formula in this step is simple:
bbFIP Above Average = League RA/9 – bbFIP (or park adjusted bbFIP).
Strasburg
Home: 1.01 R/9 Above Average
Road: 1.25 R/9 Above Average
Second part of this step is dividing the R/9 Above Average by the Run Environment.
Win % = (R/9 Above Average / Run Environment) + 0.500
Strasburg
Home: .613
Road: .643

PART 5 – Replacement Level
Through a bunch of fancy math, historical replacement levels have been determined.  Replacement level for starting pitchers is .380 Win % and for Relievers is .470.  The next thing we do is we take the pitchers Win % and subtract replacement level to find “% above replacement).
% Above Replacement = Win % - .380 (or .470 for relievers)
Strasburg
Home: .233
Road: .263

PART 6 – Final Calculations
We’re finally at the end of all the gory mathematical details, as Russell Carleton would say. There is just one last calculation to calculate WAR.  One simple calculation finishes the entire process. The last calculation factors in Innings pitched and % above replacement.
Wins Above Replacement = ( % Above Replacement * Innings pitched ) / 9
Strasburg
Home: 2.0 WAR
Road: 2.4 WAR
Total WAR: 4.4

And with that, we have reached the end. While not a completely original take on WAR, there are some ideas floating in my mind for experimenting and tinkering with the formula and methodology. I put in a lot of time on this (I do not know how to database unfortunately) and there was a lot of raw number inputting, so there may be the odd calculation error just due to the sheer magnitude of manually calculating data. Fangraphs doesn’t provide Home Start / Home Relief splits so Start / Relieving stats had to be separated manually.  So there is an element of error.  If someone with database ability or splits ability is willing to offer some help with this it would be majorly appreciated!

Monday, 6 May 2013

J.P. Arencibia And The Hidden Improved Approach


                In the dreary start to the Blue Jays 2013 season, one of the few bright spots has been the ridiculous and completely unsustainable power surge by Jonathan Paul Arencibia. Along with the power comes the strike outs and lack of walks, as expected, but yet Arencibia’s approach has been better this season.
                At this point you must be thinking I’m absolutely fucking nuts, and that might be fair. Arencibia has a 35.9% strikeout rate and a 1.7% walk rate, both worse than his already poor career numbers. It is early in the season and even as quickly as strikeout and walk rates normalize, there is reason to believe that J.P. has made some strides at the dish.
                Arencibia will always strike out at a high rate due to a long swing that does have some exploitable holes, but if he can avoid digging himself into holes by swinging at bad pitches there is a chance that he can lessen the his strikeout issues and perhaps hit for a higher average. To show some of the improvements I’ve seen in his approach I’m going to link to the tables below.



This strikezone map shows JP’s swing rate over his career. The first thing I want to focus on is the number of pitches down and away that he swings at.

Career Swing Percentages For J.P. Arencibia

Between 2011 and 2012 In that quartet of zones, JP swung at 473 of 946 pitches, exactly 50%. So far in 2013, JP has swung at only 48 of 129 pitches down and away, or 37.2%. It is a small sample size, but that is a fairly sizeable adjustment. When it comes to just breaking pitches, he is swinging at 39.5% of the time, compared to 44.2% in 2011 and 2012.

J.P. Arencibia Swing Percentages In Strike Zone

While all of this is just a small sample, overall his swing rates within the strike zone seem to be with pitches in better locations, but time will tell if this approach change keeps up. The above chart shows his swing rate in the zone for 2013 and for his career. 2013 is on the left, while his career rates are on the right. One of the big reason’s for Edwin Encarnacion’s strides last season was the fact that he was more selective within the strike zone, and it appears so far that Arencibia has been doing something similar so far, though his approach still leaves a lot to be desired.


Friday, 23 November 2012

Platooning Colby Rasmus

Colby Rasmus has been a Blue Jay for nearly a year and a half now and other than him being streaky, one other thing has been realized, he cannot hit Left Handed Pitching.  Rasmus has posted a career wRC+ of 72 vs. LHP including his outlier 2010 season where he posted a 122 mark. His other 3 MLB seasons have been seasons of 25 (2009), 88 (2011) and 52 (2012).  This is not to say he's a RHP masher either though (career 107 wRC+).

Rasmus doesn't do anything particularly well vs. LHP, as it isn't a case where he posts awful slugging numbers but good on base.  His triple slash vs. LHP is .206/.285/.341 despite his walk and strikeout rates not really changing.  His line drive rate drops nearly 4 % from RHP to LHP and ground ball rate shoots up 8%.

What I'm proposing right here and now is a platoon between Rasmus and ... wait for it... Maicer Izturis.  With Rasmus out of the lineup Emilio Bonifacio would slide into CF and Izturis would fill in at second base.  There would be little defensive difference between Bonifacio and Rasmus in CF (both are average defenders) and Izturis may be a slight defensive upgrade at second over Bonifacio.

Maicer Izturis hasn't posted incredible results vs. LHP with only a 90 wRC+ for his career, but does get on base at a solid rate (.333 career OBP).  While Rajai Davis has produced better against LHP for his career (108 wRC+), the loss of defense in CF would be huge and I feel that the loss of defense outweighs the offensive gain. Also, Davis would then be free to pair with Lind as a platoon partner (assuming no other RHB bench bats were brought in).

Given the power of the lineup already at hand, Izturis seems like a great fit at the bottom of the order with solid OBP helping to set the table for the secondary power hitters. Given the current personnel, I could see a batting order vs. LHP look like this.  Personally, I like the Idea of stretching out the order by building the second half of the order as you would the first.  Lawrie hitting behind EE could offer some protection as well.

It could be that platooning Colby isn't something to do right away, after all he is only 26, and has lots of potential. On the other hand though, the Blue Jays could be in the hunt nearing the middle of the season and if Colby continues to struggle vs. LHP, the prospect of potential may have to take a back seat to getting production out of the lineup, and in that case a platoon would be a great idea.

Wednesday, 21 November 2012

Don't Call It A Fire Sale

After announcing John Gibbons as the new Blue Jays manager, Alex Anthopoulous made an appearance on Prime Time Sports with Bob McCown and Stephen Brunt and gave arguably his most candid interview since he became the Blue Jays GM.  The usual character who said much, yet said nothing, was no where to be found.  Anthopoulos talked about the Marlins trade, and bring back John Gibbons.  

Of course the deal with the Marlins was the big topic of the day, and Anthopoulos went into surprising detail about how the trade went down.  It started with Anthopoulos asking about Josh Johnson and feeling the Marlins asking price was too high and it just went from there. Then came Buehrle and Reyes, with AA tossing Bonifacio in with every trade proposal before the Marlins finally relented and offered up Bonifacio. The last sticking point ended up being Jeff Mathis for John Buck, which may not seem like a big deal (especially with the Jays receiving 4.5 million to offset salaries) but Mathis provides so much to a team that doesn't show up in the numbers, but finally Anthopoulos relented and the deal was completed.  I love the fact that Anthopoulos had A) The common sense not to let Mathis hold up trade and B) Considers loyalty when it comes to a situation like this. The Jays do not wish to become the Marlins. This was not a fire-sale by Miami where everyone was on the block. Anthopoulos worked at this and talked them into parting with them, contrary to popular belief according to what Alex was saying.

Anthopoulos gushed about Gibbons and his baseball mind, but the one thing that stood out was the great working relationship they have.  In the present where analytic reports are becoming a larger and larger part of the game, it's an extremely underrated part of dealing with a front office. Gibbons is someone who can understand and act upon what the data says, and thus relieves tension between front office and those on the field.  Alex had always thought about Gibbons for some sort of role with the club, but until he talked with him on Sunday, he didn't realise how much sense Gibbons made for this team at this time.  He also said that hiring Gibbons is the most confident he's been in a transaction he's made.

As someone who believed Gibbons got a raw deal in his first sting as manager when he was fired, this pleased me greatly that Anthopoulos would have the openness to go back to the past.  Alex knows more about what happened in that club house and with J.P. Riccardi then any of us will ever know, and I believe that knowledge had some impact on his ability make this move with Gibbons and feel supremely confident in it.

Lastly, Anthopoulos admits that he's made moves based on optics before rather then his gut and that those are his biggest regrets. The fact that he may be over that, shown by the hiring of Gibbons and signing of Melky Cabrera, shows some definite growth in his ability as a GM.  

Its been a huge week for the Blue Jays and its only November, What does the rest of the off season have in store?

Looking For: Right Handed Platoon bat.


            After a lengthy twitter discussion with bluejaysbatboy and gosensgo101 (follow them), discussing the Jonny Gomes platoon option with Lind (and the subsequent Gomes to Red Sox signing), it felt like a good time to look at platoon options.

            If you follow me on twitter, you likely saw the discussion and know that I am against a DH only type sitting on the bench in the RHB part of the platoon. That means for me, if someone is going to be on the bench, they have to be able to do more then just DH.  Some of my favourite options are Cody Ross, Scott Hairston, Reed Johnson, and Delmon Young (surprisingly).

            All of these players (save Young) can play passable OF defense. And Young is a better defender then Jonny Gomes which says more about Gomes then Young.  Ross has a career 141 wRC+ vs. LHP, Hairston has a career 119 wRC+, Delmon Young has a 125 wRC+ vs. LHP, Reed Johnson has a career 119 wRC+ vs. LHP.

            My order of preference is obviously Ross number one overall, then Reed Johnson due to his ability to play all 3 OF spots. Hairston is 3rd on my list and ahead of Delmon Young because, well he isn't Delmon Young.  Lastly is Delmon Youn who is a last resort to me, but if he does 1 thing well, its hit lefthanders.

            Reed Johnson was part of one of the better platoons in the last while when, SURPRISE, John Gibbons paired him with Frank Catalanotto and the due posted fantastic overall results combining to OPS well over .800 as a duo. Gibbons coming back opens up this option, as he’s used platoons in the past to great success. I honestly couldn't be any more excited at the prospect of maximizing value in this way. 

Tuesday, 20 November 2012

An Open Letter to J.P. Arencibia


            Hey JP, it’s me, one of those “haters” you like to refer to.  To start things off, I’d just like to get it out there that I don’t hate you.  I actually find many of your tweets quite humourous and I also greatly appreciate your involvement with the community doing charity work.
           
As for your abilities as a baseball player, I think you are a good player who has a lot of value, as do most of the fans you label “haters”.  The reason we are bringing you up in trade rumors is that we think that you have enough valuable to fill another position of need.  You like to deal from a position of strength and Catcher is strength on this team.  Given John Buck’s contract and Travis d’Arnauds top prospect status, we feel that you can get the most value to help out the Blue Jays in a trade. It is no slight to you that we believe in Travis d’Arnaud, all the things that we hear say and influence our thoughts and opinions.  Despite knowing that there is no such thing as a sure-fire prospect, we believe in his ability.  It is not that we don’t believe in yours, but we just feel that he can be a rare talent.  Once again, this is not meant as a slight, you are a talented and will have a long career.

As I said, it just boils down to the fact that we think you can greatly help this team, just maybe as a part of an equation to add a piece.  No matter what happens, trade or not, we will support you and we will believe.  I would also like to apologize for those who have been tweeting you asinine comments. You don’t truly deserve that.  Twitter searching your own name though will lead to fan concocted rumors. These are just fans looking at ways to improve the team, they aren’t out there to insult you or push you off the ship.  As fans, this is what we do, we speculate and look at ways to improve the team.  If you are traded, I can guarantee that we will be sad, even if we really like what we get in return, because we do appreciate the players who come to the Jays and have a great attitude and work hard. It really is nothing personal JP.
It’s going to be a good year.

Signed,
Jays fans who speculate.