Simple linear regression is one of the most fundamental tools in statistics. The basic idea is pretty straightforward — you have two variables, and you want to know if one can help predict the other.
More specifically, we are trying to model a linear relationship between:
- a response variable \(Y\) (what we are trying to predict)
- a predictor variable \(X\) (what we use to make that prediction)
We will be using the mtcars dataset throughout this presentation. The question we are asking is: does a car’s horsepower tell us anything about its fuel efficiency?