Linear Regression in Python for Data Scientists
Linear Regression is a statistical method used for modelling the dependence or relationship between two or more quantities. The aim of this is to be able to either better understand the existing relationships or to be able to predict the behaviour at points for which we currently don't have data. By using the method of linear regression (also called least squares fitting), we can calculate the values for the two parameters and plot the line of best fit to achieve our aims of better understanding the relationship or finding the estimated values of unknown points. For this, we have to be able to calculate the slope (m) and intercept (c) to give us the line of best fit for the data. This is made simple however by libraries that have already been implemented such as Scikit-Learn and Statsmodels Api that have linear regression functionality built in.
Jan-13-2022, 14:06:47 GMT
- Technology: