Numerical distribution functions for seasonal unit root tests

https://doi.org/10.1016/j.csda.2013.03.006Get rights and content

Highlights

  • A generalisation of HEGY seasonal unit root tests was presented in Smith, Taylor and del Barrio Castro (2009).

  • We use a response surface regressions approach to calculate P-values for the HEGY statistics.

  • They can be used for any seasonal periodicity, sample size and autoregressive order.

  • A Gretl function package is provided for applying the tests and calculating their P-values.

Abstract

It is often necessary to test for the presence of seasonal unit roots when working with time series data observed at intervals of less than a year. One of the most widely used methods for doing this is based on regressing the seasonal difference of the series over the transformations of the series by applying specific filters for each seasonal frequency. This provides test statistics with non-standard distributions. A generalisation of this method for any periodicity is presented and a response surface regressions approach is used to calculate the P-values of the statistics whatever the periodicity and sample size of the data. The algorithms are prepared with the Gretl open source econometrics package and two empirical examples are presented.

Introduction

Unit roots may cause severe problems in a regression model if they are not properly dealt with: this may imply inconsistent coefficient estimators and non-standard distributions for significance tests and for forecast intervals. There have been many papers on testing for unit roots since the book by Fuller (1976), which introduced the test currently known as the Augmented Dickey–Fuller test, ADF (see also  Dickey and Fuller, 1981). Apart from the ADF test, other noteworthy tests are Phillips and Perron (1988), the KPSS test for stationarity by Kwiatkowski et al. (1992) and the ADF–GLS test by Elliott et al. (1996), all of which have become widely used by empirical economists. However, when working with time series data observed at intervals shorter than a year, the presence of unit roots should be tested for, not only in the long run but also in seasonal cycles. Over the last thirty years various methods have been proposed for testing for seasonal unit roots. For example, Hasza and Fuller (1982) and Dickey et al. (1984) propose joint tests for all seasonal unit roots, and in later papers Osborn et al. (1988) and in particular Hylleberg et al. (1990) (hereinafter HEGY) propose tests that would deal with each seasonal and zero frequency root to be considered separately. There are also interesting tests of seasonal stability by Canova and Hansen (1995), which also consider each frequency individually. The HEGY tests are not very difficult to implement and have therefore become widely used among empirical economists.

One of the problems with most of the unit root tests mentioned above is that their statistics have non-standard distributions, so in practice the values in the tables published need to be interpolated to compare them with the values calculated or simulate the empirical distributions for exactly the same model and the same sample size that is being used. MacKinnon (1994) uses simulation methods and response surface regressions to estimate the asymptotic distributions of a large number of unit roots and cointegration tests at zero frequency (long run). MacKinnon (1996) then extends these results, providing a way of approximating small sample distributions too.

Harvey and van Dijk (2006) apply MacKinnon’s method, using response surface regressions to provide a simple way of obtaining critical values and P values for any sample size and any order of lags of the endogenous variable in the regression for the HEGY tests mentioned above. As in the original HEGY article, all this is for quarterly data.

In the 21st century it seems quite anachronistic to have to use statistical tables. Empirical economists normally use computers for calculations, so ideally they should have a computer algorithm to calculate P-values instead of having to look at statistical tables. The main objective of this paper is to obtain a generalisation of the method by Harvey and van Dijk for calculating the P values of the HEGY statistics whatever the seasonal periodicity, S, and sample size T of the data. Seasonal periodicity S is defined as the number of values of the series observed in each year (it is sometimes convenient to change the reference period from one year, for example, to one day if data are hourly, S=24, or one week if data are daily, S=7, but for ease of exposition I will continue to refer to the reference period as the ‘year’).

