statsmodels.nonparametric.kernel_regression.KernelCensoredReg.r_squared¶
-
KernelCensoredReg.
r_squared
()¶ Returns the R-Squared for the nonparametric regression.
Notes
For more details see p.45 in [2] The R-Squared is calculated by:
R2=[∑ni=1(Yi−ˉy)(^Yi−ˉy]2∑ni=1(Yi−ˉy)2∑ni=1(^Yi−ˉy)2,where ^Yi is the mean calculated in fit at the exog points.