TD_BREUSCH_GODFREY Function | Teradata Vantage - TD_BREUSCH_GODFREY - Teradata Vantage

Database Unbounded Array Framework Time Series Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-12-08
dita:mapPath
ncd1634149624743.ditamap
dita:ditavalPath
ruu1634160136230.ditaval
dita:id
ncd1634149624743

TD_BREUSCH_GODFREY checks for the presence of serial correlation among the residual and error terms after running a regression associated with a fitted model. With respect to regression models, it is expected that there is no serial correlation among the error terms.

The Breusch-Godfrey test is used to determine if there is evidence of autocorrelation in the residuals of a model. Autocorrelation is correlation between the errors or residuals of a regression model, which means that the errors in the model are not independent. In other words, the value of an error at a given point in time is related to the values of the errors at earlier points in time.

TD_BREUSCH_GODFREY tests the null hypothesis that there is no autocorrelation in the residuals against the hypothesis that there is autocorrelation. The test is performed by regressing the residuals on their lagged values up to a certain number of lags, and then performing a chi-squared test on the residuals of the regression.

TD_BREUSCH_GODFREY is used in time-series analysis and econometrics, where it is important to ensure that the assumptions of the regression model are met. If autocorrelation is present in the residuals of a regression model, the standard errors of the estimates of the regression coefficients may be biased, leading to incorrect inference and predictions. Using TD_BREUSCH_GODFREY, researchers can identify potential problems with their regression model and correct them.

The following procedure is an example of how to use TD_BREUSCH_GODFEY:
  1. Use TD_LINEAR_REGR to produce an ART containing a residual layer.
  2. Use TD_BREUSCH_GODFREY on the ART produced by the TD_LINEAR_REGR function to perform the Breusch Godfrey Statistical Test.
  3. Retrieve the TD_BREUSCH_GODFREY results from the primary layer to determine if there is serial correlation. A returned NULL_HYPOTH value of ACCEPT means no serial correlation. A returned NULL_HYPOTH value of REJECT means there is evidence of serial correlation.