Exercise 1 If a baseball team’s OBP is 0.361, SLG is 0.409, and BA is 0.257, how many runs do we expect the team to score? Using the linear regression model constructed during the lecture (the one that uses OBP, SLG, and BA as independent variables), find the number of runs we expect the team to score:

OBP <- 0.361
SLG <- 0.409
BA <- 0.257
# Runs Scored = -804.63 + (2737.77 * OBP) + (1584.91 * SLG) + (-368.97 * BA)
-804.63 + (2737.77 * OBP) + (1584.91 * SLG) + (-368.97 * 0.257)
## [1] 737.1079

We can expect this team to score 737 runs.

Exercise 2

If a baseball team’s opponents OBP (OOBP) is 0.267 and opponents SLG (OSLG) is 0.392, how many runs do we expect the team to allow? Using the linear regression model discussed during the lecture (the one on the last slide of the previous video), find the number of runs we expect the team to allow.

OOBP <- 0.267
OSLG <- 0.392
# Runs Allowed = -837.38 + (2913.6 * OOBP) + (1514.29 * OSLG)
-837.38 + (2913.6 * OOBP) + (1514.29 * OSLG)
## [1] 534.1529

We can expect the team to allow 534 runs.