February 12, Winthrop University A MARKOV CHAIN MODEL FOR RUN PRODUCTION IN BASEBALL. Thomas W. Polaski. Introduction.

Similar documents
A One-Parameter Markov Chain Model for Baseball Run Production

ANALYSIS OF A BASEBALL SIMULATION GAME USING MARKOV CHAINS

Simulating Major League Baseball Games

A Markov Model for Baseball with Applications

To find their sum, you could simply add from left to right, or you could pair the numbers as illustrated and add each pair.

Chapter 1 The official score-sheet

Fairfax Little League PPR Input Guide

INFORMS Transactions on Education

Hitting with Runners in Scoring Position

OFFICIAL 2018 FAST PLASTIC RULEBOOK

One could argue that the United States is sports driven. Many cities are passionate and

HCLL Scorekeeping Clinic

GUIDE TO BASIC SCORING

Using Markov Chains to Analyze a Volleyball Rally

Richmond City Baseball. Player Handbook

Major League Baseball Offensive Production in the Designated Hitter Era (1973 Present)

Season Plans. We hope you have learned a lot from this book: what your responsibilities. chapter 9

A Remark on Baserunning risk: Waiting Can Cost you the Game

Swinburne Research Bank

Master of Arts In Mathematics

Player Progression-Softball

Section 2 PLAYING TIME

The MLB Language. Figure 1.

2017 International Baseball Tournament. Scorekeeping Hints

2018 Minors AA (Farm) League Rules

TEE BALL BASICS. Here is a field diagram: 45 feet

AggPro: The Aggregate Projection System

THE BOOK--Playing The Percentages In Baseball

Beaver Bash Tournament Rules and Information

IBAF Scorers Manual INTERNATIONAL BASEBALL FEDERATION FEDERACION INTERNACIONAL DE BEISBOL

TBALL LEAGUE RULES TEE BALL RULES AND GUIDELINES. 1. BASEBALLS 1.1. A soft baseball (safety ball) will be used for the player's safety.

2010 Boston College Baseball Game Results for Boston College (as of Feb 19, 2010) (All games)

Player Progression Baseball

Should pitchers bat 9th?

Indoor Wiffle Ball League Rule Book

OAKLAND ATHLETICS MATHLETICS MATH EDUCATIONAL PROGRAM. Presented by ROSS Dress for Less and Comcast SportsNet California

TPLL 2017 MINORS RULES

2018 FCYB Local Rules

SUPERSTITION LITTLE LEAGUE LOCAL RULES

DECISION MODELING AND APPLICATIONS TO MAJOR LEAGUE BASEBALL PITCHER SUBSTITUTION

Table of Contents. Pitch Counter s Role Pitching Rules Scorekeeper s Role Minimum Scorekeeping Requirements Line Ups...

IBAF Scoring Manual INTERNATIONAL BASEBALL FEDERATION FEDERACION INTERNACIONAL DE BEISBOL

Redmond West Little League

2019 Season Local Ground Rules Minors, Majors Danville Little League

Williamsburg Youth Baseball League 2018 Rules

Jupiter Holiday Wood Bat Tournament Supplemental Rules

THE FIELD THE INFIELD

Ahwatukee Little League 2016 Local Regulations and Playing Rules

6-8th GRADE WORKBOOK CLAYTON KERSHAW HEIGHT: 6 3 WEIGHT: 220 BATS: LEFT THROWS: LEFT BORN: 3/19/1988 MLB DEBUT: 5/25/2008

Langley Baseball Division Expectations

Using Markov Chains to Analyze Volleyball Matches

Bronco League Rules and Guidelines

arxiv: v1 [stat.ap] 18 Nov 2018

Field Manager s Rulebook

Lakeshore Baseball and Softball Association

September 29, New type of file on Retrosheet website. Overview by Dave Smith

Berks Fall Baseball Rules

Package mlbstats. March 16, 2018

15.0 T-BALL RULES. If a player overthrows the ball to a baseman, the runner does not advance a base PICKERING BASEBALL ASSOCIATION

NUMB3RS Activity: Is It for Real? Episode: Hardball

Guide to Softball Rules and Basics

Westfield Youth Sports, Inc. Double A Baseball Rules

JULY 2012 GREYSCALE Mathletics_Workbook_6-8.indd 1

RULES WE NEED TO KNOW

FARM DIVISION RULES Spring 2017

When Should Bonds be Walked Intentionally?

MCCS SOP XX-02, Subj: YOUTH SPORTS PROGRAM

The pth percentile of a distribution is the value with p percent of the observations less than it.

Tball League Division Rules

Draft - 4/17/2004. A Batting Average: Does It Represent Ability or Luck?

CORONA PONY YOUTH BASEBALL LOCAL RULES & REGULATIONS (Revised: January, 2016)

KIMBERTON YOUTH ATHLETIC LEAGUE Rules of Play Baseball AA Division

Del Mar Little League AA Rules of Play

The Rise in Infield Hits

