Ordinary Least Squares, P Value, Regression, Statsmodels.
sum of squares RSS is the sum of the squared difference between the predicted value, using the parameters w0 and w1 (yi=w0+w1xi), and the real one y. Otherwise, RSS is the sum of squared error term ɛi: In other terms, RSS could be written with w0 and w1: The RSS is our cost function, the smallest