FanGraphs Lab: A Baseball Simulator

0
4


We’re excited to announce that the newest addition to the FanGraphs Lab is a baseball simulator:

You possibly can click on on any of the day’s video games to pre-fill the rosters, or construct your individual utilizing present gamers. The simulator will then simulate a recreation 10,000 occasions.

Let’s go over how this works:

  1. If you choose one of many day’s video games, we pull within the rosters for every crew. We first look to see if there’s a confirmed lineup, and if there isn’t, we use the RosterResource platoon lineup primarily based on the handedness of the opposing beginning pitcher.
  2. Subsequent, we construct out the likelihood of the next occasions for every doable batter/pitcher matchup: single, double, triple, house run, stroll, hit-by-pitch, strikeout, and in play, outs. That is finished by taking the ZiPS or Steamer platoon projections for each the batter and the pitcher, relying on the projection system you select. As an illustration, if the batter hits right-handed and the pitcher throws left-handed, we might pull within the batter’s “vs L” projections and the pitcher’s “vs R” projections. For Steamer, we go a step additional, figuring out whether or not the pitcher is a starter or a reliever, after which pulling the precise “vs L as Reliever” projection.
  3. As soon as we now have the pitcher’s and batter’s particular person platoon projections, we do an odds ratio calculation (which incorporates league averages), and now we now have the likelihood of every occasion taking place for the batter/pitcher matchup.
  4. We additionally seize every batter’s Velocity Rating, stolen base charge and stolen base makes an attempt per alternative.
  5. We use all that information to simulate a recreation. We run 10,000 simulations, after which show the outcomes.

The consequence set you get is powerful.

You possibly can see the share probability of every crew successful, together with the run distribution of all of the video games simulated, in addition to a variety of crew stats and their corresponding histograms:


You Aren’t a FanGraphs Member


It seems such as you aren’t but a FanGraphs Member (or aren’t logged in). We aren’t mad, simply disillusioned.


We get it. You need to learn this text. However earlier than we allow you to get again to it, we might wish to level out just a few of the nice explanation why you need to develop into a Member.

1. Advert Free viewing! We cannot bug you with this advert, or another.

2. Limitless articles! Non-Members solely get to learn 10 free articles a month. Members by no means get lower off.

3. Darkish mode and Basic mode!

4. Customized participant web page dashboards! Select the participant playing cards you need, within the order you need them.

5. One-click information exports! Export our projections and leaderboards on your private initiatives.

6. Take away the photographs on the house web page! (Truthfully, this does not sound so nice to us, however some individuals wished it, and we like to offer our Members what they need.)

7. Much more Steamer projections! We’ve handedness, percentile, and context impartial projections out there for Members solely.

8. Get FanGraphs Stroll-Off, a personalized 12 months finish overview! Discover out precisely the way you used FanGraphs this 12 months, and the way that compares to different Members. Do not be a sufferer of FOMO.

9. A weekly mailbag column, solely for Members.

10. Assist assist FanGraphs and our total employees! Our Members present us with crucial sources to enhance the positioning and ship new options!


We hope you will take into account a Membership at present, for your self or as a present! And we notice this has been an awfully lengthy gross sales pitch, so we have additionally eliminated all the opposite advertisements on this article. We did not need to overdo it.

We even have common stats for every batter and pitcher:

And in the event you click on on a selected batter or pitcher line, we now have histograms of the outcomes for every simulation:

We additionally embody a matchup grid, which exhibits all the possibilities we’re utilizing for every matchup:

We show three pattern video games out of the ten,000 simulations:

Lastly, in the event you click on on any play, it is going to present you the likelihood of the occasions for that individual matchup:

The simulator additionally permits you to do enjoyable issues like see what would occur if a crew fully composed of Shohei Ohtanis confronted off towards one other crew made up fully of Shohei Ohtanis. The probabilities are almost infinite.

It’s value asking how we all know that the simulator does a good job of really simulating baseball.

First, we recreated our win expectancy tables utilizing the simulator. If the simulator is doing a superb job, we might count on it to have related win expectations primarily based on the bottom out scenario, inning, and recreation rating that we see from actual baseball. As you possibly can see, these had been almost an identical, with some noise as a consequence of pattern measurement. Even 24 million video games isn’t sufficient to take away all of the noise:

We additionally in contrast the simulator’s rest-of-season outcomes to the Steamer rest-of-season projections:

Full Season Projected Stats vs Simulated Full Season Stats by Participant

Staff Simulation W Playoff Odds W Distinction
Dodgers 102.3 99.8 2.4
Braves 91.5 90.6 0.9
Yankees 90.0 88.6 1.4
Mariners 87.8 85.1 2.7
Tigers 85.9 85.6 0.3
Rangers 85.5 83.7 1.8
Guardians 84.4 80.8 3.7
Diamondbacks 84.1 84.8 -0.7
Padres 83.7 83.4 0.3
Phillies 83.7 82.1 1.6
Rays 83.7 81.9 1.8
Cubs 83.6 84.5 -0.9
Pirates 83.1 84.2 -1.1
Royals 81.7 78.3 3.4
Pink Sox 81.5 81.6 -0.1
Brewers 81.0 83.3 -2.3
Mets 79.4 84.2 -4.8
Orioles 79.4 80.8 -1.5
Athletics 79.1 79.1 0.1
Giants 79.1 79.4 -0.2
Twins 78.7 80.1 -1.5
Cardinals 78.5 78.4 0.1
Reds 77.9 78.8 -0.9
Blue Jays 77.1 81.0 -4.0
Astros 75.0 77.3 -2.3
Marlins 74.6 75.6 -1.0
Angels 74.6 75.6 -1.0
Nationals 73.0 71.9 1.1
White Sox 68.9 67.6 1.3
Rockies 61.0 62.0 -0.9

Moreover, the league averages all look cheap by way of the simulated distribution of outcomes:

Baseball Simulator Averages (2025 and 2026 precise stats)

Supply 1B 2B 3B HR BB HBP Ok SB CS R/9
Steamer RoS 14.45% 4.43% 0.39% 2.99% 9.84% 1.07% 21.60% 2.03% 0.59% 4.76
Steamer 14.76% 4.50% 0.42% 3.32% 8.75% 1.02% 21.31% 2.03% 0.59% 4.83
ZiPS 14.08% 4.57% 0.58% 3.07% 8.77% 1.28% 21.77% 2.00% 0.59% 4.70
2025 Stats 14.28% 4.23% 0.34% 3.09% 8.41% 1.05% 22.22% 1.88% 0.54% 4.52
2026 Stats 13.79% 4.13% 0.30% 2.68% 9.89% 1.11% 22.63% 1.94% 0.53% 4.50

Lastly, we checked out how the complete season stats within the simulator in comparison with Steamer’s full season projected stats:

Full Season Projected Stats vs Simulated Full Season Stats by Participant

Metric R-Squared
AVG .967
OBP .913
SLG .946
Ok% (Batters) .990
BB% (Batters) .934
Ok% (Pitchers) .965
BB% (Pitchers) .965
HR% (Pitchers) .891
ERA (Starter) .934
ERA (Reliever) .384

The whole lot seems fairly good right here, aside from reliever ERA, which can be a degree of future investigation. We’re dealing with inherited runners correctly, however reliever ERA is notoriously troublesome to venture as a consequence of pattern measurement. It’s doable this simply exposes one distinction between working a simulation and a pure projection mannequin.

That is very a lot a beta product (which is why we now have it as a part of the Lab), so in the event you see any points or have any characteristic requests, simply tell us, both within the feedback right here or utilizing the Lab’s suggestions possibility.



Supply hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here