Showing posts with label Lineups. Show all posts
Showing posts with label Lineups. Show all posts

Monday, March 02, 2015

Oakland Athletics - 2015 Most Optimal Lineups

There are many ways people attempt to determine the best batting order.  Some people try to arrange high on base percentage people at the top of the lineup followed by sluggers and then the rest of the crew and slap on a pitcher batting 9th (NL Team) and you are good to go.  Others try calculators where you enter in player stats and out pops the best lineups.  These are all fun and probably get you part of the way there but they are in NO WAY scientific enough to make much of a claim to what the top lineups might be.

The best way (in my opinion) to determine which lineup is the best is to actually trot out every single lineup and see which one wins the most games.  Of course you would have to hold the opponent constant, using the same starters, lineup and starting pitcher.  How hard could that be to do?  Let's see, with nine batters in a lineup you would only have 362,880 lineups to go through.  How long could that take to play over 350,000 baseball games.  You could probably filter those permutations down to 25,000 or so by limiting left handed batters from hitting back to back, limiting the pitcher (NL) to batting either 8th or 9th, plus a few other obvious things.  Even if you could narrow things down to just two lineups, you would still need to play more than one game to determine which one was better.  So how many samples/games would you need?  10? 20? or maybe an entire season (162) of games?  No.  You would need a lot more than that.  Try tens of thousands just to separate the bad lineups from the good and then try a million or two to compare the best lineups.

Well, I think it is pretty impossible to play thousands of games one time or a couple of games a million times.  Hypothetically, if one were able to play games with thousands of different lineups, thousands or millions of times against the exact same opponent then you would get a very good idea as to which lineups were the best.  This is where simulation comes in handy.  A simulator that could play actual baseball games, by actual baseball rules, taking into consideration the important facets of a real baseball game like speed, defense, pitchers getting tired the more pitches they throw, splits, hitter vs pitcher matchups and outcomes and throw in some good player projections like the ones available for free at Fangraphs and then maybe through the power of the computer you could plow through tens of thousands of likely lineups to determine the best ones.

Now, you would be able to test the synergy of batting certain groups of players next to each other.  You would be able to experiment with various types of hitters hitting in different spots.  In fact, you could just let the computer run through each lineup and let you know what the top ones were, even tabulating how many times each player showed up at each spot in the top lineups.  Now you would have a good list of top lineups and be able to measure how many wins a manager might be leaving on the table by using the lineup(s) that he used.  Wouldn't it be very worthwhile for a team to know what its best lineups might be?  Of course it would, especially considering that on the free agent market one win (or WAR) is typically worth around $7M.  For managers that might not want to hit certain batters in certain lineup spots for whatever reason, he could use the filtering option to only measure lineups that fit his parameters.

Well, now on to what my game simulator using Steamer hitting projections lists as the top fifty lineups for the 2015 Oakland Athletics.  I only looked at lineups against a right handed starting pitcher and took the nine most likely starters from the list at the Roster Resource website and I have of course used their most common lineup as one of the many (10,000+) lineups that I am looking at.  Along with the top fifty lineups, there is a table showing how many times each player shows up in each lineup spot and what the most common back to back slottings are as well as back to back to back slottings (think synergy here).

Summary:
The batting order frequency table tells a lot here.  If you were to piece together a lineup from only the frequency table you would likely come up with what is the second ranked optimal lineup.  The lineup listed from the Roster Resource website came in listed 34th.  I've ran a few of these now for various teams and the Athletics seem to have a very balanced lineup with no one player way better than the others not causing much of a spread between the top lineups.  I also purposely added a bad lineup to the bottom of the top 50 list just to see what the maximum spread for the team looks like.  According to the simulator, there are not a lot of wins for the Athletics manager to leave on the table vs RHP compared to some of the other teams.

                                          Top 50 Lineups (vs RHP)
RankLineupWins/162 Games Behind
1Zobrist-Reddick-Lawrie-Davis-Crisp-Semien-Vogt-Butler-Fuld0
2Crisp-Reddick-Lawrie-Davis-Zobrist-Vogt-Semien-Butler-Fuld0.001
3Reddick-Crisp-Lawrie-Davis-Zobrist-Vogt-Semien-Fuld-Butler0.016
4Crisp-Vogt-Lawrie-Davis-Zobrist-Reddick-Semien-Butler-Fuld0.042
5Zobrist-Fuld-Lawrie-Reddick-Crisp-Vogt-Semien-Butler-Davis0.067
6Crisp-Vogt-Lawrie-Davis-Zobrist-Semien-Fuld-Butler-Reddick0.093
7Fuld-Crisp-Butler-Davis-Zobrist-Reddick-Lawrie-Vogt-Semien0.094
8Davis-Zobrist-Lawrie-Reddick-Crisp-Vogt-Semien-Fuld-Butler0.103
9Reddick-Semien-Lawrie-Davis-Crisp-Fuld-Zobrist-Vogt-Butler0.107
10Zobrist-Reddick-Lawrie-Davis-Semien-Crisp-Vogt-Butler-Fuld0.108
11Lawrie-Crisp-Davis-Zobrist-Reddick-Semien-Vogt-Butler-Fuld0.108
12Semien-Davis-Lawrie-Reddick-Crisp-Fuld-Zobrist-Vogt-Butler0.109
13Zobrist-Reddick-Lawrie-Davis-Crisp-Fuld-Butler-Vogt-Semien0.117
14Crisp-Reddick-Lawrie-Davis-Semien-Zobrist-Fuld-Butler-Vogt0.123
15Zobrist-Crisp-Reddick-Lawrie-Davis-Semien-Fuld-Butler-Vogt0.14
16Semien-Davis-Lawrie-Reddick-Zobrist-Crisp-Vogt-Butler-Fuld0.141
17Semien-Fuld-Butler-Davis-Zobrist-Reddick-Lawrie-Crisp-Vogt0.146
18Zobrist-Reddick-Lawrie-Davis-Crisp-Vogt-Semien-Fuld-Butler0.146
19Reddick-Crisp-Davis-Zobrist-Lawrie-Vogt-Semien-Fuld-Butler0.152
20Fuld-Crisp-Butler-Davis-Semien-Reddick-Lawrie-Vogt-Zobrist0.156
21Zobrist-Fuld-Lawrie-Davis-Crisp-Vogt-Semien-Butler-Reddick0.156
22Reddick-Zobrist-Davis-Lawrie-Crisp-Vogt-Semien-Fuld-Butler0.159
23Crisp-Butler-Reddick-Lawrie-Davis-Semien-Vogt-Zobrist-Fuld0.175
24Reddick-Crisp-Davis-Lawrie-Zobrist-Vogt-Semien-Fuld-Butler0.181
25Fuld-Crisp-Lawrie-Davis-Zobrist-Reddick-Semien-Vogt-Butler0.191
26Reddick-Zobrist-Lawrie-Davis-Semien-Fuld-Crisp-Vogt-Butler0.192
27Crisp-Zobrist-Reddick-Lawrie-Davis-Semien-Fuld-Butler-Vogt0.192
28Crisp-Davis-Lawrie-Reddick-Zobrist-Vogt-Semien-Butler-Fuld0.195
29Crisp-Fuld-Lawrie-Reddick-Zobrist-Semien-Vogt-Butler-Davis0.204
30Crisp-Semien-Davis-Lawrie-Reddick-Zobrist-Fuld-Butler-Vogt0.209
31Crisp-Fuld-Lawrie-Davis-Zobrist-Reddick-Butler-Semien-Vogt0.210
32Crisp-Zobrist-Davis-Lawrie-Fuld-Semien-Vogt-Butler-Reddick0.213
33Semien-Fuld-Lawrie-Reddick-Zobrist-Crisp-Vogt-Butler-Davis0.214
34Reddick-Crisp-Davis-Zobrist-Vogt-Lawrie-Semien-Fuld-Butler0.218
35Crisp-Zobrist-Reddick-Butler-Davis-Lawrie-Vogt-Semien-Fuld0.221
36Reddick-Zobrist-Davis-Lawrie-Fuld-Semien-Crisp-Vogt-Butler0.222
37Crisp-Davis-Butler-Reddick-Zobrist-Lawrie-Vogt-Semien-Fuld0.236
38Semien-Davis-Zobrist-Reddick-Crisp-Vogt-Lawrie-Fuld-Butler0.238
39Crisp-Vogt-Lawrie-Davis-Semien-Butler-Reddick-Zobrist-Fuld0.242
40Crisp-Zobrist-Reddick-Lawrie-Vogt-Semien-Fuld-Butler-Davis0.244
41Zobrist-Reddick-Lawrie-Davis-Crisp-Fuld-Butler-Semien-Vogt0.248
42Crisp-Butler-Reddick-Lawrie-Davis-Zobrist-Vogt-Semien-Fuld0.257
43Lawrie-Fuld-Butler-Davis-Crisp-Zobrist-Vogt-Semien-Reddick0.258
44Crisp-Reddick-Lawrie-Davis-Semien-Fuld-Butler-Zobrist-Vogt0.260
45Davis-Zobrist-Reddick-Lawrie-Fuld-Crisp-Vogt-Semien-Butler0.263
46Crisp-Fuld-Butler-Davis-Lawrie-Reddick-Semien-Vogt-Zobrist0.267
47Crisp-Reddick-Butler-Davis-Semien-Zobrist-Fuld-Lawrie-Vogt0.283
48Fuld-Semien-Lawrie-Davis-Crisp-Reddick-Zobrist-Vogt-Butler0.284
49Crisp-Vogt-Zobrist-Davis-Lawrie-Reddick-Semien-Butler-Fuld0.294
50Crisp-Reddick-Butler-Davis-Zobrist-Lawrie-Vogt-Semien-Fuld0.294
BADVogt-Butler-Fuld-Crisp-Semien-Davis-Zobrist-Reddick-Lawrie1.419
.
.
             Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Crisp21900134210
