Linear Regression is a method of measuring the relationship between two continuous variables. The two variables are –
- Independent Variable – “x”
- Dependent Variable – “y”
In the case of a simple linear regression, the independent value is the predictor value and it is only one. The relationship between x and y can be described as:
y = mx + c
Where m is the slope and c is the intercept.
Based on the predicted output and the actual output, we perform the calculation