#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?

RunsScored = -788.46 + 2917.42*(0.361)+1637.93*(0.409)-368.97*(0.257)
RunsScored
## [1] 839.8167

#About 840 expected runs to be scored

#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?

RunsAllowed = -837.38+2913.60*(0.267)+1514.29*(0.392)
RunsAllowed
## [1] 534.1529

#About 535 runs to be allowed