Ljung–Box Test

From GM-RKB
Jump to navigation Jump to search

A Ljung–Box Test is a statistical test of whether any of a group of autocorrelations of a time series are different from zero.



References

2016

This test is sometimes known as the Ljung–Box Q test, and it is closely connected to the Box–Pierce test (which is named after George E. P. Box and David A. Pierce). In fact, the Ljung–Box test statistic was described explicitly in the paper that led to the use of the Box-Pierce statistic, and from which that statistic takes its name. The Box-Pierce test statistic is a simplified version of the Ljung–Box statistic for which subsequent simulation studies have shown poor performance.
The Ljung–Box test is widely applied in econometrics and other applications of time series analysis. A similar assessment can be also carried out with the Breusch–Godfrey test and the Durbin–Watson test.(...) The Ljung–Box test may be defined as:
H0: The data are independently distributed (i.e. the correlations in the population from which the sample is taken are 0, so that any observed correlations in the data result from randomness of the sampling process).
Ha: The data are not independently distributed; they exhibit serial correlation.
The test statistic is:
[math]\displaystyle{ Q = n\left(n+2\right)\sum_{k=1}^h\frac{\hat{\rho}^2_k}{n-k} }[/math]
where n is the sample size, [math]\displaystyle{ \hat{\rho}_k }[/math] is the sample autocorrelation at lag k, and h is the number of lags being tested. Under [math]\displaystyle{ H_0 }[/math] the statistic Q follows a [math]\displaystyle{ \chi^2_{(h)} }[/math]. For significance level α, the critical region for rejection of the hypothesis of randomness is
[math]\displaystyle{ Q \gt \chi_{1-\alpha,h}^2 }[/math]
where [math]\displaystyle{ \chi_{1-\alpha,h}^2 }[/math] is the α-quantile of the chi-squared distribution with h degrees of freedom.
The Ljung–Box test is commonly used in autoregressive integrated moving average (ARIMA) modeling. Note that it is applied to the residuals of a fitted ARIMA model, not the original series, and in such applications the hypothesis actually being tested is that the residuals from the ARIMA model have no autocorrelation. When testing the residuals of an estimated ARIMA model, the degrees of freedom need to be adjusted to reflect the parameter estimation. For example, for an ARIMA(p,0,q) model, the degrees of freedom should be set to [math]\displaystyle{ h - p - q }[/math].