Multiple linear regression models a response variable \(Y\) as a linear function of two or more predictors \(X_1, X_2, \dots, X_k\).
It extends simple linear regression (one predictor) by letting several variables jointly explain the outcome.
- We will use the built-in
mtcarsdataset. - Response: miles per gallon (
mpg) - Predictors: weight (
wt) and horsepower (hp)
The goal: understand how fuel efficiency depends on a car’s weight and power simultaneously.