statsmodels.regression.linear_model.OLSResults.mse_resid

method

OLSResults.mse_resid()

Mean squared error of the residuals. The sum of squared residuals divided by the residual degrees of freedom.