Q4.10 Part C
February 2, 2026
[2]: sea_temp = c(26.7, 26.6, 26.6, 26.5, 26.3, 26.1)
growth = c(0.85, 0.85, 0.79, 0.86, 0.89, 0.92)
head(sea_temp)
head(growth)
[5]: cor(sea_temp, growth)
-0.811107105653814
[6]: round(cor(sea_temp, growth), 2)
-0.81
Using R, the correlation coefficient is r = −0.81. This agrees with the value found in part (b) up
to roundoff error.
1