Skip to main content
Log in

A simple portmanteau test with data-driven truncation point

  • Original paper
  • Published:
Computational Statistics Aims and scope Submit manuscript

Abstract

Time series forecasting is an important application of many statistical methods. When it is appropriate to assume that the data may be projected towards the future based on the past history of the dataset, a preliminary examination is usually required to ensure that the data sequence is autocorrelated. This is a quite obvious assumption that has to be made and can be the object of a formal test of hypotheses. The most widely used test is the portmanteau test, i.e., a sum of the squared standardized autocorrelations up to an appropriate maximum lag (the truncation point). The choice of the truncation point is not obvious and may be data-driven exploiting supplementary information, e.g. the largest autocorrelation and the lag where such maximum is found. In this paper, we propose a portmanteau test with a truncation point equal to the lag of the largest (absolute value) estimated autocorrelation. Theoretical and simulation-based comparisons based on size and power are performed with competing portmanteau tests, and encouraging results are obtained.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

Notes

  1. However, the choice of q may not be simple, for example, Hill and Motegi (2020) selected \(q=3\).

  2. The time needed for computing all entries in Table 1 was approximately 8 seconds on a desktop with an Intel i7 core vPro processor (2.53 GHz).

  3. The range 1:20 is essentially exhaustive, since for \(20 \le L \le 50\), \(Pr\{M<1\}<0.001\) and \(Pr\{M>20\}<0.001\).

  4. Density \(2f(x)F(\beta x)\), where f and F are the standard normal density and cumulative probability functions.

References

  • Anderson TW, Walker AM (1964) On the asymptotic distributions of the autocorrelations of a sample from a linear stochastic process. Ann Math Stat 35:1296–1303

    Article  MathSciNet  Google Scholar 

  • Baragona R, Battaglia F, Cucina D (2022) Data-driven portmanteau tests for time series. TEST 31:675–698

    Article  MathSciNet  Google Scholar 

  • Box GEP, Pierce DA (1970) Distribution of residual autocorrelations in autoregressive-integrated moving average time series models. J Am Stat Assoc 65:1509–1526

    Article  MathSciNet  Google Scholar 

  • Coffrey CS, Muller KE (2000) Properties of doubly-truncated gamma variables. Commun Stat Theory Meth 29:851–857

    Article  MathSciNet  Google Scholar 

  • Deo RS (2000) Spectral tests of the martingale hypothesis under conditional heteroscedasticity. J Econom 99:291–315

    Article  MathSciNet  Google Scholar 

  • Dufour JM, Roy R (1986) Generalized portmanteau statistics and tests of randomness. Commun Stat Theory Meth 15:2953–2972

    Article  MathSciNet  Google Scholar 

  • Escanciano JC, Lobato IN (2009) An automatic portmanteau test for serial correlation. J Econ 151:140–149

    Article  MathSciNet  Google Scholar 

  • Gallagher CM, Fisher TJ (2015) On weighted portmanteau tests for time series goodness-of-fit. J Time Ser Anal 36:67–83

    Article  MathSciNet  Google Scholar 

  • Guay A, Guerre E, Lazarova S (2013) Robust adaptive rate-optimal testing for the white noise hypothesis. J Econ 176:134–145

    Article  MathSciNet  Google Scholar 

  • Hannan EJ, Heide C (1972) On limit theorems for quadratic functions of discrete time series. Ann Math Stat 43:2058–2066

    Article  MathSciNet  Google Scholar 

  • Hill JB, Motegi K (2020) A max-correlation white noise test for weakly dependent time series. Economet Theor 36:907–960

    Article  MathSciNet  Google Scholar 

  • Inglot T, Ledwina T (2006) Towards data driven selection of a penalty function for data driven Neyman test. Linear Algebra Appl 417:124–133

    Article  MathSciNet  Google Scholar 

  • Kan R, Wang X (2010) On the distribution of the sample autocorrelation coefficients. J Econ 154:101–121

    Article  MathSciNet  Google Scholar 

  • Katayama N (2008) An improvement of the portmanteau statistic. J Time Ser Anal 29:359–370

    Article  MathSciNet  Google Scholar 

  • Lee WM (2007) Robust M tests using kernel-based estimators with bandwidth equal to sample size. Econ Lett 96:295–300

    Article  MathSciNet  Google Scholar 

  • Ljung GM, Box GEP (1978) On a measure of lack of fit in time series models. Biometrika 65:297–303

    Article  Google Scholar 

  • McLeod AI, Li WK (1983) Diagnostic checking ARMA models using square-residual autocorrelations. J Time Ser Anal 4:269–273

    Article  MathSciNet  Google Scholar 

  • Romano JP, Thombs LA (1996) Inference for autocorrelations under weak assumptions. J Am Stat Ass 91:590–600

    Article  MathSciNet  Google Scholar 

  • Shao X (2011) Testing for white noise under unknown dependence and its applications to goodness-of-fit for time series models. Econom Theor 27:312–343

    Article  Google Scholar 

  • Xiao H, Wu WB (2014) Portmanteau test and simultaneous inference for serial covariances. Stat Sin 24:577–599

    MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Domenico Cucina.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Below is the link to the electronic supplementary material.

