Monday, December 24, 2012

Best Lineup - Los Angels of Anaheim


In my previous post I used my baseball simulator to look at the best lineup for the Cincinnati Reds vs both a LH/RH pitcher.  Up at the plate this time are the Angels.  Keep in mind that the input projections I am using are from Bill James and the input projections go a long ways in determining which lineup is the best.  What you will see with the Angels, which may look odd to some people, is the placement of their catcher Chris Iannetta in the lineup.  Iannetta is one of those players with unspectacular statistics but he has put up some pretty impressive OBP numbers.  Let's take a look at the results and then analyze a little bit what is going on.

Sunday, December 23, 2012

Best Lineup - Cincinnati Reds

Moving on a little bit from my series on where to bat your best and worst hitters, I am taking a look at the best lineup for an actual team. In this post I will be looking at the best lineup for the Cincinnati Reds, when they are facing both a right handed (RHP) and left handed (LHP) pitcher.   I am using my baseball simulator that I wrote in C language, which takes pretty much everything that you can model in to consideration.  Keep in mind I did not run every single permutation of lineups but it is very easy to narrow things down to the best lineup with some experience of doing this.

I used the lineups at MLBDepthCharts as my baseline as far as the lineup "to beat" and who the actual starters would be against both RH and LH pitchers.  For input projections I used the Bill James projections for each player available at Fangraphs.  I played the Reds as the visiting team, against an imaginary team of players that I kept constant and an imaginary set of starting and relief pitchers for both teams.  This gives a WOWY (with or without you) sense to this exercise.  All I did was run simulations (1 million of them) with different sets of lineups, keeping everything else constant.  Below are the best lineups that I could find for the Reds against both a left handed and right handed pitcher.

Wednesday, December 19, 2012

Where To Bat Your Best Hitter - Part V


Same exercise as before.  I am using my baseball simulator to find out what it thinks are the best lineup constructions.  The only twist, is that I am not inputting normal 9 person lineups in to it.  I am for the most part entering two person lineups, with one person taking 8 lineup spots and the other person taking 1.  I then switch roles between the two players with the other batting 8 times.  I am running each game one million times in order to keep the noise down to a minimal level.

In the latest exercise I was asked to run some simulations using players with extreme OBP and SLG% numbers.  So what I did was dig through the past two seasons of stats over at Fangraphs and came up with the following combinations of players that I am going to look at.  There is a lot of data here, so I leave the analysis to the reader for the time being.

They are...
Low OBP/Low SLG: Paul Janish
Low OBP/High SLG: Mark Trumbo
High OBP/Low SLG: Jamey Carroll
High OBP/High SLG: Miguel Cabrera
High OBP/Reasonable SLG: Derek Jeter

From this list here are the combinations I ran.

Janish(8) + Trumbo(1) / Trumbo(8) + Janish(1)
Janish(8) + Cabrera(1) / Cabrera(8) + Janish(1)
Janish(8) + Carroll(1) / Carroll(8) + Janish(1)
Carroll(8) + Trumbo(1) / Trumbo(8) + Carroll(1)
Trumbo(8) + Cabrera(1) / Cabrera(8) + Trumbo(1)
Carroll(8) + Cabrera(1) / Cabrera(8) + Carroll(1)
Jeter(8) + Trumbo(1) / Trumbo(8) + Jeter(1)
Jeter(8) + Cabrera(1) / Cabrera(8) + Jeter(1)

And now for the results...

Sunday, December 16, 2012

Where To Bat Your Best Hitter - Part IV


Next up in my lineup construction exercise, I am going to look at two things.  The first, will be a team with eight Albert Pujols' and one pitcher.  The pitcher will be moved from the first spot in the lineup through each spot, all the way down to the last spot in the lineup.  The second, will be a team with one Albert Pujols and eight pitchers.  Once again, we are not worrying about defense, only about offense and how many games are won.  Everything else is kept constant.

Let's take a look at the results...

Where To Bat Your Worst Hitter - Part III


Now let's turn upside down what we did in Part I where we had 1 Pujols and 8 Bourns.  This time we look at a lineup with 8 Pujols' and 1 Bourn.  Again we have 9 possible permutations.  Let's see which lineup wins the most games.