Reddick8107929104
Lawrie20251134410
Davis2582650004
Zobrist8923155332
Vogt040021114109
Semien53007101582
Butler02810141915
Fuld4800367814
.
.

                    Synergy


   Back to Back Frequency Leaders
RankOccurrencesPlayer 1Player 2
122LawrieDavis
220VogtSemien
320SemienFuld
420FuldButler
518ReddickLawrie
617CrispVogt
717DavisZobrist
816ZobristReddick
915ButlerReddick
1015FuldCrisp
1114ButlerDavis
1213VogtButler
1312ReddickZobrist
1411DavisLawrie
1511DavisSemien
1611ZobristVogt
1710ReddickCrisp
1810LawrieReddick
1910DavisCrisp
2010ButlerFuld

     Back To Back to Back Frequency Leaders
RankOccurrencesPlayer 1Player 2Player 3
113VogtSemienFuld
213SemienFuldButler
312ReddickLawrieDavis
410ZobristReddickLawrie
58LawrieDavisSemien
68DavisZobristReddick
77CrispVogtSemien
87LawrieDavisCrisp
97LawrieDavisZobrist
106LawrieVogtSemien
116DavisLawrieReddick
126ZobristVogtSemien
136VogtButlerFuld
146SemienFuldCrisp
156ButlerReddickCrisp
166ButlerReddickZobrist
176ButlerDavisZobrist
186FuldButlerReddick
195CrispVogtButler
205LawrieReddickZobrist
.
.

Wednesday, February 25, 2015

Miami Marlins - 2015 Most Optimal Lineups

.
I am using my simulator that plays actual baseball games to find what it believes are the most optimal lineups for the 2015 Miami Marlins (vs RHP).  I started out with 15,000 almost random lineups and I slowly widdled it down to the top 50 lineups.  Almost random, because I filtered out some obvious things like batting Stanton 8th or 9th or Dee Gordon cleanup etc...  For the starting nine players, I used the projected starting lineup from MLB Depth Charts The top 50 lineups all came within 0.85 wins per 162 games which is a pretty wide range for a top 50 lineup list.  When you start nearing a full win differential with the top lineup then you definitely have problems and the projected lineup from MLB Depth Charts finished 1.65 wins/162 games behind (not good).  You will see a few lineups that may seem strange in a most optimal list but keep in mind the simulator does not take into account psychological factors, such as rookies not being allowed to hit near the top of the lineup.  The simulator just takes the Steamer projection inputs along with a speed rating for base running and gives you the best lineups.  The simulator is a program that I wrote in C/C++ and I have back tested it against Vegas odds in the past to make sure it is good.  The program plays actual games, with actual baseball rules and takes pretty much everything you can think of into consideration.  This exercise is NOT trying to project what lineups the Marlins manager might or will actually use it is just outputting what it thinks are the best lineups.  Once down to the top fifty lineups, I simulated each lineup 2 million times which eliminated a large portion of the random noise and I did so only against a right handed pitcher.  Below are a list of the top 50 lineups and a batting order spot frequency table, where you can see how many times each player appeared in each of the top 50 lineups.

                                                             Top 50 Lineups
RankLineupWins/162 Games Behind
1Yelich-Gordon-Prado-Stanton-Ozuna-Morse-Salta-Pitcher-Hechavarria0
2Gordon-Yelich-Prado-Stanton-Morse-Ozuna-Salta-Pitcher-Hechavarria0.232
3Yelich-Gordon-Prado-Stanton-Morse-Ozuna-Salta-Pitcher-Hechavarria0.250
4Gordon-Yelich-Prado-Stanton-Ozuna-Hechavarria-Morse-Salta-Pitcher0.308
5Gordon-Yelich-Prado-Ozuna-Stanton-Morse-Salta-Pitcher-Hechavarria0.359
6Yelich-Gordon-Prado-Stanton-Ozuna-Morse-Hechavarria-Salta-Pitcher0.374
7Yelich-Gordon-Prado-Stanton-Ozuna-Hechavarria-Salta-Pitcher-Morse0.384
8Yelich-Gordon-Prado-Ozuna-Stanton-Morse-Salta-Pitcher-Hechavarria0.386
9Gordon-Yelich-Stanton-Prado-Ozuna-Morse-Salta-Pitcher-Hechavarria0.392
10Yelich-Gordon-Stanton-Prado-Ozuna-Morse-Salta-Pitcher-Hechavarria0.438
11Gordon-Yelich-Prado-Stanton-Ozuna-Morse-Hechavarria-Salta-Pitcher0.443
12Gordon-Yelich-Prado-Stanton-Ozuna-Hechavarria-Salta-Pitcher-Morse0.448
13Ozuna-Gordon-Prado-Stanton-Yelich-Hechavarria-Morse-Salta-Pitcher0.491
14Yelich-Gordon-Prado-Morse-Stanton-Ozuna-Salta-Pitcher-Hechavarria0.498
15Gordon-Prado-Yelich-Stanton-Ozuna-Morse-Salta-Pitcher-Hechavarria0.525
16Gordon-Yelich-Prado-Morse-Stanton-Ozuna-Salta-Pitcher-Hechavarria0.541
17Yelich-Gordon-Stanton-Prado-Morse-Ozuna-Salta-Pitcher-Hechavarria0.543
18Gordon-Hechavarria-Prado-Stanton-Yelich-Ozuna-Morse-Salta-Pitcher0.546
19Yelich-Gordon-Stanton-Prado-Ozuna-Hechavarria-Morse-Salta-Pitcher0.553
20Yelich-Gordon-Stanton-Prado-Ozuna-Hechavarria-Salta-Pitcher-Morse0.574
21Gordon-Prado-Stanton-Yelich-Ozuna-Morse-Salta-Pitcher-Hechavarria0.584
22Gordon-Ozuna-Prado-Stanton-Yelich-Morse-Salta-Pitcher-Hechavarria0.584
23Yelich-Gordon-Prado-Stanton-Morse-Hechavarria-Ozuna-Salta-Pitcher0.594
24Gordon-Prado-Stanton-Ozuna-Yelich-Morse-Salta-Pitcher-Hechavarria0.605
25Gordon-Yelich-Ozuna-Prado-Stanton-Morse-Salta-Pitcher-Hechavarria0.613
26Gordon-Prado-Ozuna-Stanton-Yelich-Morse-Salta-Pitcher-Hechavarria0.633
27Gordon-Yelich-Stanton-Prado-Ozuna-Hechavarria-Morse-Salta-Pitcher0.641
28Gordon-Yelich-Morse-Prado-Stanton-Ozuna-Salta-Pitcher-Hechavarria0.642
29Gordon-Yelich-Prado-Stanton-Morse-Ozuna-Hechavarria-Salta-Pitcher0.648
30Gordon-Prado-Yelich-Stanton-Morse-Ozuna-Salta-Pitcher-Hechavarria0.652
31Ozuna-Gordon-Prado-Stanton-Yelich-Morse-Hechavarria-Salta-Pitcher0.653
32Prado-Gordon-Yelich-Stanton-Ozuna-Morse-Salta-Pitcher-Hechavarria0.659
33Gordon-Hechavarria-Prado-Stanton-Yelich-Ozuna-Salta-Pitcher-Morse0.674
34Yelich-Gordon-Stanton-Prado-Ozuna-Morse-Hechavarria-Salta-Pitcher0.678
35Yelich-Gordon-Ozuna-Prado-Stanton-Morse-Salta-Pitcher-Hechavarria0.685
36Gordon-Morse-Prado-Stanton-Yelich-Ozuna-Hechavarria-Salta-Pitcher0.688
37Gordon-Yelich-Prado-Stanton-Morse-Hechavarria-Salta-Pitcher-Ozuna0.704
38Ozuna-Gordon-Prado-Yelich-Stanton-Morse-Salta-Pitcher-Hechavarria0.723
39Ozuna-Hechavarria-Prado-Stanton-Yelich-Gordon-Morse-Salta-Pitcher0.725
40Gordon-Morse-Prado-Stanton-Yelich-Ozuna-Salta-Pitcher-Hechavarria0.727
41Gordon-Yelich-Stanton-Prado-Ozuna-Morse-Hechavarria-Salta-Pitcher0.735
42Yelich-Gordon-Prado-Stanton-Ozuna-Morse-Hechavarria-Pitcher-Salta0.741
43Gordon-Prado-Morse-Stanton-Yelich-Ozuna-Salta-Pitcher-Hechavarria0.758
44Gordon-Yelich-Stanton-Ozuna-Prado-Morse-Salta-Pitcher-Hechavarria0.770
45Yelich-Gordon-Prado-Ozuna-Morse-Stanton-Salta-Pitcher-Hechavarria0.771
46Prado-Gordon-Stanton-Ozuna-Yelich-Morse-Salta-Pitcher-Hechavarria0.775
47Yelich-Gordon-Morse-Stanton-Prado-Ozuna-Salta-Pitcher-Hechavarria0.775
48Yelich-Gordon-Prado-Stanton-Ozuna-Salta-Morse-Pitcher-Hechavarria0.799
49Gordon-Yelich-Prado-Morse-Ozuna-Stanton-Salta-Pitcher-Hechavarria0.810
50Gordon-Hechavarria-Prado-Stanton-Ozuna-Yelich-Morse-Salta-Pitcher0.855
   
MLBDCGordon-Yelich-Stanton-Morse-Prado-Ozuna-Salta-Hechavarria-pitcher1.648
BADSalta-Hechavarria-Morse-Gordon-Ozuna-Prado-Yelich-Stanton-Pitcher4.400


                  Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Gordon27220001000
