If a baseball team scores 763 runs and allows 614 runs, how many games do we expect the team to win?
Using the linear regression model constructed during the lecture, enter the number of games we expect the team to win:
# RS = Runs Scored
# RA = Runs Allowed
RS <- 763
RA <- 614
# Get runs difference by subtracting RS and RA
RS - RA
## [1] 149
# RD = Runs Difference
RD <- 149
# Get number of Wins (W)
# W = 80.8814 (Intercept) x 0.1058 (Coefficient for RD) * RD
80.8814 + (0.1058 * RD)
## [1] 96.6456
W = 96.6456