Linear regression helps us understand the relationship between two variables:
- X variable: The predictor (independent variable)
- Y variable: The outcome (dependent variable)
Goal: Draw the best straight line through data points to make predictions.
Example: How does a car’s weight affect its fuel efficiency?