Test for autocorrelation, Breusch-Godfrey test

Summary

Setup

  • The linear regression model

yt=β1+β2xt,2+...+βkxt,k+εt,t=1,,T

  • All data is stationary
  • The explanatory variables are exogenous
  • The error terms follow a stationary AR(1) process

εt=ρεt1+νt,t=1,,T

  • where νt is white noise .
  • We want to test the null hypothesis “the errors are not autocorrelated” which is the same as

H0:ρ=0

Procedure

  • Estimate the LRM using OLS
  • Save the OLS residuals
  • Run an auxiliary regression

et=ρet1+β1+β2xt,2+...+βkxt,k+νt,t=2,,T

  • where et1 are lagged residuals.
  • Test the null hypothesis H0:ρ=0 . The test statistic is the t -value which is approximately standard normal as n is large.

Extension

  • If the error terms follow an AR( p ) process

εt=ρ1εt1+ρpεtp+νt,t=1,,T

  • then the auxiliary regression becomes

et=ρ1et1++ρpetp+β1+β2xt,2+...+βkxt,k+νt,t=2,,T

  • and we test H0:ρ1=0,,ρp=0 using an F -test or an LM test.