Yelich171532121000
Prado26291120000
Stanton00122882000
Ozuna41362014101
Morse0233822804
Salta00000133151
Hechavarria0400098029
Pitcher00000003515


                    Synergy


20 Most Common Back to Back Occurrences
RankOccurrencesPlayer 1Player 2
148SaltaPitcher
229PitcherHechavarria
327PradoStanton
423MorseSalta
519GordonPrado
618YelichGordon
717StantonOzuna
816GordonYelich
916HechavarriaGordon
1013OzunaMorse
1113OzunaSalta
1212PradoOzuna
1311StantonYelich
1411StantonMorse
1511HechavarriaSalta
1610HechavarriaYelich
179YelichPrado
189StantonPrado
199OzunaHechavarria
208YelichStanton
208MorseHechavarria
208PitcherGordon

20 Most Common Back to Back to Back Occurrences
RankOccurrencesPlayer 1Player 2Player 3
128SaltaPitcherHechavarria
223MorseSaltaPitcher
316PitcherHechavarriaGordon
412OzunaSaltaPitcher
511GordonPradoStanton
611PradoStantonOzuna
711HechavarriaSaltaPitcher
810YelichGordonPrado
910HechavarriaYelichGordon
1010PitcherHechavarriaYelich
119GordonYelichPrado
129PradoStantonYelich
138StantonPradoOzuna
148SaltaPitcherGordon
158HechavarriaGordonYelich
167PradoStantonMorse
177OzunaMorseSalta
186YelichPradoStanton
196StantonYelichOzuna
206StantonOzunaMorse
206MorseHechavarriaSalta
206HechavarriaGordonPrado
.
.

Sunday, February 15, 2015

Minnesota Twins - 2015 Most Optimal Lineups

.
I am using my simulator that plays actual baseball games to find what it believes are the most optimal lineups for the 2015 Minnesota Twins.  I started out with 25,000 almost random lineups and I slowly widdled it down to the top 50 lineups.  Almost random, because I filtered out some obvious things like batting Joe Mauer 8th or 9th etc...  For the starting nine players, I used the projected starting lineup from MLB Depth Charts The top 50 lineups all came within 0.35 wins per 162 games so really anything in that range is pretty good.  When you start nearing a full win differential with the top lineup then you definitely have problems and the projected lineup from MLB Depth Charts finished 0.59 wins/162 games behind (not bad).  You will see a few lineups that may seem strange in a most optimal list but keep in mind the simulator does not take into account psychological factors, such as rookies not being allowed to hit near the top of the lineup.  The simulator just takes the Steamer projection inputs along with a speed rating for base running and gives you the best lineups. This exercise is NOT trying to project what lineups the Twins manager might or will actually use it is just outputting what it thinks are the best lineups.  I typically simulated each lineup over 1 million times which eliminated a large portion of the random noise and I did so only against a right handed pitcher.  Below are a list of the top 50 lineups and a batting order spot frequency table, where you can see how many times each player appeared in each of the top 50 lineups.  The Twins have two left handed batters in the starting nine that I used.  For this exercise, I assumed that there was no restriction on batting the two left handed batters (Mauer, Arcia) back to back.  Obviously, if you add that restriction then 33 of these 50 lineups would be different.

                                               Top 50 Lineups (vs RHP)
RankLineupWins/162 Games Behind
1Santana-Mauer-Arcia-Vargas-Hunter-Plouffe-Hicks-Suzuki-Dozier0
2Santana-Mauer-Vargas-Arcia-Hunter-Plouffe-Hicks-Suzuki-Dozier0.013
3Santana-Mauer-Arcia-Vargas-Hunter-Dozier-Plouffe-Suzuki-Hicks0.018
4Santana-Mauer-Vargas-Arcia-Dozier-Suzuki-Plouffe-Hicks-Hunter0.027
5Santana-Mauer-Vargas-Arcia-Plouffe-Hunter-Hicks-Suzuki-Dozier0.033
6Dozier-Santana-Mauer-Arcia-Vargas-Hicks-Suzuki-Plouffe-Hunter0.048
7Santana-Mauer-Arcia-Vargas-Dozier-Hunter-Plouffe-Hicks-Suzuki0.055
8Santana-Mauer-Arcia-Vargas-Plouffe-Hicks-Hunter-Dozier-Suzuki0.061
9Hunter-Santana-Mauer-Arcia-Vargas-Dozier-Plouffe-Suzuki-Hicks0.087
10Santana-Mauer-Arcia-Vargas-Hunter-Hicks-Plouffe-Suzuki-Dozier0.097
11Dozier-Santana-Mauer-Arcia-Vargas-Hunter-Hicks-Suzuki-Plouffe0.101
12Hicks-Santana-Mauer-Vargas-Arcia-Hunter-Plouffe-Dozier-Suzuki0.105
13Dozier-Santana-Mauer-Arcia-Vargas-Hicks-Hunter-Plouffe-Suzuki0.106
14Dozier-Santana-Mauer-Vargas-Arcia-Plouffe-Hunter-Suzuki-Hicks0.109
15Dozier-Mauer-Vargas-Arcia-Hicks-Santana-Suzuki-Hunter-Plouffe0.113
16Santana-Mauer-Arcia-Vargas-Plouffe-Dozier-Suzuki-Hicks-Hunter0.117
17Santana-Mauer-Vargas-Arcia-Hicks-Suzuki-Plouffe-Dozier-Hunter0.119
18Santana-Mauer-Arcia-Vargas-Hicks-Plouffe-Dozier-Suzuki-Hunter0.120
19Santana-Hunter-Vargas-Mauer-Arcia-Dozier-Plouffe-Suzuki-Hicks0.123
20Santana-Vargas-Mauer-Arcia-Hunter-Dozier-Suzuki-Plouffe-Hicks0.136
21Santana-Suzuki-Mauer-Arcia-Vargas-Plouffe-Hunter-Dozier-Hicks0.143
22Hunter-Santana-Mauer-Vargas-Arcia-Plouffe-Hicks-Dozier-Suzuki0.147
23Santana-Hunter-Vargas-Mauer-Arcia-Dozier-Plouffe-Hicks-Suzuki0.151
24Hunter-Santana-Vargas-Mauer-Arcia-Plouffe-Hicks-Suzuki-Dozier0.155
25Santana-Vargas-Mauer-Arcia-Hicks-Suzuki-Hunter-Plouffe-Dozier0.160
26Santana-Mauer-Vargas-Arcia-Hicks-Dozier-Suzuki-Plouffe-Hunter0.161
27Santana-Hunter-Vargas-Mauer-Arcia-Plouffe-Dozier-Suzuki-Hicks0.183
28Hicks-Mauer-Vargas-Arcia-Dozier-Santana-Suzuki-Plouffe-Hunter0.186
29Hunter-Santana-Vargas-Mauer-Arcia-Plouffe-Suzuki-Hicks-Dozier0.193
30Santana-Mauer-Vargas-Arcia-Dozier-Suzuki-Hicks-Plouffe-Hunter0.197
31Santana-Vargas-Mauer-Arcia-Dozier-Hicks-Hunter-Plouffe-Suzuki0.200
32Santana-Vargas-Mauer-Arcia-Dozier-Hunter-Suzuki-Hicks-Plouffe0.209
33Santana-Mauer-Vargas-Hunter-Arcia-Plouffe-Dozier-Suzuki-Hicks0.211
34Hicks-Santana-Hunter-Mauer-Arcia-Vargas-Dozier-Suzuki-Plouffe0.222
35Santana-Vargas-Mauer-Arcia-Hicks-Plouffe-Hunter-Dozier-Suzuki0.226
36Dozier-Santana-Vargas-Mauer-Arcia-Plouffe-Suzuki-Hunter-Hicks0.229
37Santana-Vargas-Hunter-Mauer-Arcia-Hicks-Plouffe-Dozier-Suzuki0.230
38Arcia-Santana-Vargas-Mauer-Dozier-Hunter-Hicks-Suzuki-Plouffe0.231
39Santana-Hunter-Mauer-Arcia-Vargas-Hicks-Plouffe-Dozier-Suzuki0.236
40Santana-Mauer-Vargas-Dozier-Arcia-Hunter-Plouffe-Suzuki-Hicks0.242
41Santana-Hunter-Mauer-Arcia-Dozier-Vargas-Hicks-Plouffe-Suzuki0.242
42Santana-Suzuki-Mauer-Arcia-Plouffe-Vargas-Hunter-Dozier-Hicks0.247
43Santana-Hunter-Arcia-Mauer-Vargas-Plouffe-Dozier-Hicks-Suzuki0.254
44Santana-Dozier-Vargas-Mauer-Arcia-Hunter-Plouffe-Hicks-Suzuki0.263
45Hunter-Dozier-Mauer-Arcia-Vargas-Santana-Suzuki-Plouffe-Hicks0.272
46Dozier-Mauer-Arcia-Vargas-Santana-Hunter-Suzuki-Plouffe-Hicks0.277
47Santana-Suzuki-Mauer-Vargas-Hicks-Arcia-Plouffe-Dozier-Hunter0.282
48Dozier-Hicks-Mauer-Vargas-Arcia-Santana-Hunter-Suzuki-Plouffe0.290
49Hicks-Dozier-Vargas-Mauer-Arcia-Santana-Hunter-Plouffe-Suzuki0.299
50Santana-Hunter-Mauer-Arcia-Dozier-Vargas-Suzuki-Hicks-Plouffe0.345
......
MLBSantana-Dozier-Mauer-Vargas-Hunter-Plouffe-Arcia-Suzuki-Hicks0.587
BADSuzuki-Plouffe-Hicks-Dozier-Santana-Arcia-Vargas-Hunter-Mauer1.714
.
.
           Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Santana32120015000
