![scipy linear regression scipy linear regression](http://laundav.dk/wp-content/uploads/2014/03/figure_1.png)
The same could be comprehended using the diagram in fig 3. SSR, SSE and SST Representation in relation to Linear Regression It is also termed as Explained Sum of Squares (ESS)įig 3.
![scipy linear regression scipy linear regression](https://miro.medium.com/max/1194/1*TEH_PRlKwFQvyzX-Z59egQ.png)
When visualizing in terms of best fit line, if the actual value is above the best-fit line, it is called as the positive residual error and if the actual value is below the best fit line, it is called as the negative residual error.
![scipy linear regression scipy linear regression](https://miro.medium.com/max/744/1*xOj6Z_l7M7XmcU66iH5sAQ.png)
![scipy linear regression scipy linear regression](https://miro.medium.com/max/1302/1*Lu6aUWxp-x9Q5VK5rUx4Vw.png)
Linear regression is a machine learning algorithm used to predict the value of continuous response variable.