Baseball and Softball

Arlington Doc Bonaccorso Summer Classic Tournament Rules 8U Updated 7/11/16

Triple Lite Baseball

Computer Scorekeeping Procedures

Level 2 Scorers Accreditation Handout

An average pitcher's PG = 50. Higher numbers are worse, and lower are better. Great seasons will have negative PG ratings.

Fairfield National Little League. AAA Rules (updated: Spring 2013)

Spring Transition Baseball Division Plan

MONEYBALL. The Power of Sports Analytics The Analytics Edge

OFFICIAL RULEBOOK. Version 1.08

Which On-Base Percentage Shows. the Highest True Ability of a. Baseball Player?

2018 MAJOR DIVISION RULES

HYAA Black and Gold Baseball Rules. Ages 6-12

ZERO TOLERANCE FOR UNRULY BEHAVIOR

HMB Little League Scorekeeping

FYB/USSSA 2019 LOCAL TOURNAMENT RULES

Predicting the use of the sacrifice bunt in Major League Baseball BUDT 714 May 10, 2007

AMERICA S MAIL LEAGUE CONSTITUTION. Updated October 13, (2011 points of emphasis or changes in BOLD)

1. The Ohio Hot Stove Baseball League Rules are to apply, unless SYB specifies the rule for league play.

2015 GTAAA Jr. Bulldogs Memorial Day Tournament

OFFICIAL RULEBOOK. Version 1.16

Hershey Little League Player Development Guide

RULES AND REGULATIONS OF FIXED ODDS BETTING GAMES

In-house Baseball Rulebook 2016 for the (7-8 years old)

Pinelands Baseball League Cal Ripken Majors Rules and Regulations

RIVIERA LITTLE LEAGUE 2018 NATIONAL DIVISION RULES

Transcription:

Winthrop University February 12, 2013

Introdcution: by the Numbers and numbers seem to go together. Statistics have been kept for over a hundred years, but lately sabermetrics has taken this obsession to a new level. Mathematical models of baseball are used to compare eras, players, teams, and even stadia. Three aspects of baseball make mathematical models tractable: relatively small number of configurations relatively small number of events that can happen discrete nature

Possible Base Configurations and Events Bases Occupied: None 1st only, 2nd only, 3rd only, 1st and 2nd, 1st and 3rd, 2nd and 3rd, 1st, 2nd and 3rd Outs: 0, 1, 2, or 3 Events: single, double, triple, home run, walk, hit batsman, out,...

A Markov chain is a mathematical model for movement between states. A process starts in one of these states and moves from state to state. The moves between states are called steps or transitions. The chain can be said to move between states and to be at a state or in a state after a certain number of steps. The state of the chain at any given step is not known, but the probability that the chain is at a given state after n steps depends only on the state of the chain after n 1 steps, and the probabilities that the chain moves from one state j to another state i in one step.

The Transition Matrix P These probabilities are called transition probabilities for the Markov chain. The transition probabilities are placed in a matrix called the transition matrix P for the chain by entering the probability of a transition from state j to state i at the (i, j)-entry of P. So if there were m states named 1, 2,... m, the transition matrix would be the m m matrix P = From: 1 j m To:. 1 p ij i m

The Big Idea Use a Markov chain to model run production in baseball. States could be different possible configurations. Transition probabilities could be calculated from actual data.

States of the Markov Chain Transient States Bases Occupied Outs Bases Occupied Outs None 0 1st,2nd 1 1st 0 1st,3rd 1 2nd 0 2nd,3rd 1 3rd 0 1st,2nd,3rd 1 1st,2nd 0 None 2 1st,3rd 0 1st 2 2nd,3rd 0 2nd 2 1st,2nd,3rd 0 3rd 2 None 1 1st,2nd 2 1st 1 1st,3rd 2 2nd 1 2nd,3rd 2 3rd 1 1st,2nd,3rd 2 Absorbing States Left on Base Outs Left on Base Outs 0 3 2 3 1 3 3 3

Transition Probabilities Only the following events are allowed for the player at bat: single, double, triple, home run, walk, hit batsman, out. No base stealing, errors, sacrifices, sacrifice flies, double plays, triple plays, or other ever-more-bizarre events are allowed. For the following analysis to work, each batter must have the same probability of singling, doubling, etc. Each batter is identical.

Outcomes of Batting Events Batting Event Walk or Hit Batsman Single Double Outcome The batter advances to first base. A runner on first base advances to second base. A runner on second base advances to third base only if first base was also occupied. A runner on third base scores only if first base and second base were also occupied. The batter advances to first base. A runner on first base advances to second base. A runner on third base scores. A runner on second advances to third base with probability 1 p and scores with probability p. (p = 0.63) The batter advances to second base. A runner on first base advances to third base. A runner on second base scores. A runner on third base scores.

Outcomes of Batting Events (cont.) Triple Home Run Out The batter advances to third base. A runner on first base scores. A runner on second base scores. A runner on third base scores. The batter scores. A runner on first base scores. A runner on second base scores. A runner on third base scores. No runners advance. The number of outs increases by one.