Where To Bat Your Best Hitter - Part II


In Part I of this exercise I looked at the best lineup construction for a team that had one Albert Pujols and eight Michael Bourn's.  I then plugged these lineups, using Bill James player projections into my baseball simulator.  The lineup that won the most games had Albert Pujols batting third.

In the next step of this exercise I replaced one of the Michael Bourn's with another Albert Pujols.  What lineup with two Albert Pujols' in it would win the most games?  Logic would tell you that one of the Albert Pujols' should be batting third, right?  If so, then where would you slot in the second Pujols?  Let's take a look at the 36 total permutations of lineups and see which ones did best.  Once again, one million games were simulated.

Friday, December 14, 2012

Where To Bat Your Best Hitter - Part I


In this exercise I use my simulator to determine where to bat your best hitter in the lineup... but with a twist.  I am taking a team of nine hitters, eight of which are a typical speedy leadoff hitter (in this case I am using Michael Bourn) and the ninth is Albert Pujols.  Throw defense out the window in this exercise, just look at which lineup construction with eight Bourn's and one Pujols' would win you the most games.

There are only nine different permutations.  Pujols can bat anywhere from leadoff to ninth in these lineups.  Which slot do you think would be the best place to put Pujols.  My simulator takes in to consideration all offensive traits (hitting, speed) with the hitting projections coming from Bill James projections which are the only ones out at this point.

Results after the jump....

Best Lineup vs RHP


So, the Angels just signed Josh Hamilton to a new five year deal.  Now, it is time to take a look at what the most efficient lineup should be.  Today I tackle that exercise in a look at how the Angels sluggers should be stacked up against your typical right handed pitcher.

To do this, I am whipping out my simulator which plays actual baseball games using sabermetric principles.  Each worthy lineup will be simulated one million times in a game against an opponent that remains constant, with a right handed pitcher.  The Angels will be the away team in all these simulations to give them at least nine innings of at bats in each game.  I picked a group of opponents such that the game results are close to 50% wins and losses for the Angels.

I used the starting nine players as listed at the Angels MLB Depth Charts page.  The measurement to determine the best lineup will be number of wins out of a million games.  Now, I did not try every single permutation of possible lineups so the exercise is not totally complete but after you play around with switching the lineups around you can quickly narrow down the best ones.  Bill James 2013 player projections were used for input.

Below is the best lineup that I found.

1) Mike Trout
2) Josh Hamilton
3) Albert Pujols
4) Kendrys Morales
5) Mark Trumbo
6) Erick Aybar
7) Howie Kendrick
8) Alberto Callaspo
9) Chris Iannetta

This lineup won 523636 out of one million games.  For reference the lineup that MLBDepthCharts provides with Aybar hitting second, Hamilton 4th with Morales and Trumbo pushed down one slot wins a total of 522341 games.  The question then becomes, how significant is this?  Over a 162 game season, this would net the Angels an extra 0.21 wins.  This is obviously an amount not worth fretting over.  The big differences come when you totally screw around with the lineup which not even Scoscia would dare do.

Here is a breakdown of how the box score broke down for this lineup.

NameABHitsH1H2H3HRRBIRUNSBBSOwOBA
Mike Trout4.3441.1440.7240.1950.0470.1790.4750.2850.4101.2460.339
Josh Hamilton4.2011.0350.5630.2170.0130.2420.6330.1890.4661.4990.344
Albert Pujols4.1011.1560.6430.2950.0000.2170.6600.1800.4520.6400.372
Kendrys Morales4.2171.0940.6790.2500.0070.1590.5560.1400.2601.0740.319
Mark Trumbo4.1350.9610.5540.2000.0090.1980.5240.1440.2181.2840.300
Erick Aybar4.0361.0590.7710.2150.0310.0430.2890.2010.2030.6400.292
Howie Kendrick3.9560.9820.6530.2490.0120.0680.3640.1590.1611.0450.283
Alberto Callaspo3.6700.9600.6890.2060.0130.0510.3350.1490.3460.5100.310
Chris Iannetta3.4750.7100.4150.1650.0050.1250.3840.1280.4351.1910.292