Breusch–Godfrey test explained

In statistics, the Breusch–Godfrey test is used to assess the validity of some of the modelling assumptions inherent in applying regression-like models to observed data series.[1] [2] In particular, it 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 dependent variables are used as independent variables in the model's representation for later observations. This type of structure is common in econometric models.

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

Background

The Breusch–Godfrey test is a test for autocorrelation in the errors in a regression model. It makes use of the residuals from the model being considered in a regression analysis, and a test statistic is derived from these. The null hypothesis is that there is no 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 Durbin–Watson test and the Ljung–Box test. However, the test is more general than that using the Durbin–Watson statistic (or Durbin's h statistic), which is only valid for nonstochastic regressors and for testing the possibility of a first-order autoregressive model (e.g. AR(1)) for the regression errors. The BG test has none of these restrictions, and is statistically more powerful than Durbin's h statistic.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

Yt=\beta1+\beta2Xt,1+\beta3Xt,2+ut

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

ut=\rho1ut-1+\rho2ut-2++\rhoput-p+\varepsilont.

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

\hat{u}t

.

Breusch and Godfrey proved that, if the following auxiliary regression model is fitted

\hat{u}t=\alpha0+\alpha1Xt,1+\alpha2Xt,2+\rho1\hat{u}t-1+\rho2\hat{u}t-2++\rhop\hat{u}t-p+\varepsilont

and if the usual Coefficient of determination (

R2

statistic) is calculated for this model:

R2:=

T-p
\sum(uT-j-\hat{u
j=1
T-j
T-p
)
j=1

(uT-j-\bar{u})2}

,

where

\bar{u}

stands for the arithmetic mean over the last

n=T-p

samples, where

T

is the total number of observations and

p

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:

nR2\sim\chi

2
p,

when the null hypothesis

{H0:\lbrace\rhoi=0foralli\rbrace}

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

Software

See also

Further reading

Notes and References

  1. Breusch . T. S. . 1978 . Testing for Autocorrelation in Dynamic Linear Models . Australian Economic Papers . 17 . 334–355 . 10.1111/j.1467-8454.1978.tb00635.x .
  2. Godfrey . L. G. . 1978 . Testing Against General Autoregressive and Moving Average Error Models when the Regressors Include Lagged Dependent Variables . . 46 . 1293–1301 . 1913829 .
  3. http://www.macrodados.com.br/English/help/Econometrics_Part3.htm Macrodados 6.3 Help – Econometric Tools
  4. Book: Asteriou, Dimitrios . Stephen G. . Hall . The Breusch–Godfrey LM test for serial correlation . Applied Econometrics . New York . Palgrave Macmillan . Second . 2011 . 978-0-230-27182-1 . 159–61 . https://books.google.com/books?id=6qYcBQAAQBAJ&pg=PA159 .
  5. Web site: lmtest: Testing Linear Regression Models . CRAN .
  6. Book: Kleiber, Christian . Achim . Zeileis . Testing for autocorrelation . Applied Econometrics with R . New York . Springer . 2008 . 978-0-387-77318-6 . 104–106 . https://books.google.com/books?id=86rWI7WzFScC&pg=PA104 .
  7. Web site: Postestimation tools for regress with time series . Stata Manual .
  8. Book: Baum, Christopher F. . Testing for serial correlation . An Introduction to Modern Econometrics Using Stata . Stata Press . 2006 . 1-59718-013-0 . 155–158 . https://books.google.com/books?id=zCym0GtuRE4C&pg=PA155 .
  9. Breusch-Godfrey test in Python http://statsmodels.sourceforge.net/devel/generated/statsmodels.stats.diagnostic.acorr_breush_godfrey.html?highlight=autocorrelation
  10. Web site: Time series tests . juliastats.org . 2020-02-04.