Calculation of Transition Probabilities The transition probabilities are calculated from the above rules and from aggregate data. For example, the data from the 2012 MLB season is: Batting Event Occurrences Probability Walk or Hit Batsman 16203 0.089 Single 27941 0.154 Double 8261 0.046 Triple 927 0.005 Home Run 4934 0.027 Out 123128 0.679 Example: The probability of a transition from runner on first, 0 out to runners on first and second, 0 out is the probability of a walk or a hit batsman or a single, which is 0.089 + 0.154 = 0.263.

The Transition Matrix P The transition probabilities are calculated as above and placed in the transition matrix P. We order the states listing absorbing first, then transient. The probability of a transition from an absorbing state to itself is 1. The probability of a transition from an absorbing state to any other state is 0. The probabilty of a transition from a transient state is governed by the above probabilities. [ ] I S P = O Q

The Fundamental Matrix M The fundamental matrix for the Markov chain is M = (I Q) 1. Suppose that the chain starts at state i. Then The expected number of visits to state j before being absorbed is the (j, i)-element in M. The expected number of steps until absorption is the sum of the (j, i)-elements of M, where j ranges over all transient states. In terms of baseball, the sum of the i th column of M is the expected number of batters that will come to bat during the remainder of the inning starting from state i. The sum of the first column of M is the expected number of batters that will bat in an inning. We call this value E(B).

The Matrix A = SM The matrix A = SM is important to our analysis. Suppose that the chain starts at the transient state i. Then The (j, i)-element of the matrix A = SM is the probability that the Markov chain is eventually absorbed at state j. In the baseball model, the i th column of A contains the probabilities that 0, 1, 2, or 3 runners are left on base at the end of the half-inning starting at state i. Thus the first column of A can be used to compute the expected number of runners left on base: 0 P(0 left) + 1 P(1 left) + 2 P(2 left) + 3 P(3 left) This value is called E(L).

The Conservation Law Every batter who comes to the plate makes an out, scores, or is left on base. Let B be the number of batters who come to the plate in an inning, R be the number of runs scored, and L be the number left on base. Taking expected values, B = 3 + R + L, or R = B L 3 E(R) = E(B) E(L) 3 and we can calculate E(B) and E(L), thus E(R).

Does this Work? For the 2012 MLB season, the model predicts that 0.439618 earned runs will score in a single inning on the average. Since 43,355 innings were played during the season, the model predicts that 19,059.6 earned runs would score during the season. In reality, 19,302 earned runs scored during the season, or 0.445208 per (half)-inning. The error in the model was 242.4 earned runs for the season; the relative error was 1.26%.

Does this Work? Earned Runs Relative Year Scored Prediction Error Error 2000 22874 23207.0 333.0 1.46% 2001 21215 21363.2 148.2 0.70% 2002 20529 20701.2 172.2 0.84% 2003 21154 21114.0-40.0-0.19% 2004 21510 21724.7 214.7 1.00% 2005 20562 20634.3 72.34 0.35% 2006 21723 21950.6 227.6 1.05% 2007 21529 21407.8-121.2-0.56% 2008 20790 20808.4 18.4 0.09% 2009 20731 20904.0 173.0 0.83% 2010 19595 19411.1-183.9-0.94% 2011 19032 18866.9-165.1-0.87% 2012 19302 19059.6-242.4-1.26% Total 270546 271152.9 606.9 0.22%

Earned Runs Scored ( ) and Predictions ( ) 1955-2012 24 000 22 000 20 000 18 000 16 000 14 000 12 000 10 000

Even More Results In a similar manner, we can also compute expected runs scoring after any state has been reached. For the 2012 MLB season we get: Bases Expected Bases Expected Occupied Outs Runs Occupied Outs Runs None 0 0.4400 1st,2nd 1 0.8609 1st 0 0.7817 1st,3rd 1 0.9135 2nd 0 0.9959 2nd,3rd 1 1.0746 3rd 0 1.0285 1st,2nd,3rd 1 1.4002 1st,2nd 0 1.3317 None 2 0.0913 1st,3rd 0 1.3852 1st 2 0.1894 2nd,3rd 0 1.5593 2nd 2 0.3008 1st,2nd,3rd 0 2.0189 3rd 2 0.3464 None 1 0.2384 1st,2nd 2 0.4113 1st 1 0.4565 1st,3rd 2 0.4500 2nd 1 0.6177 2nd,3rd 2 0.5614 3rd 1 0.6843 1st,2nd,3rd 2 0.7325

Applications Player Rating Strategy Consider the same player batting over and over. Use the player s batting statistics to generate transition probabilities. Run model to find the expected number of earned runs the player would score in a single inning or a nine-inning game. Compare the expected number of runs starting from certain states to decide on whether to sacrifice or steal. Example: Sacrifice with man on first and no outs.