When we are having more than one input columns and our data is in some sort of linear form then we use multiple linear regression.
Multiple linear regression is just an extension of simple linear regression.
Multiple linear regression draws a linear plane in our data set which passes from every point closely.
There are two types of multiple linear regression.
1. Ordinary least square(OLS)
2. Generalized least square (GLS)
Mathematical Intuition
Code for Multiple Linear Regression.
pandas library is used for performing functions related datasets.
For performing multiple linear aggression we use sklearn library.
train_test_split function is used for training the data set.
Comments
Post a Comment