Chapter 9: Problem 7
The intrinsic \(\mathrm{R}\) function cor.test \((\mathrm{x}, \mathrm{y})\) computes the estimate of \(\rho\) and the confidence interval in Exercise 9.7.6. Recall the baseball data which is in the file bb.rda. (a) Using the baseball data, determine the estimate and the confidence interval for the correlation coefficient between height and weight for professional baseball players. (b) Separate the pitchers and hitters and for each obtain the estimate and confidence for the correlation coefficient between height and weight. Do they differ significantly? (c) Argue that the difference in the estimates of the correlation coefficients is the mle of \(\rho_{1}-\rho_{2}\) for two independent samples, as in Part (b).