Contents
How is the Ljung Box test used in econometrics?
The Ljung-Box test, named after statisticians Greta M. Ljung and George E.P. Box, is a statistical test that checks if autocorrelation exists in a time series. The Ljung-Box test is used widely in econometrics and in other fields in which time series data is common. The Basics of the Ljung-Box Test Here are the basics of the Ljung-Box test:
How does the Ljung Box test for autocorrelation work?
Conduct multiple Ljung-Box Q-tests for autocorrelation by including various lags in the test statistic. The data set is a time series of 57 consecutive days of overshorts from an underground gasoline tank in Colorado [2]. That is, the current overshort () represents the accuracy in measuring the amount of fuel:
How is the Ljung test applied to a time series?
The test is applied to the residuals of a time series after fitting an ARMA(\\(p,q\\)) model to the data. The test examines \\(m\\) autocorrelations of the residuals. If the autocorrelations are very small, we conclude that the model does not exhibit significant lack of fit.
Which is the null hypothesis of the Ljung Box test?
The Ljung-Box Q-test is a “portmanteau” test that assesses the null hypothesis that a series of residuals exhibits no autocorrelation for a fixed number of lags L, against the alternative that some autocorrelation coefficient ρ(k), k = 1., L, is nonzero.
When to use the portmanteau test of Ljung and box?
The portmanteau test of Ljung and Box (1978) is commonly used to test the quality of fit of a time series model. If significant autocorrelation is not found in the residuals from the model, then the model is declared to pass the test.
What’s the maxlag for the Ljung Box test?
If lags is None, then the default maxlag is currently min ( (nobs // 2 – 2), 40). After 0.12 this will change to min (10, nobs // 5). The default number of lags changes if period is set. If true, then additional to the results of the Ljung-Box test also the Box-Pierce test results are returned. Number of degrees of freedom consumed by the model.
What is the Ljung-Box test of autocorrelation in residuals?
Ljung-Box test of autocorrelation in residuals. The data series. The data is demeaned before the test statistic is computed. If lags is an integer then this is taken to be the largest lag that is included, the test result is reported for all smaller lag length.