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
.
.

No comments: