statsmodels.stats.outliers_influence.OLSInfluence.resid_var

OLSInfluence.resid_var()[source]

(cached attribute) estimate of variance of the residuals

sigma2 = sigma2_OLS * (1 - hii)

where hii is the diagonal of the hat matrix