Mauer018201200000
Arcia10923161000
Vargas06191384000
Hunter5721591029
Plouffe000041314127
Hicks4100779913
Suzuki030004121714
Dozier8301975107
.
.
Synergy

20 Most Common Back to Back Occurrences
RankOccurrencesPlayer 1Player 2
133MauerArcia
222SantanaMauer
316MauerVargas
416ArciaVargas
515DozierSuzuki
614VargasMauer
714PlouffeDozier
814SuzukiHicks
913PlouffeHicks
1013HicksSuzuki
1112VargasArcia
1212SuzukiPlouffe
1311SantanaHunter
1411HunterSantana
1511HunterPlouffe
1611PlouffeSuzuki
1711HicksSantana
1811DozierSantana
1910SantanaVargas
2010ArciaPlouffe
2010SuzukiSantana

20 Most Common Back to Back to Back Occurrences
RankOccurrencesPlayer 1Player 2Player 3
116MauerArciaVargas
213VargasMauerArcia
312MauerVargasArcia
411SantanaMauerArcia
511SantanaMauerVargas
69SantanaVargasMauer
78HunterSantanaMauer
88DozierSantanaMauer
97PlouffeDozierSuzuki
106MauerArciaDozier
116PlouffeHicksSuzuki
126PlouffeSuzukiHicks
136SuzukiHicksSantana
145MauerArciaPlouffe
155HunterMauerArcia
165SuzukiPlouffeHicks
175SuzukiDozierSantana
185DozierSuzukiHicks
194SantanaHunterMauer
204ArciaVargasHunter
.
.

Tuesday, February 10, 2015

Toronto Blue Jays - 2015 Most Optimal Lineups

.
I am using my simulator that plays actual baseball games to find what it believes are the most optimal lineups for the 2015 Toronto Blue Jays.  I started out with over 100,000 permutations of lineups and I slowly widdled it down to the top 50 lineups. For the starting nine players, I used the projected starting lineup from MLB Depth Charts The top 50 lineups all came within a half of a win per 162 games so really anything in that range is pretty good.  When you start nearing a full win differential with the top lineup then you definitely have problems.  You will see a few lineups that may seem strange in a most optimal list but keep in mind the simulator does not take into account psychological factors, such as rookies not being allowed to hit near the top of the lineup.bbThe simulator just takes the Steamer projection inputs along with a speed rating for base running and gives you the best lineups. Sure, the Blue Jays manager won't use many of these lineups because they might not be prototypical but that is not part of the exercise.  I typically simulated each lineup over 1 million times which eliminated a large portion of the random noise and I did so only against a right handed pitcher.  Below are a list of the top 50 lineups and a batting order spot frequency table, where you can see how many times each player appeared in each of the top 50 lineups.

                                                          Top 50 Lineups
RankLineupWins/162 Behind
1Saunders-Pompey-Encarnacion-Bautista-Reyes-Izturis-Donaldson-Navarro-Martin0.000
2Izturis-Reyes-Encarnacion-Bautista-Saunders-Martin-Donaldson-Pompey-Navarro0.030
3Reyes-Saunders-Bautista-Encarnacion-Martin-Donaldson-Navarro-Pompey-Izturis0.038
4Saunders-Reyes-Bautista-Encarnacion-Donaldson-Pompey-Navarro-Izturis-Martin0.058
5Reyes-Saunders-Encarnacion-Bautista-Donaldson-Pompey-Izturis-Navarro-Martin0.070
6Reyes-Saunders-Bautista-Encarnacion-Donaldson-Pompey-Izturis-Navarro-Martin0.077
7Saunders-Pompey-Encarnacion-Bautista-Reyes-Izturis-Donaldson-Martin-Navarro0.079
8Saunders-Reyes-Izturis-Bautista-Encarnacion-Donaldson-Navarro-Martin-Pompey0.106
9Martin-Reyes-Encarnacion-Bautista-Saunders-Donaldson-Navarro-Pompey-Izturis0.125
10Bautista-Reyes-Encarnacion-Donaldson-Saunders-Pompey-Izturis-Navarro-Martin0.148
11Saunders-Donaldson-Encarnacion-Bautista-Reyes-Izturis-Pompey-Navarro-Martin0.158
12Saunders-Reyes-Encarnacion-Bautista-Izturis-Pompey-Navarro-Donaldson-Martin0.175
13Saunders-Reyes-Bautista-Encarnacion-Donaldson-Navarro-Martin-Izturis-Pompey0.181
14Saunders-Reyes-Izturis-Encarnacion-Bautista-Pompey-Navarro-Donaldson-Martin0.186
15Reyes-Saunders-Donaldson-Encarnacion-Bautista-Pompey-Navarro-Martin-Izturis0.197
16Pompey-Reyes-Izturis-Bautista-Encarnacion-Saunders-Donaldson-Navarro-Martin0.199
17Reyes-Encarnacion-Martin-Bautista-Saunders-Navarro-Donaldson-Pompey-Izturis0.201
18Izturis-Reyes-Encarnacion-Bautista-Donaldson-Saunders-Martin-Pompey-Navarro0.212
19Reyes-Izturis-Encarnacion-Bautista-Saunders-Navarro-Martin-Donaldson-Pompey0.214
20Saunders-Izturis-Martin-Bautista-Reyes-Encarnacion-Donaldson-Pompey-Navarro0.222
21Saunders-Reyes-Encarnacion-Bautista-Donaldson-Navarro-Martin-Izturis-Pompey0.226
22Reyes-Saunders-Bautista-Encarnacion-Donaldson-Pompey-Martin-Izturis-Navarro0.228
23Saunders-Reyes-Bautista-Encarnacion-Donaldson-Pompey-Izturis-Martin-Navarro0.239
24Reyes-Saunders-Encarnacion-Bautista-Martin-Donaldson-Izturis-Pompey-Navarro0.240
25Reyes-Saunders-Bautista-Encarnacion-Donaldson-Navarro-Pompey-Izturis-Martin0.240
26Reyes-Encarnacion-Martin-Bautista-Donaldson-Pompey-Navarro-Saunders-Izturis0.249
27Saunders-Pompey-Bautista-Encarnacion-Reyes-Izturis-Navarro-Donaldson-Martin0.254
28Reyes-Saunders-Martin-Encarnacion-Bautista-Navarro-Donaldson-Pompey-Izturis0.265
29Saunders-Reyes-Martin-Encarnacion-Bautista-Pompey-Donaldson-Izturis-Navarro0.275
30Pompey-Reyes-Bautista-Encarnacion-Donaldson-Martin-Saunders-Navarro-Izturis0.281
31Saunders-Martin-Encarnacion-Bautista-Reyes-Donaldson-Izturis-Navarro-Pompey0.291
32Donaldson-Pompey-Bautista-Saunders-Reyes-Izturis-Encarnacion-Navarro-Martin0.293
33Reyes-Saunders-Encarnacion-Donaldson-Bautista-Pompey-Izturis-Navarro-Martin0.296
34Saunders-Reyes-Izturis-Encarnacion-Donaldson-Martin-Bautista-Pompey-Navarro0.300
35Saunders-Pompey-Bautista-Encarnacion-Martin-Donaldson-Reyes-Navarro-Izturis0.301
36Bautista-Saunders-Encarnacion-Donaldson-Reyes-Martin-Pompey-Navarro-Izturis0.309
37Reyes-Saunders-Bautista-Donaldson-Encarnacion-Pompey-Izturis-Navarro-Martin0.310
38Donaldson-Reyes-Bautista-Encarnacion-Saunders-Pompey-Navarro-Martin-Izturis0.313
39Encarnacion-Donaldson-Martin-Bautista-Reyes-Saunders-Izturis-Navarro-Pompey0.333
40Pompey-Martin-Encarnacion-Bautista-Saunders-Reyes-Izturis-Donaldson-Navarro0.338
41Bautista-Saunders-Martin-Encarnacion-Reyes-Donaldson-Pompey-Navarro-Izturis0.338
42Izturis-Saunders-Encarnacion-Bautista-Reyes-Pompey-Donaldson-Navarro-Martin0.340
43Reyes-Martin-Encarnacion-Bautista-Donaldson-Pompey-Saunders-Navarro-Izturis0.352
44Encarnacion-Reyes-Bautista-Donaldson-Saunders-Pompey-Navarro-Martin-Izturis0.362
45Reyes-Navarro-Encarnacion-Bautista-Saunders-Donaldson-Izturis-Pompey-Martin0.362
46Encarnacion-Saunders-Donaldson-Bautista-Reyes-Martin-Izturis-Navarro-Pompey0.363
47Donaldson-Saunders-Izturis-Bautista-Reyes-Pompey-Encarnacion-Navarro-Martin0.367
48Donaldson-Saunders-Izturis-Bautista-Reyes-Encarnacion-Pompey-Navarro-Martin0.394
49Reyes-Donaldson-Martin-Bautista-Saunders-Encarnacion-Pompey-Navarro-Izturis0.417
50Bautista-Reyes-Izturis-Encarnacion-Donaldson-Saunders-Martin-Navarro-Pompey0.442
..  
BADNavarro-Izturis-Reyes-Saunders-Pompey-Martin-Donaldson-Encarnacion-Bautista2.125

              Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Saunders161601104210
Reyes161800141100
Encarnacion32191833200
Bautista40142650100
Donaldson4325148950
Pompey35000186108
Izturis32701512614
Navarro010006112210
Martin1380356618
.
.
Synergy

20 Most Common Back to Back Occurrences
RankOccurrencesPlayer 1Player 2
120EncarnacionBautista
219NavarroMartin
317PompeyNavarro
415EncarnacionDonaldson
514DonaldsonPompey
613BautistaEncarnacion
712ReyesIzturis
812BautistaReyes
911SaundersReyes
1011ReyesSaunders
1111PompeyIzturis
1211IzturisNavarro
1310ReyesEncarnacion
1410BautistaSaunders
1510DonaldsonNavarro
169IzturisReyes
179NavarroIzturis
188DonaldsonMartin
198NavarroPompey
208MartinDonaldson
208MartinIzturis

