statsmodels.regression.recursive_ls.RecursiveLSResults.cusum¶
- RecursiveLSResults.cusum¶
Cumulative sum of standardized recursive residuals statistics
- Returns:¶
- cusumarray_like
An array of length nobs - k_exog holding the CUSUM statistics.
Notes
The CUSUM statistic takes the form:
where
is the recursive residual at time and is the estimate of the standard deviation from the full sample.Excludes the first k_exog datapoints.
Due to differences in the way
is calculated, the output of this function differs slightly from the output in the R package strucchange and the Stata contributed .ado file cusum6. The calculation in this package is consistent with the description of Brown et al. (1975)References