We often have two measurements on the same units and want to know:
- Is there a relationship between \(x\) and \(y\)?
- If so, how strong is it, and in which direction?
- Given a new \(x\), what \(y\) should we predict, and how uncertain is that prediction?
Simple linear regression is the smallest useful version of this problem!
Running example: the mtcars data (32 cars, Motor Trend 1974). Does a car’s weight explain its fuel economy?