Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Breusch–Godfrey test

From Wikipedia, the free encyclopedia
Statistical hypothesis test for the presence of serial correlation

Instatistics, theBreusch–Godfrey test is used to assess the validity of some of the modelling assumptions inherent in applyingregression-like models to observed data series.[1][2] In particular, ittests for the presence ofserial 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 thedependent variables are used asindependent variables in the model's representation for later observations. This type of structure is common ineconometric models.

The test is named afterTrevor S. Breusch andLeslie G. Godfrey.

Background

[edit]

The Breusch–Godfrey test is a test forautocorrelation in theerrors in a regression model. It makes use of theresiduals from the model being considered in aregression analysis, and a test statistic is derived from these. Thenull hypothesis is that there is noserial correlation of any order up top.[citation needed]

Because the test is based on the idea ofLagrange multiplier testing, it is sometimes referred to as anLM test for serial correlation.[3]

A similar assessment can be also carried out with theDurbin–Watson test and theLjung–Box test. However, the test is more general than that using the Durbin–Watson statistic (or Durbin'sh 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.[citation needed] The BG test has none of these restrictions, and is statistically morepowerful than Durbin'sh 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 conditionalhomoscedasticity.

Procedure

[edit]

Consider alinear regression of any form, for example

Yt=β1+β2Xt,1+β3Xt,2+ut{\displaystyle Y_{t}=\beta _{1}+\beta _{2}X_{t,1}+\beta _{3}X_{t,2}+u_{t}\,}

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

ut=ρ1ut1+ρ2ut2++ρputp+εt.{\displaystyle u_{t}=\rho _{1}u_{t-1}+\rho _{2}u_{t-2}+\cdots +\rho _{p}u_{t-p}+\varepsilon _{t}.\,}

The simple regression model is first fitted byordinary least squares to obtain a set of sample residualsu^t{\displaystyle {\hat {u}}_{t}}.

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

u^t=α0+α1Xt,1+α2Xt,2+ρ1u^t1+ρ2u^t2++ρpu^tp+εt{\displaystyle {\hat {u}}_{t}=\alpha _{0}+\alpha _{1}X_{t,1}+\alpha _{2}X_{t,2}+\rho _{1}{\hat {u}}_{t-1}+\rho _{2}{\hat {u}}_{t-2}+\cdots +\rho _{p}{\hat {u}}_{t-p}+\varepsilon _{t}\,}

and if the usualCoefficient of determination (R2{\displaystyle R^{2}} statistic) is calculated for this model:

R2:=j=1Tp(u^Tju^Tj)2j=1Tp(u^Tju^¯)2{\displaystyle R^{2}:={\frac {\sum _{j=1}^{T-p}({\hat {u}}_{T-j}-{\hat {u}}_{T-j})^{2}}{\sum _{j=1}^{T-p}({\hat {u}}_{T-j}-{\bar {\hat {u}}})^{2}}}},

whereu^¯{\displaystyle {\bar {\hat {u}}}} stands for thearithmetic mean of residuals.One may average residuals over the lastn=Tp{\displaystyle n=T-p} observations, whereT{\displaystyle T} is the number of observations in the original model andp{\displaystyle p} is the number of error lags used in the auxiliary regression.There is a version of the test where missing residualsu^1j{\displaystyle {\hat {u}}_{1-j}} are replaced by zeros. In this version of the test the number of observations in the auxiliary regressionn{\displaystyle n} is equal to the original number of observationsT{\displaystyle T}.


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

nR2χp2,{\displaystyle nR^{2}\,\sim \,\chi _{p}^{2},\,}

when the null hypothesisH0:{ρi=0 for all i}{\displaystyle {H_{0}:\lbrace \rho _{i}=0{\text{ for all }}i\rbrace }} holds (that is, there is no serial correlation of any order up to p).

Software

[edit]
  • InR, this test is performed by functionbgtest, available inpackagelmtest.[4][5]
  • InStata, this test is performed by the commandestat bgodfrey, and byvarlmar forvector autoregressions.[6][7][8]
  • InSAS, theGODFREY option of theMODEL statement inPROC AUTOREG provides a version of this test.
  • InPython Statsmodels, the acorr_breusch_godfrey function in the module statsmodels.stats.diagnostic[9]
  • InEViews, this test is already done after a regression, at "View" → "Residual Diagnostics" → "Serial Correlation LM Test".
  • InJulia, theBreuschGodfreyTest function is available in theHypothesisTests package.[10]
  • Ingretl, this test can be obtained via themodtest command, or under the "Test" → "Autocorrelation" menu entry in the GUI client.

See also

[edit]

References

[edit]
  1. ^Breusch, T. S. (1978). "Testing for Autocorrelation in Dynamic Linear Models".Australian Economic Papers.17 (31):334–355.doi: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".Econometrica.46 (6):1293–1301.doi:10.2307/1913829.JSTOR 1913829.
  3. ^Asteriou, Dimitrios; Hall, Stephen G. (2011)."The Breusch–Godfrey LM test for serial correlation".Applied Econometrics (Second ed.). New York: Palgrave Macmillan. pp. 159–61.ISBN 978-0-230-27182-1.
  4. ^"lmtest: Testing Linear Regression Models".CRAN. 21 March 2022.
  5. ^Kleiber, Christian; Zeileis, Achim (2008)."Testing for autocorrelation".Applied Econometrics with R. New York: Springer. pp. 104–106.ISBN 978-0-387-77318-6.
  6. ^"Postestimation tools for regress with time series"(PDF).Stata Manual.
  7. ^Baum, Christopher F. (2006)."Testing for serial correlation".An Introduction to Modern Econometrics Using Stata. Stata Press. pp. 155–158.ISBN 1-59718-013-0.
  8. ^"varlmar"(PDF).Stata documentation. Retrieved2025-08-29.
  9. ^Breusch-Godfrey test in Pythonhttps://statsmodels.sourceforge.net/devel/generated/statsmodels.stats.diagnostic.acorr_breush_godfrey.html?highlight=autocorrelationArchived 2014-02-28 at theWayback Machine
  10. ^"Time series tests".juliastats.org. Retrieved2020-02-04.

Further reading

[edit]
  • Godfrey, L. G. (1988).Misspecification Tests in Econometrics. Cambridge, UK: Cambridge.ISBN 0-521-26616-5.
  • Godfrey, L. G. (1996). "Misspecification Tests and Their Uses in Econometrics".Journal of Statistical Planning and Inference.49 (2):241–260.doi:10.1016/0378-3758(95)00039-9.
  • Maddala, G. S.; Lahiri, Kajal (2009).Introduction to Econometrics (Fourth ed.). Chichester: Wiley. pp. 259–260.
Continuous data
Center
Dispersion
Shape
Count data
Summary tables
Dependence
Graphics
Study design
Survey methodology
Controlled experiments
Adaptive designs
Observational studies
Statistical theory
Frequentist inference
Point estimation
Interval estimation
Testing hypotheses
Parametric tests
Specific tests
Goodness of fit
Rank statistics
Bayesian inference
Correlation
Regression analysis (see alsoTemplate:Least squares and regression analysis
Linear regression
Non-standard predictors
Generalized linear model
Partition of variance
Categorical
Multivariate
Time-series
General
Specific tests
Time domain
Frequency domain
Survival
Survival function
Hazard function
Test
Biostatistics
Engineering statistics
Social statistics
Spatial statistics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Breusch–Godfrey_test&oldid=1308570449"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp