statsmodels.stats.outliers_influence.OLSInfluence.resid_var

method

OLSInfluence.resid_var()[source]

estimate of variance of the residuals

sigma2 = sigma2_OLS * (1 - hii)

where hii is the diagonal of the hat matrix