Linear regression is a statistical method used to model the relationship between:
- Dependent variable (Y): The outcome we want to predict
- Independent variable (X): The predictor variable
The goal is to find the best-fitting straight line through the data points that minimizes the sum of squared residuals.
Applications:
- Predicting house prices based on square footage
- Forecasting sales based on advertising spend
- Estimating exam scores based on study hours