statsmodels.tsa.stattools.leybourne

statsmodels.tsa.stattools.leybourne = <statsmodels.tsa.stattools.LeybourneMcCabeStationarity object>

Leybourne-McCabe stationarity test

The Leybourne-McCabe test can be used to test for stationarity in a univariate process.

Parameters:
xarray_like

data series

arlagsint

number of autoregressive terms to include, default=None

regression{‘c’,’ct’}

Constant and trend order to include in regression * ‘c’ : constant only (default) * ‘ct’ : constant and trend

method{‘mle’,’ols’}

Method used to estimate ARIMA(p, 1, 1) filter model * ‘mle’ : condition sum of squares maximum likelihood * ‘ols’ : two-stage least squares (default)

varest{‘var94’,’var99’}

Method used for residual variance estimation * ‘var94’ : method used in original Leybourne-McCabe paper (1994)

(default)

  • ‘var99’ : method used in follow-up paper (1999)

Returns:
lmstatfloat

test statistic

pvaluefloat

based on MC-derived critical values

arlagsint

AR(p) order used to create the filtered series

cvdictdict

critical values for the test statistic at the 1%, 5%, and 10% levels

Notes

H0 = series is stationary

Basic process is to create a filtered series which removes the AR(p) effects from the series under test followed by an auxiliary regression similar to that of Kwiatkowski et al (1992). The AR(p) coefficients are obtained by estimating an ARIMA(p, 1, 1) model. Two methods are provided for ARIMA estimation: MLE and two-stage least squares.

Two methods are provided for residual variance estimation used in the calculation of the test statistic. The first method (‘var94’) is the mean of the squared residuals from the filtered regression. The second method (‘var99’) is the MA(1) coefficient times the mean of the squared residuals from the ARIMA(p, 1, 1) filtering model.

An empirical autolag procedure is provided. In this context, the number of lags is equal to the number of AR(p) terms used in the filtering step. The number of AR(p) terms is set equal to the to the first PACF falling within the 95% confidence interval. Maximum nuber of AR lags is limited to 1/2 series length.

References

Kwiatkowski, D., Phillips, P.C.B., Schmidt, P. & Shin, Y. (1992). Testing the null hypothesis of stationarity against the alternative of a unit root. Journal of Econometrics, 54: 159–178.

Leybourne, S.J., & McCabe, B.P.M. (1994). A consistent test for a unit root. Journal of Business and Economic Statistics, 12: 157–166.

Leybourne, S.J., & McCabe, B.P.M. (1999). Modified stationarity tests with data-dependent model-selection rules. Journal of Business and Economic Statistics, 17: 264-270.

Schwert, G W. (1987). Effects of model specification on tests for unit roots in macroeconomic data. Journal of Monetary Economics, 20: 73–103.


Last update: Dec 16, 2024