# Lab 08: Simple Linear Regression

Use the dataset penguins. Download the data and save the CSV file into your Lab08 directory (so that it is submit when you upload your Lab08 folder). Load the dataset into R.

Read the help file about penguins, to better understand the data set.

Please submit a folder containing your Quarto input (qmd) and output (html) documents for this lab, named `Lab08`

, to our shared Google Drive folder when you are finished.

Choose two numerical variables of your choice.

Of your two numerical variables, which variable is more likely to explain the other? Whichever you choose will go on the x-axis of your plot.

Make a scatter plot of your numerical variables. Put the variable that you think is the more appropriate explanatory variable on the x-axis.

State one interesting thing about your plot in context of the data.

Fit linear regression to your two numerical variables, ensuring the x-axis variable goes in the appropriate spot of your code.

Interpret the intercept in context of the data.

Does this interpretation make sense?

Interpret the slope in context of the data.

Does this interpretation make sense?

Perform an appropriate hypothesis test of the slope using \(\alpha = 0.01\). Please state your hypotheses.

Based on your test, which hypothesis is more likely given the data? State your conclusion as either “reject H0” or “fail to reject H0”, and explain why this conclusion is appropriate.

Interpret in context of the data your conclusion of the hypothesis test.