Lesson 1: Simple Linear Regression
Simple Linear Regression
Regression is about finding the “best fit” line through a scatter of data points.
The Model
We assume a linear relationship between an independent variable () and a dependent variable ().
- : Dependent Variable (Target)
- : Independent Variable (Feature)
- : Intercept
- : Slope (Coefficient)
- : Error term (Residual)
Visualizing the Fit
Imagine we are predicting House Price based on Size.
Least Squares Method
How do we find the “best” line? We minimize the sum of the squared differences (residuals) between the actual data points and the predicted line.