Simple linear regression is a tool used show relation between two variables. Simple Linear Regression models the relationship between:
- A response variable \(Y\) (what we want to predict)
- A predictor variable \(X\) (what we use to predict)
The goal is to find the best-fitting straight line through the data. Linear regression is a supervised algorithm meaning it needs labeled training data to learn and it learns from error. —