Activity 8 - Predicting Runs Scored and Allowed

Exercise 1 - Predict Runs Scored

OBP <- 0.361
SLG <- 0.409
runs_scored <- -804.6 + (2737.8 * OBP) + (1584.9 * SLG)
runs_scored
## [1] 831.9699
# Exercise 2 - Predict Runs Allowed
OOBP <- 0.267
OSLG <- 0.392
runs_allowed <- -837.4 + (2913.6 * OOBP) + (1514.3 * OSLG)
runs_allowed
## [1] 534.1368