Ordinary Least Squares, P Value, Regression, Statsmodels.
the objective is to find the best estimate of w0 and w1 that will minimize the error term ɛi. To be able to determine which line is the best fit for our dataset f0, f1 or f2 as shown in the following figure, we need first to introduce a quality metric: RSS (Residual sum of squares) RSS: Residual