statsmodels.regression.recursive_ls.RecursiveLSResults.resid_recursive#
- RecursiveLSResults.resid_recursive[source]#
Recursive residuals
- Returns:
- resid_recursivearray_like
An array of length nobs holding the recursive residuals.
Thesequantitiesaredefinedin,forexample,Harvey(1989)section5.4.Infact,therehedefinesthestandardizedinnovationsinequation5.4.1,butinhisversiontheyhavenon-unitvariance,whereasthestandardizedforecasterrorscomputedbytheKalmanfilterhereassumeunitvariance.ToconverttoHarvey’sdefinition,weneedtomultiplybythestandarddeviation.Harveynotesthatinsmallersamples, “althoughthesecondmomentofthe\(\tilde \sigma_*^{-1} \tilde v_t\)’sisunity,thevarianceisnotnecessarilyequaltounityasthemeanneednotbeequaltozero”,andhedefinesanalternativeversion(whicharenotprovidedhere).