20 Most Common Back to Back to Back Occurrences
RankOccurrencesPlayer 1Player 2Player 3
18BautistaEncarnacionDonaldson
26DonaldsonNavarroMartin
36PompeyNavarroIzturis
46NavarroMartinIzturis
55SaundersReyesIzturis
65ReyesSaundersBautista
75ReyesEncarnacionBautista
85ReyesBautistaEncarnacion
95ReyesIzturisEncarnacion
105EncarnacionBautistaSaunders
115EncarnacionBautistaReyes
125EncarnacionDonaldsonPompey
135DonaldsonPompeyIzturis
145DonaldsonPompeyNavarro
155PompeyIzturisNavarro
165PompeyNavarroMartin
175IzturisNavarroMartin
185MartinReyesSaunders
195MartinEncarnacionBautista
204SaundersBautistaEncarnacion

                                 Analysis

Saunders:  Hits left-handed and does well against RHP.  Has decent speed and power and the simulator likes him hitting either first or second and can live with him hitting fifth as well.

Reyes:  Switch hitter with good speed and doesn't strike-out a lot.  Has a nearly identical lineup profile as Saunders does.

Encarnacion:  Good power and draws a nice amount of walks.  The simulator likes him hitting either third or fourth but also makes an appearance at each lineup spot 1 thru 7.

Bautista:  Great power and draws a lot of walks.  Here is your cleanup hitter.  If not cleanup can also fit in as the #3 hitter.

Donaldson:  Like many of the players to follow, the simulator shows Donaldson with a lot of lineup position diversity.  His best spot is fifth but also shines at 6th and 7th.  Donaldson hits for good power but doesn't hit RHP real well (compared to LHP).

Pompey:  Good speed and will clear the bases with an occasional triple.  The simulator likes him hitting 6th the most but can find a good lineup to fit in at any of the non traditional power spots (3-4-5).

Izturis:  Doesn't do anything real well on the offensive side but the simulator find him doing the least amount of damage batting either ninth or seventh and surprisingly finds his way to the third spot in seven of the top fifty lineups.

Navarro:  Definitely the turtle of the team, the simulator likes him batting 8th though it can live with him in the sixth thru ninth spots.  While a switch hitter, Navarro does much better historically against LHP.

Martin:  Makes three appearances in seven different lineup spots on the top fifty lineup chart.  Though the simulator does like Martin hitting 9th, almost as a second leadoff hitter.

............................................................................................................................

Tuesday, February 03, 2015

San Francisco Giants - 2015 Most Optimal Lineup

.
I am using my simulator that plays actual baseball games to find what it believes are the most optimal lineups for the 2015 San Francisco Giants.  I started out with over 2,000 permutations of lineups, a group that was filtered to remove such things as left handed hitters hitting back to back or the pitcher not hitting 8th or 9th etc... and I slowly widdled it down to the top 25 lineups.  I also compared the best lineup against the lineup that MLB Depth Charts (0.40 wins/162 games worse) shows as a likely lineup and also one of the worst lineups to see what kind of spread there is.  The top 25 lineups all came within a half of a win per 162 games so really anything in that range is pretty good.  When you start nearing a full win differential with the top lineup then you definitely have problems.  You will see a few lineups that may seem strange in a most optimal list but keep in mind the simulator does not take into account psychological factors.  It is not like Joe Panik's mom is going to be calling up Giants management in tears asking for Joe not to bat 4th because he is going to have to change his approach at the plate.  The simulator just takes the Steamer projection inputs along with a speed rating for base running and gives you the best lineups.  Sure, the Giants manager won't use many of these lineups because they might not be prototypical but that is not part of the exercise.  I typically simulated each lineup over 1 million times which eliminated a large portion of the random noise and I did so only against a right handed pitcher.  Below are a list of the top 25 lineups and a batting order spot frequency table, where you can see how many times each player appeared in each of the top 50 lineups.

                                          Top 25 Optimal Lineups

RankLineupWins behind/162 games
1Pagan-Aoki-Posey-Panik-Pence-Belt-McGeHee-Pitcher-Crawford0.000
2Pagan-Aoki-Posey-Belt-Pence-Panik-McGeHee-Pitcher-Crawford0.027
3Pagan-Aoki-Posey-Belt-Pence-Crawford-McGeHee-Pitcher-Panik0.060
4Aoki-Pagan-Panik-Posey-Belt-Pence-Crawford-McGeHee-Pitcher0.116
5Crawford-Pagan-Belt-Posey-Aoki-Pence-Panik-McGeHee-Pitcher0.239
6Pence-Aoki-Posey-Belt-Pagan-Panik-McGeHee-Pitcher-Crawford0.247
7Aoki-Pagan-Belt-Posey-Panik-Pence-Crawford-McGeHee-Pitcher0.258
8Aoki-Pagan-Belt-Posey-Crawford-Pence-Panik-McGeHee-Pitcher0.263
9Belt-Pagan-Panik-Posey-Aoki-Pence-Crawford-McGeHee-Pitcher0.277
10Pence-Aoki-Posey-Panik-Pagan-Belt-McGeHee-Pitcher-Crawford0.286
11Pagan-Aoki-Posey-Panik-Pence-Crawford-McGeHee-Pitcher-Belt0.294
12Aoki-Pagan-Panik-Posey-Crawford-Pence-Belt-McGeHee-Pitcher0.296
13Crawford-Pagan-Panik-Posey-Aoki-Pence-Belt-McGeHee-Pitcher0.301
14Aoki-Pence-Panik-Posey-Belt-Pagan-Crawford-McGeHee-Pitcher0.321
15Pagan-Aoki-Posey-Crawford-Pence-Belt-McGeHee-Pitcher-Panik0.325
16Pagan-Aoki-Pence-Panik-Posey-Belt-McGeHee-Pitcher-Crawford0.327
17Pagan-Panik-Posey-Belt-Pence-Aoki-McGeHee-Pitcher-Crawford0.357
18Belt-Pence-Crawford-Posey-Aoki-Pagan-Panik-McGeHee-Pitcher0.360
19Aoki-Pagan-Panik-Pence-Belt-Posey-Crawford-McGeHee-Pitcher0.361
20Crawford-Pagan-Panik-Pence-Aoki-Posey-Belt-McGeHee-Pitcher0.393
21Pagan-Aoki-Posey-Belt-Pence-Panik-McGeHee-Crawford-Pitcher0.400
22Pence-Aoki-Posey-Belt-Pagan-Crawford-McGeHee-Pitcher-Panik0.407
23Pagan-Panik-Posey-Belt-Pence-Crawford-McGeHee-Pitcher-Aoki0.428
24Crawford-Pence-Panik-Posey-Aoki-Pagan-Belt-McGeHee-Pitcher0.442
25Pagan-Aoki-Posey-Belt-Pence-Panik-McGeHee-Crawford-Pitcher0.442
..

BadMcGeHee-Belt-Pagan-Aoki-Pence-Panik-Crawford-Posey-Pitcher2.438

             Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Pagan19170059000
Aoki17170193102
Posey03241724000
Belt31814108402
Pence47281811000
Panik0514728806
McGeHee00010324211
Crawford70224413810
Pitcher00000002129

Synergy
20 Most Common Back to Back Occurrences in Lineup:
RankOccurrencesPlayer 1Player 2
137McGeHeePitcher
222PaganPanik
322PoseyBelt
419AokiPosey
518PitcherAoki
617AokiPagan
717BeltPence
817PitcherCrawford
916PenceBelt
1016PanikMcGeHee
1115PaganAoki
1215PanikPosey
1313BeltMcGeHee
1413CrawfordPagan
1513CrawfordPitcher
1612PencePanik
1712PanikPence
1812CrawfordMcGeHee
1911McGeHeeCrawford
2010AokiPence
2010PoseyPanik
2010BeltPagan
2010BeltPosey

10 Most Common Back to Back to Back Occurrences in Lineup:
RankOccurrencesPlayer 1Player 2Player 3
117McGeHeePitcherCrawford
215PoseyBeltPence
312PaganAokiPosey
412PanikMcGeHeePitcher
512McGeHeePitcherAoki
612CrawfordMcGeHeePitcher
712PitcherAokiPagan
811PaganPanikPosey
911AokiPaganPanik
1011McGeHeeCrawfordPitcher
1011PitcherCrawfordPagan


                                      Analysis

Pagan:  The simulator likes the switch hitting Pagan batting first or second in the lineup.  There are a couple of permutations where the simulator likes Pagan batting sixth but he seems best suited for the top of the lineup which is where he is likely to bat in reality.

Aoki:  Like Pagan, the simulator pegs Aoki at one of the first two spots in the lineup with the occasional drop to fifth.  There are even two appearances in the top 50 lineups with Aoki batting 9th.

Posey:  The Giants will get the most bang for their buck with Posey hitting third or fourth which is really the only two spots the Giants would ever hit him in.

Belt:  Shows up in many different lineup spots with second thru sixth being the best spots for him.  Belt finds himself paired either in front of or immediately after Pence in the lineup in 33 of the top 50 lineups.  The threesome of Posey-Belt-Pence show up as the second most likely consecutive trio in the top lineups.

Pence:  Finds himself all over the radar on the first six lineup spots with fifth and sixth being his best spots.  Which is pretty much in line where Pence expects to bat in the 2015 lineup.

