Breusch–Godfrey test

Source: Wikipedia, the free encyclopedia.

In

tests for the presence of serial correlation
that has not been included in a proposed model structure and which, if present, would mean that incorrect conclusions would be drawn from other tests or that sub-optimal estimates of model parameters would be obtained.

The regression models to which the test can be applied include cases where lagged values of the

econometric models
.

The test is named after Trevor S. Breusch and Leslie G. Godfrey.

Background

The Breusch–Godfrey test is a test for

serial correlation of any order up to p.[3]

Because the test is based on the idea of

Lagrange multiplier testing, it is sometimes referred to as an LM test for serial correlation.[4]

A similar assessment can be also carried out with the

powerful than Durbin's h statistic.[citation needed
] The BG test is considered to be more general than the Ljung-Box test because the latter requires the assumption of strict exogeneity, but the BG test does not. However, the BG test requires the assumptions of stronger forms of predeterminedness and conditional
homoscedasticity
.

Procedure

Consider a linear regression of any form, for example

where the errors might follow an AR(p) autoregressive scheme, as follows:

The simple regression model is first fitted by ordinary least squares to obtain a set of sample residuals .

Breusch and Godfrey[citation needed] proved that, if the following auxiliary regression model is fitted

and if the usual Coefficient of determination ( statistic) is calculated for this model:

,

where stands for the arithmetic mean over the last samples, where is the total number of observations and is the number of error lags used in the auxiliary regression.

The following asymptotic approximation can be used for the distribution of the test statistic:

when the null hypothesis holds (that is, there is no serial correlation of any order up to p). Here n is

Software

  • In R, this test is performed by function bgtest, available in package lmtest.[5][6]
  • In Stata, this test is performed by the command estat bgodfrey.[7][8]
  • In SAS, the GODFREY option of the MODEL statement in PROC AUTOREG provides a version of this test.
  • In Python Statsmodels, the acorr_breusch_godfrey function in the module statsmodels.stats.diagnostic [9]
  • In EViews, this test is already done after a regression, at "View" → "Residual Diagnostics" → "Serial Correlation LM Test".
  • In Julia, the BreuschGodfreyTest function is available in the HypothesisTests package.[10]
  • In gretl, this test can be obtained via the modtest command, or under the "Test" → "Autocorrelation" menu entry in the GUI client.


See also

References

Further reading