Analyzing baseball data with R. (2018)
- Record Type:
- Book
- Title:
- Analyzing baseball data with R. (2018)
- Main Title:
- Analyzing baseball data with R
- Further Information:
- Note: Max Marchi, Jim Albert.
- Authors:
- Marchi, Max
Albert, Jim, 1953-
Baumer, Benjamin - Contents:
- Introduction ; The Lahman Database: Season-by-Season Data Bonds, Aaron, Ruth, and Rodriguez home run trajectories Obtaining the database The Master table The Batting table The Pitching table The Fielding table The Teams table Baseball questions ; Retrosheet Game-by-Game Data The McGwire and Sosa home run race Retrosheet Game logs Obtaining the game logs from Retrosheet Game log example Baseball questions ; Retrosheet Play-by- Play Data Event files Event example Baseball questions Pitch-by-Pitch Data MLBAM Gameday and PITCHf/x PITCHf/x Example Baseball questions Player Movement and Off-the-Bat Data PLAYER Statcast Baseball Savant data Baseball questions Summary Further Reading Exercises Introduction to R Introduction Installing R and RStudio The Tidyverse dplyr The pipe ggplot Other packages ; Data Frames Career of Warren Spahn Introduction Manipulations with data frames Merging and selecting from data frames ; Vectors Defining and computing with vectors Vector functions Vector index and logical variables ; Objects and Containers in R Character data and data frames Factors Lists ; Collection of R Commands R scripts R functions Reading and Writing Data in R Importing data from a file Saving datasets ; Packages Splitting, Applying and Combining Data Iterating using map() Another example Getting Help Further Reading Exercises Graphics Introduction Character Variable A bar graph Add axes labels and a title Other graphs of a character variable Saving Graphs Numeric Variable:Introduction ; The Lahman Database: Season-by-Season Data Bonds, Aaron, Ruth, and Rodriguez home run trajectories Obtaining the database The Master table The Batting table The Pitching table The Fielding table The Teams table Baseball questions ; Retrosheet Game-by-Game Data The McGwire and Sosa home run race Retrosheet Game logs Obtaining the game logs from Retrosheet Game log example Baseball questions ; Retrosheet Play-by- Play Data Event files Event example Baseball questions Pitch-by-Pitch Data MLBAM Gameday and PITCHf/x PITCHf/x Example Baseball questions Player Movement and Off-the-Bat Data PLAYER Statcast Baseball Savant data Baseball questions Summary Further Reading Exercises Introduction to R Introduction Installing R and RStudio The Tidyverse dplyr The pipe ggplot Other packages ; Data Frames Career of Warren Spahn Introduction Manipulations with data frames Merging and selecting from data frames ; Vectors Defining and computing with vectors Vector functions Vector index and logical variables ; Objects and Containers in R Character data and data frames Factors Lists ; Collection of R Commands R scripts R functions Reading and Writing Data in R Importing data from a file Saving datasets ; Packages Splitting, Applying and Combining Data Iterating using map() Another example Getting Help Further Reading Exercises Graphics Introduction Character Variable A bar graph Add axes labels and a title Other graphs of a character variable Saving Graphs Numeric Variable: One-Dimensional Scatterplot and Histogram Two Numeric Variables Scatterplot Building a graph, step-by-step A Numeric Variable and a Factor Variable Parallel stripcharts Parallel boxplots Comparing Ruth, Aaron, Bonds and A-Rod Getting the data Creating the player data frames Constructing the graph The Home Run Race Getting the data Extracting the variables Constructing the graph Further Reading Exercises The Relation Between Runs and Wins Introduction The Teams Table in the Lahman Databse Linear Regression The Pythagorean Formula for Winning Percentage The Exponent in the Pythagorean model Good and Bad Predictions by the Pythagorean model How Many Runs for a Win? Further Reading Exercises Value of Plays Using Run Expectancy The Run Expectancy Matrix Runs Scored in the Remainder of the Innings Creating the Matrix Measuring Success of a Batting Play Jose Altuve Opportunity and Success for all Hitters Position in the Batting Lineup Run Values of Different Base Hits Value of a home run Value of a single Value of Base Stealing Further Reading Exercises Balls and Strikes Effects Introduction Hitter’s Counts and Pitcher’s Counts An example for a single pitcher Pitch sequences from Retrosheet Functions for string manipulation Finding plate appearances going through a given count Expected run value by count The importance of the previous count Behavior by Count Swinging tendencies by count Propensity to swing by location Effect of the ball/strike count Pitch selection by count Umpires' behavior by count Further Reading Exercises Catcher Framing Introduction Acquiring Pitch-Level Data Where is the Strike Zone? Modeling Called Strike Percentage Visualizing the estimates Visualizing the estimated surface Controlling for handedness Modeling Catcher Framing Further Reading Exercises Career Trajectories Introduction Mickey Mantle’s Batting Trajectory Comparing Trajectories Some preliminary work Computing career statistics Computing similarity scores Defining age, OBP, SLG, and OPS variables Fitting and plotting trajectories General Patterns of Peak Ages Computing all affected trajectories Patterns of peak age over time Peak age and career at-bats Trajectories and Fielding Position Further Reading Exercises Simulation Introduction Simulating a Half Inning Markov chains Review of work in run expectancy Computing the transition probabilities Simulating the Markov chain Beyond run expectancy Transition probabilities for individual teams Simulating a Baseball Season The Bradley-Terry model Making up a schedule Simulating talents and computing win … (more)
- Edition:
- Second edition
- Publisher Details:
- Boca Raton : Chapman & Hall/CRC
- Publication Date:
- 2018
- Extent:
- 1 online resource, illustrations
- Subjects:
- 796.35702855133
Baseball -- Statistics -- Data processing
R (Computer program language) - Languages:
- English
- ISBNs:
- 9781351107075
9781351107082
9781351107068
9781351107099 - Related ISBNs:
- 9780367024864
9780815353515 - Notes:
- Note: Description based on CIP data; resource not viewed.
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.369529
- Ingest File:
- 03_017.xml