Panik:  Appears all over the place in the top 50 lineups.  The only two spots he doesn't appear in is leadoff and eighth.  Panik makes more than a few surprise appearances in the middle of the lineup in the top list which may come as a surprise.  The Giants won't likely bat him in the middle of the lineup but the simulator does not take into account psychological reasons (like experience) for not batting a player in a certain spot.  With the L-R-L requirement Panik ends up all over the place.

McGeHee:  Looks to be a solid fit at the seventh and eighth spots as a late source of power in the lineup before the black hole of the pitcher bats.  McGeHee-Pitcher is the number one most common consecutive batting duo in the lineup and McGeHee-Pitcher-Crawford is the number one most common threesome.

Crawford:  He shows up all over the place but is a best fit hitting seventh, eighth, ninth or leadoff.

Pitcher: The pitcher shows up hitting eighth in 42% of the top lineups.  Most MLB managers will not hit the pitcher eighth for psychological reasons but if done correctly with the right personnel and lineup construction it is a good thing.

Friday, January 30, 2015

St Louis Cardinals - Most Optimal 2015 Lineups

.
I am using my simulator that plays actual baseball games to find what it believes are the most optimal lineups for the 2015 St Louis Cardinals.  I started out with over 10,000 permutations of lineups, a group that was filtered to remove such things as too many left handed hitters hitting back to back or the pitcher not hitting 8th or 9th etc... and I slowly widdled it down to the top 50 lineups.  I also compared the best lineup against the lineup that MLB Depth Charts shows as a likely lineup and also one of the worst lineups to see what kind of spread there is.  The top 50 lineups all came within a half of a win per 162 games so really anything in that range is pretty good.  When you start nearing a full win differential with the top lineup then you definitely have problems.  I typically simulated each lineup over 1 million times which eliminated a large portion of the random noise and I did so only against a right handed pitcher.  Below are a list of the top 50 lineups and a batting order spot frequence table, where you can see how many times each player appeared in each of the top 50 lineup.

                                       Top 50 Most Optimal Lineups
RankLineupWins/162 Behind
1Heyward-Carpenter-Holliday-Adams-Wong-Molina-Peralta-Pitcher-Jay0
2Carpenter-Heyward-Holliday-Adams-Wong-Molina-Peralta-Pitcher-Jay0.014
3Wong-Jay-Holliday-Carpenter-Heyward-Peralta-Adams-Molina-Pitcher0.015
4Carpenter-Heyward-Holliday-Adams-Wong-Peralta-Molina-Pitcher-Jay0.032
5Heyward-Jay-Holliday-Carpenter-Adams-Peralta-Molina-Pitcher-Wong0.066
6Wong-Heyward-Holliday-Carpenter-Adams-Peralta-Molina-Pitcher-Jay0.086
7Heyward-Jay-Holliday-Carpenter-Adams-Molina-Peralta-Pitcher-Wong0.102
8Heyward-Jay-Holliday-Carpenter-Adams-Peralta-Wong-Molina-Pitcher0.120
9Jay-Heyward-Holliday-Carpenter-Adams-Peralta-Molina-Pitcher-Wong0.131
10Wong-Jay-Holliday-Carpenter-Heyward-Molina-Adams-Peralta-Pitcher0.151
11Jay-Heyward-Holliday-Carpenter-Adams-Peralta-Wong-Molina-Pitcher0.167
12Jay-Heyward-Holliday-Carpenter-Wong-Peralta-Adams-Molina-Pitcher0.171
13Jay-Heyward-Holliday-Carpenter-Adams-Molina-Peralta-Pitcher-Wong0.175
14Heyward-Carpenter-Holliday-Adams-Wong-Peralta-Jay-Molina-Pitcher0.184
15Carpenter-Jay-Holliday-Adams-Heyward-Peralta-Wong-Molina-Pitcher0.199
16Jay-Heyward-Holliday-Adams-Carpenter-Peralta-Wong-Molina-Pitcher0.200
17Heyward-Jay-Holliday-Adams-Carpenter-Peralta-Wong-Molina-Pitcher0.209
18Wong-Jay-Peralta-Carpenter-Heyward-Holliday-Adams-Molina-Pitcher0.243
19Heyward-Adams-Holliday-Carpenter-Wong-Molina-Peralta-Pitcher-Jay0.247
20Carpenter-Heyward-Holliday-Adams-Jay-Peralta-Molina-Pitcher-Wong0.253
21Heyward-Wong-Holliday-Adams-Carpenter-Peralta-Molina-Pitcher-Jay0.257
22Jay-Wong-Holliday-Carpenter-Heyward-Molina-Adams-Peralta-Pitcher0.266
23Heyward-Adams-Holliday-Carpenter-Wong-Peralta-Molina-Pitcher-Jay0.269
24Heyward-Jay-Holliday-Carpenter-Adams-Molina-Wong-Peralta-Pitcher0.269
25Wong-Jay-Molina-Carpenter-Heyward-Holliday-Adams-Peralta-Pitcher0.284
26Jay-Carpenter-Holliday-Heyward-Adams-Peralta-Molina-Pitcher-Wong0.286
27Heyward-Carpenter-Holliday-Adams-Molina-Wong-Peralta-Pitcher-Jay0.286
28Jay-Carpenter-Holliday-Adams-Heyward-Peralta-Molina-Pitcher-Wong0.288
29Heyward-Holliday-Carpenter-Adams-Peralta-Wong-Molina-Pitcher-Jay0.289
30Carpenter-Heyward-Holliday-Adams-Wong-Molina-Jay-Peralta-Pitcher0.292
31Jay-Adams-Holliday-Carpenter-Heyward-Peralta-Wong-Molina-Pitcher0.299
32Heyward-Wong-Holliday-Carpenter-Adams-Peralta-Jay-Molina-Pitcher0.305
33Wong-Carpenter-Holliday-Adams-Heyward-Peralta-Molina-Pitcher-Jay0.310
34Carpenter-Jay-Holliday-Adams-Heyward-Peralta-Molina-Pitcher-Wong0.310
35Peralta-Heyward-Carpenter-Holliday-Adams-Wong-Molina-Pitcher-Jay0.317
36Jay-Carpenter-Holliday-Heyward-Adams-Peralta-Wong-Molina-Pitcher0.326
37Jay-Wong-Molina-Carpenter-Heyward-Holliday-Adams-Peralta-Pitcher0.327
38Carpenter-Heyward-Holliday-Adams-Jay-Peralta-Wong-Molina-Pitcher0.327
39Wong-Carpenter-Holliday-Adams-Heyward-Peralta-Jay-Molina-Pitcher0.343
40Jay-Carpenter-Holliday-Adams-Heyward-Molina-Wong-Peralta-Pitcher0.348
41Jay-Heyward-Holliday-Adams-Carpenter-Molina-Peralta-Pitcher-Wong0.353
42Wong-Adams-Holliday-Carpenter-Heyward-Peralta-Molina-Pitcher-Jay0.372
43Heyward-Holliday-Adams-Carpenter-Peralta-Wong-Molina-Pitcher-Jay0.382
44Carpenter-Heyward-Holliday-Adams-Wong-Peralta-Jay-Molina-Pitcher0.388
45Carpenter-Wong-Holliday-Adams-Heyward-Molina-Peralta-Pitcher-Jay0.403
46Peralta-Heyward-Adams-Holliday-Carpenter-Wong-Molina-Pitcher-Jay0.433
47Heyward-Carpenter-Holliday-Adams-Wong-Molina-Jay-Pitcher-Peralta0.439
48Heyward-Peralta-Carpenter-Adams-Holliday-Wong-Molina-Pitcher-Jay0.469
49Heyward-Wong-Holliday-Adams-Carpenter-Molina-Peralta-Pitcher-Jay0.477
50Carpenter-Heyward-Holliday-Adams-Molina-Wong-Peralta-Pitcher-Jay0.485
......
MLBDCCarpenter-Heyward-Holliday-Adams-Molina-Peralta-Jay-Wong-Pitcher1.090
BADAdams-Peralta-Jay-Wong-Molina-Carpenter-Holliday-Heyward-Pitcher3.661
.
.
              Batting Order Frequence Table
1st2nd3rd4th5th6th7th8th9th
Heyward171602150000
Carpenter101032160000
Holliday0242213000
Adams04225120700
Wong86001071009
Peralta21102261071
Molina002021417150
Jay131100206018
Pitcher00000002822

Synergy:
10 most common back to back occurrences in lineup.
RankOccurrencesPlayer 1Player 2
132MolinaPitcher
228HollidayAdams
326PitcherJay
419HeywardHolliday
519HollidayCarpenter
619WongMolina
717PeraltaPitcher
815CarpenterHeyward
915JayHeyward
1014PitcherWong
.
10 most common back to back to back occurrences in lineup.
RankOccurrencesPlayer 1Player 2Player 3
116MolinaPitcherJay
213HeywardHollidayAdams
313WongMolinaPitcher
412PeraltaMolinaPitcher
512PitcherJayHeyward
610CarpenterHeywardHolliday
710HollidayCarpenterAdams
810PeraltaWongMolina
910PeraltaPitcherJay
10t9CarpenterHollidayAdams
10t9MolinaPitcherWong
10t9PitcherWongJay
.
.

                                         Analysis

Heyward:  Slots well at the top of the lineup as either the leadoff or second hitter.  With others better suited for the 3rd or 4th spot in the lineup, Heyward also slots in well as the 5th hitter but should not hit in the 6th thru 9th slots.

Carpenter: Surpsingly does well at cleanup along with Adams but also does well among the 1-2-5 spots like Heyward.  Carpenter shows a lot of lineup versatility if there is such a thing.

Holliday:  Should hit third.

Adams: The teams best cleanup hitter but can also move down to fifth in the lineup if need be.

