Skip to main content

The Baseball Simulator Now Includes Home Field Advantage

Last week, we released a baseball simulator in the FanGraphs Lab. This week, we’re adding home field advantage to the simulator. You can toggle HFA on and off using a new menu option:

The chosen home field advantage will then be applied to whatever simulation you run. But how do we calculate home field advantage in this simulated environment? Let’s go over it.

You’re probably familiar with home field advantage being expressed in terms of winning percentage. From 2000-2010, the home team’s winning percentage hovered around 54%. In the next decade, it declined to around 53%. In recent years, it has fallen to the 52-53% range. Since our simulation works at a plate appearance-level, however, we couldn’t look at game outcomes to measure home field advantage. Instead, we used PA-level data to infer how much playing at home affects the rate of each outcome in our simulator.

We took data from 2022-2025, the universal DH era, and used it to fit three different models of home field advantage. First, we simply compared the rate of each outcome achieved at home and on the road, without considering batter identity. Next, we fitted a logistic regression that considered batter identity plus a categorical home/away variable. Finally, we fitted another logistic regression that used batter identity, pitcher identity, and home/away. The three models produced similar values, within a margin of error, which gives us confidence that the methodology is sound.

In our sample, home field advantage appears to act chiefly on strikeouts, walks, and home runs. Home batters strike out less frequently, (unintentionally) walk more frequently, and hit home runs more frequently. They also hit doubles more frequently, though that effect size was meaningfully smaller. We found no statistically significant variation in hit-by-pitch, single, triple, or “in play, out” rates, though it’s worth noting that for triples in particular, the sample size was too small for much precision.

We use the home field advantage factors that we calculated in the above step to modify the baseball simulation engine. We make these modifications in odds ratio space by taking the initially calculated probabilities of each outcome, decomposing them into odds ratios, modifying them by the home field factor, and then re-casting them back into probabilities. This method accounts for varying effect sizes based on expected matchup outcomes. Luis Arraez doesn’t get the same raw boost in home runs as Aaron Judge, in other words.

We tested this method of accounting for home field advantage by having identical teams face off against each other, both with and without the home field modifiers. Home team winning percentages averaged between 52% and 52.5%, exactly what we expected given the relationship between the observed change in individual outcome frequencies and actual winning percentage. In other words, we feel that our model is well-calibrated on real-world data in recent years.

By default, we split our calculated home field adjustments in half and then assign a bonus to home batter outcomes and a penalty to away batter outcomes. If you’d like to run your own version of home field, though, you can change the calibration scalar away from that default 0.5 weighting:

Moving that slider will linearly increase or decrease the home and away modifiers added to the simulation. You can also use your own custom weights for each event type, though frankly you shouldn’t need to; we just thought it was pretty cool that you can, so we left the feature in. As a word of warning, moving these sliders by a large amount can produce nonsensical results; if your multipliers mean that the home team hits 50% more singles than the away team on average, the simulated game won’t look much like baseball.

The rest of the simulation is unchanged; you can see a description of its current features here. As before, this is still very much a beta product. If you see any issues or have any feature requests, just let us know, either in the comments here or by using the Lab’s feedback button.

Source



* This article was originally published here

Comments

Popular posts from this blog

Different Baseball Pitches

In baseball, a pitch is the demonstration of tossing a baseball toward home plate to begin a play. The term originates from the Knickerbocker Rules. Initially, the ball must be truly "pitched" underhand, as with pitching horseshoes. Overhand tossing was not permitted until 1884. The biomechanics of pitching have been concentrated on widely. The periods of tossing incorporate windup, early positioning, late positioning, early increasing speed, late quickening, deceleration, and take after through. Pitchers toss a mixture of pitches, each of which has a marginally distinctive speed, direction, development, hand position, wrist position and/or arm edge. These varieties are acquainted with confound the player in different ways, and at last guide the cautious group in getting the hitter or baserunners out. To get assortment, and consequently improve protective baseball procedure, the pitcher controls the hold on the ball at the purpose of discharge. Varieties in the hold caus...

Pitching Grips

Pitching Grips   Pitching holds pitching begins with the right grasp on the baseball. Here are probably the most widely recognized baseball pitching grasps and how I tossed them in school and expert baseball. Utilize these pitching hold portrayals and pictures as a manual for showing signs of improvement grasp on the baseball. Step by step instructions to Grip And Throw A Four Seam Fastball Step by step instructions to grasp and toss a four crease fastball - pitching holds for the four crease fastball Four-crease fastball To hold the four crease fastball, put your file and center fingertips straightforwardly on the opposite crease of the baseball. The "horseshoe crease" ought to confront into your ring finger of your tossing hand (as demonstrated in the photo on the left). I call it the horseshoe crease essentially in light of the fact that the crease itself resembles the state of a horseshoe. Next, spot your thumb specifically underneath the basebal...

7 Baseball Pitching Grips (Cheat Sheet Included!)

7 Baseball Pitching Grips (Cheat Sheet Included!)