statsmodels.regression.linear_model.OLSResults.ess

OLSResults.ess

The explained sum of squares.

If a constant is present, the centered total sum of squares minus the sum of squared residuals. If there is no constant, the uncentered total sum of squares is used.