Wong: No one great spot for Wong but he probably shows the most "lineup versatility" as anyone on the team  There are 6 lineup slots where Wong appeared at least 6 times.  When it comes to batting order spots, Wong is definitely the Nomad of the team.  Wong even makes 9 appearances hitting 9th, one spot behind the pitcher.

Peralta:  The simulator likes Peralta hitting 6th as he provides some pretty decent back of the lineup power.  He should definitely stay out of the top five spots in the lineup.

Molina:  6-7-8 are the best spots for Molina as only Heyward and Molina have a 14 or higher on their third most frequented lineup spot.

Jay:  Looks like the simulator likes Jay setting the table whether it be as the leadoff hitter or the quasi-leadoff hitter batting 9th.

Pitcher:  With Jay and Wong making appearances in the 9th spot the simulator pretty much calls it a crapshoot at hitting the pitcher 8th or 9th.  The pitcher should bat immediately after Molina does.

Friday, January 16, 2015

How Optimal Was The Royals 2014 Lineup

My simulator is a good tool for looking at optimal batting orders.  It can play tens of thousands and even millions (with a smaller set of games) of games while keeping the opponent static which can give you a good idea which lineups win more games.  I am using the Royals most common lineup that they used in the 2014 season and seeing how optimal the simulator thought it was.  After doing this for the Dodgers and Cardinals, I decided to move on to the Kansas City Royals.  I put in some filters to cut down on the number of lineup permutations.  I tried to mimic what the Royals manager tended to do in not hitting lefties back to back other than the 9th then leadoff hitter etc...    Of course you can't expect any manager to be implementing the most optimal lineup but you also don't want him to be giving away fractions of wins each game that can add up over a 162 game season.  So down below, I list the Top 10 lineups along with the most common 2014 lineup in a table sorted by Wins/162 games.  I also list a table showing the frequency of where each player batted in each of the top 50 lineups.  I love the batting order frequency tables as they show you which players have a few dedicated positions in the order they should be hitting in and which players are more versatile in giving you an optimal lineup.  I used 2014 final season stats as the input projections for each hitter because that is for the most part similar to the data that the manager went by.  And I did all the simulations with the opposing team using a right handed starting pitcher.

Before we begin, here is the common Royals lineup that I compared against

Aoki-Infante-Hosmer-Butler-Gordon-Perez-Moustakas-Escobar-Dyson

                                        Top 10 Lineups
LineupWins/162 GB
Aoki-Infante-Moustakas-Perez-Gordon-Escobar-Hosmer-Butler-Dyson0.000
Aoki-Escobar-Moustakas-Perez-Gordon-Infante-Dyson-Butler-Hosmer0.065
Aoki-Escobar-Moustakas-Perez-Gordon-Butler-Dyson-Infante-Hosmer0.111
Aoki-Infante-Moustakas-Perez-Gordon-Escobar-Dyson-Butler-Hosmer0.143
Aoki-Escobar-Moustakas-Perez-Gordon-Butler-Hosmer-Infante-Dyson0.164
Aoki-Escobar-Hosmer-Perez-Gordon-Infante-Moustakas-Butler-Dyson0.166
Aoki-Escobar-Moustakas-Perez-Gordon-Infante-Hosmer-Butler-Dyson0.207
Dyson-Infante-Moustakas-Perez-Gordon-Escobar-Aoki-Butler-Hosmer0.238
Aoki-Escobar-Moustakas-Perez-Hosmer-Butler-Gordon-Infante-Dyson0.308
Moustakas-Escobar-Hosmer-Perez-Gordon-Butler-Aoki-Infante-Dyson0.354
.
.
             Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Aoki3000090506
Escobar03200011070
Moustakas40260501005
Perez0303905030
Gordon90003001001
Infante014000190170
Hosmer20240601008
Butler010110150230
Dyson50000015030
.
.
Note:  The most common lineup ended up 0.56 wins per 162 games behind the most optimal lineup.  Not too bad.  The simulator liked batting Perez cleanup which the Royals did not do.  The simulator also liked hitting Escobar second instead of Infante (basically switching them).
.

Wednesday, January 14, 2015

How Optimal Was The Cardinals 2014 Lineup


My simulator is a good tool for looking at optimal batting orders.  It can play tens of thousands and even millions (with a smaller set of games) of games while keeping the opponent static which can give you a good idea which lineups win more games.  Originally, taking an idea from the "straight arrows" over at The Book Blog, I decided to take the 2014 Dodgers most common lineup, that one can find over at the Baseball Reference website and compare how well that lineup does against tens of thousands of other possible lineup permutations.  Now I decided to move on to the St. Louis Cardinals mostly because I like doing this and the Cardinals have a very analytical friendly blog not one that spends endless hours discussing TV shows, taco trucks and their personal problems.  I did set some filters to cut down on the permutations, like I only looked at lineups where the pitcher hit 8th or 9th and where the best hitters didn't hit 8th or 9th and the worst hitters didn't hit 3rd or 4th etc...  I wanted to see how well one of the Cardinals most common lineups compared to what the simulator thought was the most optimal lineup.  Of course you can't expect any manager to be implementing the most optimal lineup but you also don't want him to be giving away fractions of wins each game that can add up over a 162 game season.  So down below, I list the Top 10 lineups along with the most common 2014 lineup in a table sorted by Wins/162 games.  I also list a table showing the frequency of where each player batted in each of the top 50 lineups.  I love the batting order frequency tables as they show you which players have a few dedicated positions in the order they should be hitting in and which players are more versatile in giving you an optimal lineup.  I used 2014 final season stats as the input projections for each hitter because that is for the most part similar to the data that the manager went by.  And I did all the simulations with the opposing team using a right handed starting pitcher.

Before we begin, here is the common Cardinals lineup that I compared against

Carpenter-Wong-Holliday-Craig-Molina-Adams-Peralta-Bourjos-Pitcher.


                                                      Top 10 Lineups
RankLineupWins/162 Behind
1Peralta-Carpenter-Holliday-Adams-Wong-Bourjos-Molina-Craig-Pitcher0.000
2Peralta-Carpenter-Adams-Holliday-Wong-Molina-Craig-Pitcher-Bourjos0.081
3Bourjos-Carpenter-Holliday-Adams-Peralta-Wong-Molina-Craig-Pitcher0.092
4Peralta-Carpenter-Adams-Holliday-Wong-Bourjos-Molina-Craig-Pitcher0.118
5Holliday-Carpenter-Peralta-Adams-Wong-Molina-Craig-Pitcher-Bourjos0.119
6Holliday-Carpenter-Adams-Peralta-Wong-Molina-Craig-Pitcher-Bourjos0.158
7Bourjos-Carpenter-Peralta-Holliday-Adams-Wong-Molina-Craig-Pitcher0.161
8Carpenter-Holliday-Adams-Peralta-Wong-Molina-Craig-Pitcher-Bourjos0.162
9Carpenter-Wong-Peralta-Holliday-Adams-Bourjos-Molina-Craig-Pitcher0.206
10Wong-Carpenter-Holliday-Peralta-Adams-Bourjos-Molina-Craig-Pitcher0.216

And how did the Cardinals common lineup fair? Wel, it finished 2.07 wins/162 games worse than the top ranking lineup according to the simulator. Good thing that lineup wasn't actually used 162 times but it kind of gives you a general idea of how many wins the Cardinals manager may have been leaving off the table during the entire season if you trust the output of the simulator. When I did this for the Dodgers, Mattingly's most common lineup was only 0.84 wins/162 games off from the most optimal.

           Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Carpenter15197630000
Peralta55119710300
Holliday36171761000
Adams051218103200
Wong95002212200
Molina03300123101
Bourjos18700212407
Craig0000008420
Pitcher0000000842

Player by Player Analysis

Leadoff:  Matt Carpenter.  Matheny bats Carpenter leadoff and the simulator agrees that that is a good spot for him but he would be a little better off hitting second not first.  Good

Second:  Kolten Wong.  Matheny bats Wong second and the simulator doesn't think that is one of the top three places for him to hit.  It is not a totally glaring mistake as the simulator does have Wong hitting second in the 9th most optimal lineup but a better selection can be made here.  Below Average

Third:  Matt Holliday.  Matheny bats Holliday third and pretty much nails this one.  The simulator thinks that Holliday is a good third or fourth hitter in this lineup.  While Holliday does have some batting order versatility and could even slot into the second and fifth slots without deserving to be taken out behind the shed.  Great

Cleanup:  Allen Craig.  Matheny bats Craig cleanup and as you know Craig had an awful season.  To Matheny's credit he probably didn't know Craig was going to be this bad and stay this bad as long as he did but nonetheless batting Craig cleanup was not a good choice and if done enough times would be extremely costly.  The simulator liked Craig batting 8th, in front of the pitcher.  Bad

Fifth:  Yadier Molina:  Matheny bats Molina fifth and the simulator does not like him there at all.  The simulator likes the slow legged and power hitting catcher batting seventh or sixth at best where he can knock in runs and not get knocked in himself.  Bad

Sixth:  Matt Adams.  Matheny bats Adams sixth and the simulator thinks that is too low.  Mostly because the simulator already knows how bad Craig is.  The simulator likes Craig batting cleanup or in one of the other traditional power hitting slots (third or fifth).  Bad

Seventh:  Jhonny Peralta.  Matheny bats Peralta seventh and maybe he didn't know at the time he was building these lineups that Peralta would be one of his better hitters in 2014.  A look up above at the 'Batting Order Frequency' table and you really see how versatile Peralta is in this lineup.  Peralta hits leadoff in three of the four top optimal lineups and the simulator think the third, fourth and fifth slots are his best.  Good

Eighth:  Peter Bourjos.  Matheny puts the all glove not stick Bourjos eighth.  From above the simulator thinks that spot should be reserved for Allen Craig.  The simulator touts leadoff or ninth, which in and of itself is a second leadoff spot, as the most optimal placement for Bourjos.  Bourjos is leadoff in 2 of the top ten lineups and bats ninth in 4 of the top ten lineups.  There is often efficiency in batting the pitcher 8th if you have the right personnel to do it.  Bad

