One of the most common things in statistics is to describe the linear relationship between two variables by fitting a best-fit line to the scatterplot of those variables. The method for finding the best-fit line is called simple linear regression and is the topic of this module.
After completing this module, you should be able to ...
- Fit a regression line in R.
- Visualize the regression line in R.
- Make predictions using the regression line in R
Preparation for Class
Use the resources below to answer these questions. [Problems with videos?]
- Primary Resources (~3 pages, 39 mins)
- Reading
- Linear Regression in R [7 mins] … corresponding resource
- Fall 2020B In-Class “Review Lecture” [32 mins]
- Projection is this example
Practice
Archived Materials
- Exercises