With the airquality data find a 99 % confidence interval for the correlation between Ozone and Wind. (R STUDIO)
Solution:
We have find a 99 % confidence interval for the correlation between Ozone and Wind.
We use following R commands:
> air <- airquality
> CI = cor.test(airquality$Ozone,airquality$Wind,conf.level=0.99,method="pearson")
> CI
Press Enter
which gives following output
Pearson's product-moment correlation
data: airquality$Ozone and airquality$Wind
t = -8.0401, df = 114, p-value = 9.272e-13
alternative hypothesis: true correlation is not equal to 0
99 percent confidence interval:
-0.7342471 -0.4245697
sample estimates:
cor
-0.6015465
Thus a 99 % confidence interval for the correlation between Ozone and Wind is (-0.7342 , -0.4246).
Get Answers For Free
Most questions answered within 1 hours.