Supplementary file 1 (pdf 57 KB)

Appendix. Approximate asymptotic distribution

Appendix. Approximate asymptotic distribution

We derive now the asymptotic distribution of the statistic \(Q_{max}\) under Assumptions A and S. It is obtained starting from the joint asymptotic distribution of \((M, Q_d ,p)\) where \(M= \max \{N{\hat{r}}(1)^2, N{\hat{r}}(2)^2, \ldots , N{\hat{r}}(L)^2\}\) and \(p = {{\mathrm{arg\,max}}_{1 \le j \le L}} \{ {\hat{r}}(j)^2 \}\), obtained in Baragona et al. (2022).

Under Assumptions A and S the asymptotic distribution of M is that of the maximum of L asymptotically independently distributed \(\chi ^2_1\) variables: \(\Pr \{M<x\}=\varPhi _1(x)^L\).

The joint distribution of M and \(Q_d\) for \(1 \le d \le L\) is considered in Baragona et al. (2022) (which the reader is referred to for more details) and has a different analytical expression if \(d<p\) or \(d \ge p\). We only need the expression for \(d=p\). In this case, when \(p=1\), \(Q_{max} \equiv M\), while for \(p>1\)

$$\begin{aligned} Q_{max} \equiv Q_p= M + \sum _{j \ne p} N {\hat{r}}(j)^2 \end{aligned}$$

is the sum of M plus \((p-1)\) (asymptotically independent) chi squares with one degree of freedom and values limited from 0 to M. Therefore

$$\begin{aligned} \Pr \{Q_{max}<x|p\}= \int _0^x \Pr \{M=y\} \Pr \{Q_d<x|M=y, d=p\} dy \end{aligned}$$
(7)

where \(\Pr \{M=y\}\) denotes the density of the maximum: \(L \phi _1(y)\varPhi _1(y)^{L-1}\). The distribution function inside the integral equals asymptotically the probability that the sum \(S_{p-1}=Z_1+Z_2+\ldots +Z_{p-1}\) is less than \((x-y)\), where the \(Z_j\)’s are \((p-1)\) independent chi squares with one degree of freedom and truncated at M. The distribution of \(S_{p-1}\) may be approximated by a \(c \, \chi ^2_\nu \) variate with the same mean and variance, as usual. From the results of Coffrey and Muller (2000):

$$\begin{aligned}{} & {} E(S_{p-1})= (p-1) \varPhi _3(y)/\varPhi _1(y) \\{} & {} Var(S_{p-1})=(p-1)[3\varPhi _5(y)/\varPhi _1(y)-\varPhi _3(y)^2/\varPhi _1(y)^2] \end{aligned}$$

the following values for the constants c and \(\nu \) are obtained:

$$\begin{aligned}{} & {} c=Var(S_{p-1})/[2E(S_{p-1})]=\frac{3}{2} \left\{ \frac{\varPhi _5(y)}{\varPhi _3(y)}- \frac{\varPhi _3(y)}{\varPhi _1(y)}\right\} \\{} & {} \nu =2E(S_{p-1})^2/Var(S_{p-1})=\frac{(p-1) \varPhi _3(y)^2}{3\varPhi _3(y)[\varPhi _5(y)-\varPhi _3(y)]}. \end{aligned}$$

With this approximation we obtain

$$\begin{aligned} \Pr \{Q_d<x|M=y, d=p\}= \varPhi _{\nu }[(x-y)/c] / \varPhi _{\nu }[(p-1)y/c] \end{aligned}$$

and finally

$$\begin{aligned} \Pr \{Q_{max}<x|p\}= \int _0^x L \phi _1(y)\varPhi _1(y)^{L-1} \varPhi _{\nu }[(x-y)/c] / \varPhi _{\nu }[(p-1)y/c] dy. \end{aligned}$$

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Baragona, R., Battaglia, F. & Cucina, D. A simple portmanteau test with data-driven truncation point. Comput Stat 39, 733–749 (2024). https://doi.org/10.1007/s00180-022-01320-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00180-022-01320-6

Keywords

Navigation