2.2 The Statistical Sommelier: An Introduction to Linear Regression

2.2 The Statistical Sommelier: An Introduction to Linear Regression

Quick Question

Use the dataset wine.csv to create a linear regression model to predict Price using HarvestRain and WinterRain as independent variables, like you did in the previous quick question. Using the summary output of this model, answer the following questions:

Is the coefficient for HarvestRain significant?

 Yes  check
 
 No  close
 
 I can't answer this question using the summary output.   close
 
Check Show Solution

Explanation You can create the model and look at the summary output with the following command: model = lm(Price ~ WinterRain + HarvestRain, data=wine) summary(model) From the summary output, you can see that HarvestRain is significant (two stars), but WinterRain is not (no stars).

Is the coefficient for WinterRain significant?

 Yes  close
 
 No  check
 
 I can't answer this question using the summary output.  close
 
Check Show Solution

Explanation You can create the model and look at the summary output with the following command: model = lm(Price ~ WinterRain + HarvestRain, data=wine) summary(model) From the summary output, you can see that HarvestRain is significant (two stars), but WinterRain is not (no stars).

Note that you will need to answer both questions before checking your answers.

Course Info

Learning Resource Types

theaters Lecture Videos
notes Lecture Notes
assignment_turned_in Problem Sets with Solutions