Ljung-Box test
From Wikipedia, the free encyclopedia
In statistics, there are a large number of tests of randomness. The Ljung-Box test is a type of statistical test of whether any of a group of autocorrelations of a time series are different from zero. Instead of testing randomness at each distinct lag, it tests the "overall" randomness based on a number of lags, and is therefore a portmanteau test.
[edit] Formal definition
The Ljung-Box test can be defined as follows.
- H0: The data are random.
- Ha: The data are not random.
The test statistic is:
where n is the sample size, is the sample autocorrelation at lag j, and h is the number of lags being tested. For significance level α, the critical region for rejection of the hypothesis of randomness is rejected if
where is the α-quantile of the chi-square 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.
[edit] See also
- the obsolete Box-Pierce test
- the Wald-Wolfowitz runs test
[edit] References
- G. M. Ljung; G. E. P. Box. "On a Measure of a Lack of Fit in Time Series Models", pp. 297-303.
- Peter Brockwell; Richard Davis (2002). Introduction to Time Series and Forecasting, 2nd. Ed., Springer, 36.
This article incorporates text from a public domain publication of the National Institute of Standards and Technology, a U.S. government agency.Portmanteau test