Ninth:  Pitcher.  The simulator has the pitcher batting 9th in 84% of the Top 50 lineups.  Good

Overall:
So overall Matheny did not do a very good job with this lineup but to his credit the simulator is using end of season (or after the fact) input projections.  If Matheny was hitting Craig cleanup when it was obvious he wasn't very good then he is greatly to blame, otherwise he gets some slack.  How much slack is up for debate.
.

Sunday, January 04, 2015

How Good Is Don Mattingly At Setting The Batting Order

.
My simulator is a good tool for looking at optimal batting orders.  It can play tens of thousands and even millions (with a smaller set of games) of games while keeping the opponent static which can give you a good idea which lineups win more games.  Taking an idea from the "straight arrows" over at The Book Blog, I decided to take the 2014 Dodgers most common lineup, that one can find over at the Baseball Reference website and compare how well that lineup does against tens of thousands of other possible lineup permutations.  I did set some filters to cut down on the permutations, like I only looked at lineups where the pitcher hit 8th or 9th and where the best hitters didn't hit 8th or 9th and the worst hitters didn't hit 3rd or 4th etc...  I wanted to see how well Mattingly's most common lineup compared to what the simulator thought was the most optimal lineup.  Of course you can't expect any manager to be implementing the most optimal lineup but you also don't want him to be giving away fractions of wins each game that can add up over a 162 game season.  So down below, I list the Top 25 lineups along with the most common 2014 lineup in a table sorted by Wins/162 games.  I also list a table showing the frequency of where each player batted in each of the top 25 lineups.  I love the batting order frequency tables as they show you which players have a few dedicated positions in the order they should be hitting in and which players are more versatile in giving you an optimal lineup.  I used 2014 final season stats as the input projections for each hitter because that is for the most part what Don Mattingly went by.  And I did all the simulations with the opposing team using a right handed starting pitcher.

Before we begin, here is the most common 2014 Dodgers lineup.

Gordon-Puig-Gonzales-Kemp-Ramirez-Crawford-Uribe-Ellis-Pitcher

                                                       Top 25 Lineups
RankLineupWins/162 Behind
1Kemp-Gordon-Ramirez-Gonzalez-Puig-Crawford-Ellis-Uribe-Pitcher0.000
2Gordon-Ellis-Ramirez-Gonzalez-Puig-Crawford-Kemp-Uribe-Pitcher0.059
3Gordon-Ellis-Crawford-Ramirez-Puig-Gonzalez-Kemp-Uribe-Pitcher0.060
4Gordon-Puig-Gonzalez-Ramirez-Crawford-Kemp-Uribe-Pitcher-Ellis0.090
5Gordon-Ellis-Gonzalez-Ramirez-Puig-Crawford-Kemp-Uribe-Pitcher0.108
6Puig-Crawford-Ramirez-Gonzalez-Kemp-Gordon-Ellis-Uribe-Pitcher0.163
7Ellis-Gordon-Ramirez-Gonzalez-Puig-Crawford-Kemp-Uribe-Pitcher0.218
8Ellis-Puig-Gonzalez-Ramirez-Crawford-Kemp-Uribe-Pitcher-Gordon0.226
9Gordon-Puig-Gonzalez-Ramirez-Kemp-Crawford-Uribe-Pitcher-Ellis0.243
10Puig-Crawford-Ramirez-Gonzalez-Kemp-Gordon-Uribe-Pitcher-Ellis0.261
11Crawford-Kemp-Gonzalez-Ramirez-Puig-Gordon-Ellis-Uribe-Pitcher0.307
12Gordon-Puig-Ramirez-Gonzalez-Kemp-Crawford-Uribe-Pitcher-Ellis0.316
13Ellis-Gordon-Ramirez-Gonzalez-Puig-Kemp-Crawford-Uribe-Pitcher0.326
14Crawford-Puig-Gonzalez-Ramirez-Kemp-Gordon-Uribe-Pitcher-Ellis0.348
15Crawford-Puig-Ramirez-Gonzalez-Kemp-Gordon-Uribe-Ellis-Pitcher0.379
16Kemp-Crawford-Ramirez-Gonzalez-Puig-Gordon-Uribe-Ellis-Pitcher0.402
17Ellis-Puig-Gonzalez-Ramirez-Crawford-Kemp-Gordon-Uribe-Pitcher0.412
18Gordon-Ramirez-Kemp-Gonzalez-Puig-Crawford-Ellis-Uribe-Pitcher0.430
19Gordon-Kemp-Gonzalez-Ramirez-Puig-Crawford-Uribe-Ellis-Pitcher0.430
20Gordon-Ramirez-Kemp-Gonzalez-Puig-Crawford-Uribe-Ellis-Pitcher0.456
21Gordon-Puig-Gonzalez-Ramirez-Kemp-Crawford-Ellis-Pitcher-Uribe0.513
22Ramirez-Gordon-Kemp-Gonzalez-Puig-Crawford-Uribe-Ellis-Pitcher0.551
23Gordon-Ellis-Crawford-Ramirez-Puig-Gonzalez-Kemp-Pitcher-Uribe0.580
24Puig-Crawford-Kemp-Gonzalez-Ramirez-Gordon-Ellis-Uribe-Pitcher0.604
25Gordon-Ramirez-Kemp-Gonzalez-Puig-Ellis-Crawford-Urube-Pitcher0.613
55Gordon-Puig-Gonzalez-Kemp-Ramirez-Crawford-Uribe-Ellis-Pitcher0.837
.
And for comparison sake the worst lineup was 3.55 wins/162 games worst than the best lineup.
Worst: Ellis-Uribe-Puig-Kemp-Gonzalez-Ramirez-Crawford-Pitcher-Gordon
.
           Batting Order Frequency Table
1st2nd3rd4th5th6th7th8th9th
Gordon1240007101
Puig3800140000
Gonzalez0091402000
Kemp225074500
Ramirez1391110000
Crawford3420311200
Uribe00000011112
Ellis440001655
Pitcher0000000817

.
Analysis:
So the simulator thinks that Mattingly left around 0.84 wins off the table over 162 games with his most common lineup.  I will leave that up to the reader if they think that is significant.  Keep in mind that one win (or WAR) is going for about $7 million dollars on the free agent market.

I think Mattingly's lineup is an above average one when using common and traditional methods for constructing a lineup.  A look at the Batting Order Frequency Table (BOF Table) does show what the simulator thinks are a few glaring mistakes though.  When we look at the BOF Table you will notice that a few players are more versatile in the lineup slot that they give the most value in.  Puig for example only slots into three locations... leadoff(3), second(8) and fifth(14) while players like Kemp and Ellis slot in to many more locations but not as frequently.  Let's walk through each player in Mattingly's lineup one at a time and look for strengths and weaknesses.

Player by Player Analysis:
Leadoff - Dee Gordon:  Mattingly has Dee Gordon in the leadoff spot and according to the simulator that is the best spot for him, though hitting 6th can be good as well as batting 2nd depending of course on the rest of the batting order makeup.  Nails it.

Second - Yasiel Puig:  Puig's best spot is hitting fifth where he can help rack up the RBIs but hitting second is also a good spot for Puig.  I think Mattingly does well on Puig's position in the order.  Good

Third - Adrian Gonzalez:  Just like with Puig, Mattingly has slotted Gonzalez into his second best spot in the batting order.  The simulator prefers Gonzalez hitting one spot lower which wouldn't ordinarily be that big of a deal as long as the person batting fourth in his place belonged there too.  Good

Cleanup - Matt Kemp:  The simulator thinks Kemp is many things but a cleanup hitter on this team is not one of them.  According to the simulator it is a big mistake to bat Kemp fourth.  There are many lineup positions that Kemp can slot into and you can still have a highly optimal lineup but fourth is not one of them.  Stink

Fifth - Hanley Ramirez:  Out of the top 25 lineups the simulator has Ramirez hitting fifth only once.  The simulator seems to like Gonzalez and Ramirez hitting in the 3rd/4th slots in either order making this another glaring mistake according to the sim.  The 4th and 5th spots in the lineup are probably not good spots to be making mistakes at.  Stink

Sixth - Carl Crawford:  Crawford also is pretty versatile in where he slots in to the top 25 lineups and Mattingly gets back on the winning track as he nails this one.  Crawford hits 6th in 11 out of the top 25 most optimal lineups including three of the top five.  Nails it.

Seventh - Juan Uribe:  The simulator thinks that Uribe should hit seventh or eighth and that is exactly where Mattingly puts him.  Slow, low on base second tier power hitters are good for the bottom of the lineup as they tend to give you that last good chance to clear the bases before the black hole of the pitcher batting.  Nails it.

Eighth - A.J. Ellis:  Ellis like Kemp is able to slot in to many different lineup spots without causing carnage to the optimization of it.  Ellis is not a very good hitter but he still does bring a decent skill of drawing walks to the table, that is why you see him hitting at the top of the lineup a few times and ninth.  His poor hitting but good on base skills are a good fit for hitting 9th and moving the pitcher to 8th as he turns in to a quasi leadoff hitter in the 9th spot.  Good.

Ninth - Pitchers Spot:  The simulator has the pitcher hitting 9th in 17 out of 25 (68%) of the top lineups.  So there can be some value to hitting the pitcher eighth but you have to have the right personnel and batting order mix to make it work.  Nails it.
.
Overall, Mattingly does a pretty good job but the simulator thinks he made big mistakes in hitting Matt Kemp cleanup and Hanley Ramirez fifth and really with the tools that Mattingly has (instincts) you really wouldn't know this was a mistake.

.