Last chance! 50% off unlimited learning
Sale ends in
Computes Box-Pierce and Ljung-Box statistics for standard, modified and self-normalized test procedures.
portmanteauTest.h(ar = NULL, ma = NULL, y, h, grad = NULL)
Vector of AR coefficients. If NULL
, it is a MA process.
Vector of MA coefficients. If NULL
, it is an AR process.
Univariate time series.
Integer for the chosen lag.
Gradient of the series from the function gradient. If NULL
gradient will be computed.
A list including statistics and p-value:
Pm.BP
Standard portmanteau Box-Pierce statistics.
PvalBP
p-value corresponding at standard test where the asymptotic distribution is approximated by a chi-squared
PvalBP.Imhof
p-value corresponding at the exact asymptotic distribution of the standard portmanteau Box-Pierce statistics.
Pm.LB
Standard portmanteau Box-Pierce statistics.
PvalLB
p-value corresponding at standard test where the asymptotic distribution is approximated by a chi-squared.
PvalLB.Imhof
p-value corresponding at the exact asymptotic distribution of the standard portmanteau Ljung-Box statistics.
LB.modSN
Ljung-Box statistic with the self-normalization method.
BP.modSN
Box-Pierce statistic with the self-normalization method.
Portmanteau statistics are generally used to test the null hypothesis.
H0 :
The Box-Pierce (BP) and Ljung-Box (LB) statistics, defined as follows, are
based on the residual empirical autocorrelation.
The standard test procedure consists in rejecting the null hypothesis of an
ARMA(p,q) model if the statistic
But the significance limits of the residual autocorrelation can be very
different for an ARMA models with iid noise and ARMA models with only
uncorrelated noise but dependant. The standard test is obtained under the
stronger assumption that
Under H0, the statistics
So when the error process is a weak white noise, the asymptotic distribution
imhof
We propose an alternative method where we do not estimate an asymptotic covariance matrix. It is based on a self-normalization based approach to construct a new test-statistic which is asymptotically distribution-free under the null hypothesis.
The sample autocorrelation, at lag h
take the form
The normalization matrix is defined by
The sample autocorrelations satisfy
Boubacar Ma<U+00EF>nassara, Y. 2011, Multivariate portmanteau test for structural VARMA models with uncorrelated but non-independent error terms Journal of Statistical Planning and Inference, vol. 141, no. 8, pp. 2961-2975.
Boubacar Ma<U+00EF>nassara, Y. and Saussereau, B. 2018, Diagnostic checking in multivariate ARMA models with dependent errors using normalized residual autocorrelations , Journal of the American Statistical Association, vol. 113, no. 524, pp. 1813-1827.
Francq, C., Roy, R. and Zako<U+00EF>an, J.M. 2005, Diagnostic Checking in ARMA Models with Uncorrelated Errors, Journal of the American Statistical Association, vol. 100, no. 470 pp. 532-544
Lobato, I.N. 2001, Testing that a dependant process is uncorrelated. J. Amer. Statist. Assos. 96, vol. 455, pp. 1066-1076.
portmanteauTest
to obtain the statistics of all m
lags.