2.2 The Statistical Sommelier: An Introduction to Linear Regression

Quick Question

Using the data set wine (CSV), what is the correlation between HarvestRain and WinterRain?

Exercise 1

 

Explanation

You can compute the correlation between HarvestRain and WinterRain by typing the following command into your R console:

> cor(wine$HarvestRain, wine$WinterRain)