statsmodels.regression.recursive_ls.RecursiveLSResults.cusum_squares#
- RecursiveLSResults.cusum_squares[source]#
Cumulative sum of squares of standardized recursive residuals statistics
- Returns:
- cusum_squaresarray_like
An array of length nobs - k_exog holding the CUSUM of squares statistics.
TheCUSUMofsquaresstatistictakestheform:
\[s_t = \left ( \sum_{j=k+1}^t w_j^2 \right ) \Bigg / \left ( \sum_{j=k+1}^T w_j^2 \right )\]where\(w_j\)istherecursiveresidualattime\(j\).Excludesthefirstk_exog datapoints.Basedontheworkof:Brown, R. L., J.Durbin,andJ. M. Evans. 1975.“Techniques for Testing the Constancy of Regression Relationships over Time.” Journal of the Royal Statistical Society. Series B (Methodological) 37 (2): 149-92.