To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Ljung–Box test

From Wikipedia, the free encyclopedia

The Ljung–Box test (named for Greta M. Ljung and George E. P. Box) 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.

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,[1][2] 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.

YouTube Encyclopedic

  • 1/5
    Views:
    9 139
    3 969
    8 992
    13 515
    7 451
  • ✪ Ljung Box test of serial correlation in R Studio
  • ✪ Introduction of Time Series Forecasting | Part 5 | ACF, Ljung box test for time series testing
  • ✪ Q Statistics and LM test for serial correlation. Model Two. EVIEWS
  • ✪ Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data Science | Simplilearn
  • ✪ ACF & PACF | Auto Correlation & Partial Auto correlation | Time Series Analysis

Transcription

Contents

Formal definition

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:[2]

where n is the sample size, is the sample autocorrelation at lag k, and h is the number of lags being tested. Under the statistic Q asymptotically follows a . For significance level α, the critical region for rejection of the hypothesis of randomness is:

where is the 1-[3]α-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 .[4]

Box-Pierce test

The Box-Pierce test uses the test statistic, in the notation outlined above, given by[1]

and it uses the same critical region as defined above.

Simulation studies have shown that the distribution for the Ljung–Box statistic is closer to a distribution than is the distribution for the Box-Pierce statistic for all sample sizes including small ones.[citation needed]

Implementations in statistics packages

  1. R: the Box.test function in the stats package[5]
  2. Python: the acorr_ljungbox function in the statsmodels package[6]

See also

References

  1. ^ a b Box, G. E. P.; Pierce, D. A. (1970). "Distribution of Residual Autocorrelations in Autoregressive-Integrated Moving Average Time Series Models". Journal of the American Statistical Association. 65 (332): 1509–1526. doi:10.1080/01621459.1970.10481180. JSTOR 2284333.
  2. ^ a b G. M. Ljung; G. E. P. Box (1978). "On a Measure of a Lack of Fit in Time Series Models". Biometrika. 65 (2): 297–303. doi:10.1093/biomet/65.2.297.
  3. ^ Brockwell, Peter J.; Davis, Richard A.; Davis, R. J. (2002-03-08). Introduction to Time Series and Forecasting. p. 36. ISBN 978-0-387-95351-9.
  4. ^ Davidson, James (2000). Econometric Theory. Blackwell. p. 162. ISBN 978-0-631-21584-4.
  5. ^ "R: Box-Pierce and Ljung-Box Tests". stat.ethz.ch. Retrieved 2016-06-05.
  6. ^ "Python: Ljung-Box Tests". statsmodels.org. Retrieved 2018-07-23.

Further reading

External links

 This article incorporates public domain material from the National Institute of Standards and Technology website https://www.nist.gov.

This page was last edited on 8 February 2019, at 21:04
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.