Linear regression is a statistical method used to examine the relationship between a dependent variable and one or more independent variables.
- Dependent variable (Y): The outcome we want to predict.
- Independent variable (X): A factor used to explain or predict the outcome.
- Regression line: The line that best represents the relationship between the variables.
Our Example:
Can we predict a car’s fuel efficiency (MPG) based on its weight and horsepower?