Lesson 7.2: Multiple Linear Regression
🔹 What is Multiple Linear Regression?
Multiple Linear Regression (MLR) is an extension of Linear Regression that predicts a continuous target variable using two or more independent variables.
Equation:
Y=b0+b1X1+b2X2+…+bnXnY = b_0 + b_1X_1 + b_2X_2 + … + b_nX_n
-
YY → Predicted output
-
X1,X2,…,XnX_1, X_2, …, X_n → Independent variables
-
b0b_0 → Intercept, b1…bnb_1…b_n → Coefficients
🔹 Key Concepts
-
Captures effects of multiple features on the target variable.
-
Assumes a linear relationship between each independent variable and the target.
-
Useful when single variable is not enough to explain output.
🔹 Example
Predicting house price using size, location, number of bedrooms, and age:
-
X_train→ Matrix of multiple features -
y_train→ Corresponding house prices -
Model learns coefficients for each feature
🔹 Advantages
-
Handles multiple features.
-
Provides insight into which feature impacts target most.
✅ Quick Recap:
-
Multiple Linear Regression → Predict continuous output using multiple features.
-
Key → Coefficients show the influence of each feature.
