problem-3.21

problem-3.21  The correlation is found with
> with(batting, cor(HR,SO))
[1] 0.7085
    
Although the two variables are quite correlated, there is a likely lurking variable-the number of at bats-that would explain the correlation.