Description | Linear regression is a statistical and ML method to establish a linear relationship between the input variables (x) and a single output variable (y). The value of y can be calculated from a linear combination of variables x. | |||
Why to use | To perform the Predictive Modeling for the dependent variable. | |||
When to use | When you want to predict a value depending upon single or multiple independent variables. | When not to use | On textual data. | |
Prerequisites | There should not be any missing values in the data.
| |||
Input |
| Output | Predicted value. | |
Statistical Methods used |
| Limitations |
| |
The equation for linear regression is, y=mx+c
The output variable is the dependent variable or scalar response, while the input variables are independent or explanatory. The output variable (y) must be a continuous data type.
There are two types of linear regression, simple and multiple. In simple linear regression, there is only one input variable (x), while in multiple linear regression, there are multiple input variables (x1,x2,x3,x4). As input variables increase, slopes or weights will also increase.
Linear regression aims to determine which predictors are significant in predicting the output variable, their efficiency in predicting the output variable, and how they impact the output variable.