STAT 441: Lecture 8

Defensive Credit & WAR

Recap & Overview

Offensive Credit Allocation

  • During at-bat \(i\), batting team generates \(\delta_{i}\) run value
  • Lecture 7: divide \(\delta_{i}\) b/w batter and baserunners
  • Conservation of run value: if batting team gains \(\delta\), fielding team gains \(-\delta\)
  • Today: divide \(-\delta_{i}\) b/w pitcher and fielders

Two Possibilities

  • Ball is not put in play during at-bat
    • At-bat ends w/ homerun, strikeout, walk
    • Pitcher deserves all credit (or blame)
  • Ball is put in play (e.g., flyout, groundout, single, double, triple, etc.)
    • \(\hat{p}\): probability of making an out (based on location)
    • Give \(\delta^{(p)} = -\delta \times (1-\hat{p})\) to the pitcher
    • Divide \(\delta^{(f)} = -\delta \times \hat{p}\) among other fielders

Transformed Coordinates

  • Transform: x = 2.5 * (hc_x - 125.42) & y = 2.5 * (198.27 - hc_y)
  • Define new coordinate system where
    • Home plate at bottom of plot at (0,0)
    • Units are in feet
    • First base on the right around (90/sqrt(2), 90/sqrt(2))

More Data Preparation

  • def_atbat2024: at-bat level data table containing
    • Pitcher & fielder identities
    • Batted ball locations & fielder position
    • Ending values of type and events: i.e. end_type and end_events
      • Useful for determining at-bat level outcomes
    • Narrative descriptions: des
  • See lecture notes for full code

Estimating Out Probabilities

Generalized Additive Model

\[ \log\left(\frac{\mathbb{P}(\textrm{out})}{1 - \mathbb{P}(\textrm{out})} \right) = s(x,y), \]

  • \(s(x,y)\) is a smooth function in both \(x\) and \(y\)
    • Technically: \(s(x,y) = \sum_{d=1}^{D}{\beta_{d}\phi_{d}(x,y)}\)
    • \(\phi_{1}, \ldots, \phi_{D}\): fixed set of spline functions
    • \(\phi_{d}\) piecewise polynomial localized to small spatial region
  • Can be fit using the mgcv package

Defining \(\delta^{(p)}\) and \(\delta^{(f)}\)

  • Divide run value \(\delta\) into
    • \(\delta^{(f)} = -1 \times \hat{p} \times \delta\)
    • \(\delta^{(p)} = -1 \times (1 - \hat{p}) \times \delta\)
  • \(\delta_{i}^{(p)} = -1 \times (1 - \hat{p}_{i}) \times \delta_{i}\)
    • Run value created by pitcher in at-bat \(i\)
    • Positive values indicate good performance
  • \(\textrm{RAA}^{(p)}\): sum \(\delta_{i}^{(p)}\)’s across each pitchers at-bats

Fielding Responsibility

  • Say ball hit towards gap b/w 1st base and right field
    • Batting team creates large positive \(\delta\)
    • \(\hat{p} \approx 0\)
    • \(\delta^{(f)}\) is large and negative
  • How much blame should third baseman receive?

Fielder Out Probabilities

Figure 1
Figure 2

Position Weights

  • Idea: assign \(w_{\ell} \delta^{(f)}\) to fielder at position \(\ell\) \[ w_{\ell} = \frac{\hat{p}_{\ell}}{\hat{p}_{1} + \cdots + \hat{p}_{9}} \]
  • \(\hat{p}_{\ell}\): prob. that fielder position \(\ell\) makes out based on location
  • Can estimate \(\hat{p}_{\ell}\) with fielder-specific GAMs
  • Numerical stability: restrict to balls w/in 150ft of typical fielder location
    • I.e., balls hit to deep left field likely irrelevant for first baseman model

Position Weights Examples

Figure 3
Figure 4
Figure 5

Run Value by Fielding Position

  • For each at-bat \(i\) assign \(w_{i,\ell}\delta_{i}^{(f)}\) to player at position \(\ell\)
  • Sums these values for each player-position to get \(\textrm{RAA}_{\ell}^{(f)}\)
    • Some players play multiple positions in the field
  • \(\textrm{RAA}_{\ell}^{(f)}\): run value created by playing position \(\ell\)
  • \(\textrm{RAA}^{(f)} = \textrm{RAA}^{(f)}_{1} + \cdots + \textrm{RAA}^{(f)}_{9}\)

Replacement Level

Recap

  • \(\textrm{RAA} = \textrm{RAA}^{(b)} + \textrm{RAA}^{(br)} + \textrm{RAA}^{(f)} + \textrm{RAA}^{(p)}\)
  • Comprehensive measure of player performance in all parts of the game
  • Absolute \(\textrm{RAA}\) are interesting…
  • … but are much more useful when calibrated to some baseline

Replacement Level

Replacement level is simply the level of production you could get from a player that would cost you nothing but the league minimum salary to acquire.

  • Definition is fairly arbitrary!

we believe that a team making the MLB minimum would win about 29.7% of its games in a give year, or roughly 47-48 per team

Roster-based Definition

  • Most MLB teams carry 12 pitchers & 13 position players
  • On any given day:
    • \(30 \times 12 = 360\) available pitchers
    • \(30 \times 13 = 390\) available position players
  • Sort position players by number of at-bats in which they batted
    • Top 390: not-replacement
  • Sort pitchers by numbers of at-bats in which they pitched
    • Top 360: not-replacement

Replacement-Level Per-At-Bat RAA

  • If we replace Ohtani w/ a replacement-level player, what \(\textrm{RAA}\) values would they achieve?
  • Idea: multiply Ohtani’s number of at-bats by average per-at-bat \(\textrm{RAA}\) of replacement-level players
  • Divide total \(\textrm{RAA}\) for all replacement-level players by total number of at-bats

Looking Ahead