For this approach to be practical it needs to be possible to implement it in a computer algorithm. As a complement to this paper an algorithm prepared in Gretl is provided (see http://gretl.sourceforge.net). Gretl is a cross-platform software package for econometric analysis. It is open source, free software: anyone may redistribute it and/or modify it under the terms of the GNU General Public License (GPL). This makes Gretl a very good econometric package in terms of the replicability of its calculations and results (Baiocchi, 2007).

Section snippets

Seasonal unit roots

The study of seasonality requires the use of some concepts of spectral or frequency-domain analysis. The fundamental goal of such analysis is to determine how important cycles of different frequencies are in accounting for the behaviour of the series [For a thorough introduction to frequency-domain analysis see, for example, Chapter 6 of Harvey (1993) or the equivalent chapter in Hamilton (1994)].

The period, T, is defined as the time taken to complete one cycle. The angular frequency, ω=2π/T,

The general model

Let yt be a time series observed S times a year integrated of order one at frequencies ωj2πj/S,j=0,,S/2, and let its autoregressive representation be ϕ(L)yt=γDt+ut where ϕ(L) is a polynomial on the lag operator, Dt is a column vector with deterministic terms, γ is its associated coefficients vector and u1,,uT are iid(0,σu2).

Now define Δs=1LS as the polynomial of order S made up of (single) unit roots at frequencies ωj,j=0,,S/2 [remember that there are two unit roots per ωj(0,π) but

Response surface analysis

Even for seasonal periodicities for which tables of the HEGY tests are available, and even though the asymptotic theory of those tests is well developed, it is not easy for applied researchers to calculate the P-value of a given test statistic. Here a generalisation of Harvey and Van Dijk’s procedure is presented which is based on response surface regressions, which serve to obtain P-values not only for quarterly data but for any seasonal periodicity.

The first step in implementing the response

Precision of the estimates

The P-values and quantiles obtained with the methods described above use all the data from the simulations in the experiments and M=50 repetitions for each model. So although both the values obtained here and the critical values reported in the articles mentioned above are estimations or approximations of the true critical values, a much lower variance and thus a more accurate approximation can be expected from the method described in this paper.

The precision of the estimated quantiles obtained

United Kingdom data on income and consumption

Hylleberg et al. (1990) illustrate their tests using United Kingdom data on consumption and income (the data set can be obtained from  Hylleberg et al., 1996). The data are quarterly observations for the period 1955.1–1984.4 on the variables y=log of personal disposable income and c=log of consumption expenditures on non durables. For c and y they use a model with p=5, which gives T=111 effective observations for estimating Eq. (5). They also use p=4 with cy to test for a cointegration

Conclusion

The HEGY t and F test statistics for seasonal unit roots have non-standard distributions that vary depending on the sample size, the number of autoregressive lags included in the model, the type and number of deterministic components and the seasonal periodicity of the data. Tables of critical values for the quarterly, monthly and weekly cases have already been published for some specific sample sizes, zero autoregressive lags and several deterministic components. A method based on surface

Acknowledgements

The idea for this study emerged in a conversation with Riccardo ‘Jack’ Lucchetti. Financial support from Ministerio de Ciencia e Innovación under research project ECO2010-15332 and from the Basque Government Econometrics ResearchGroupIT-334-07 is acknowledged. The SGI/IZO-SGIker UPV/EHU is gratefully acknowledged for its generous allocation of computational resources. I am grateful to Fernando Tusell for providing resources for computing, and Aitor Ciarreta for help with obtaining appropriate

References (35)

  • J.A. Ahtola et al.

    Distribution of least squares estimators of autoregressive parameters for a process with complex roots on the unit circle

    Journal of Time Series Analysis

    (1987)
  • G. Baiocchi

    Reproducible research in computational economics: guidelines, integrated approaches, and open source software

    Computational Economics

    (2007)
  • J. Beaulieu et al.

    Seasonal unit roots in aggregate U.S. data

    Journal of Econometrics

    (1993)
  • J. Cáceres

    Contraste de raíces unitarias en datos semanales

    Estadística Española

    (1996)
  • F. Canova et al.

    Are seasonal patterns constant over time? A test for seasonal stability

    Journal of Business and Economic Statistics

    (1995)
  • N.H. Chan et al.

    Limiting distributions of least squares estimates of unstable autoregressive processes

    Annals of Statistics

    (1988)
  • J. Conlisk

    Optimal response surface design in Monte Carlo sampling experiments

    Annals of Economic and Social Measurement

    (1974)
  • Cottrell, A., Lucchetti, R., 2011a. Gretl command reference, Department of Economics. Wake Forest University....
  • Cottrell, A., Lucchetti, R., 2011b. Gretl user’s guide, Department of Economics. Wake Forest University....
  • D. Dickey et al.

    Likelihood ratio statistics for autoregressive time series with a unit root

    Econometrica

    (1981)
  • D. Dickey et al.

    Testing for unit roots in seasonal time series

    Journal of the American Statistical Association

    (1984)
  • G. Elliott et al.

    Efficient tests for an autoregressive unit root

    Econometrica

    (1996)
  • P. Franses

    Testing for seasonal unit roots in monthly data. Technical Report 9032

    (1990)
  • W. Fuller

    Introduction to Statistical Time Series

    (1976)
  • J. Hamilton

    Time Series Analysis

    (1994)
  • A. Harvey

    Time Series Models

    (1993)
  • D.I. Harvey et al.

    Sample size, lag order and critical values of seasonal unit root tests

    Computational Statistics & Data Analysis

    (2006)
  • Cited by (0)

    Supplementary material related to this article can be found online at http://dx.doi.org/10.1016/j.csda.2013.03.006.

    View full text