Simple linear regression models the relationship between two continuous variables by fitting a straight line through observed data.
Goal: Predict a response variable \(Y\) using a single predictor variable \(X\).
Real world examples:
Predicting house price from square footage, estimating fuel efficiency from vehicle weight, or forecasting sales from advertising spend.
We’ll go through the math, fit a model in R, and visualize the results.