A method for modeling the relationship between two numeric variables — one you observe (\(X\)) and one you want to predict (\(Y\)).
Everyday examples:
- Does temperature predict ice cream sales?
- Does hours studied predict exam score?
- Does penguin flipper length predict body mass?
If there’s a roughly straight-line relationship between \(X\) and \(Y\), simple linear regression helps you describe it, measure it, and use it for prediction.
In our code along, we work with a simple dataset — columns named X and Y — so you can focus on the method without worrying about the subject matter.