Loading AI tools
Statistical test From Wikipedia, the free encyclopedia
In statistics, the Breusch–Pagan test, developed in 1979 by Trevor Breusch and Adrian Pagan,[1] is used to test for heteroskedasticity in a linear regression model. It was independently suggested with some extension by R. Dennis Cook and Sanford Weisberg in 1983 (Cook–Weisberg test).[2] Derived from the Lagrange multiplier test principle, it tests whether the variance of the errors from a regression is dependent on the values of the independent variables. In that case, heteroskedasticity is present.
![]() | This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. (June 2012) |
Suppose that we estimate the regression model
and obtain from this fitted model a set of values for , the residuals. Ordinary least squares constrains these so that their mean is 0 and so, given the assumption that their variance does not depend on the independent variables, an estimate of this variance can be obtained from the average of the squared values of the residuals. If the assumption is not held to be true, a simple model might be that the variance is linearly related to independent variables. Such a model can be examined by regressing the squared residuals on the independent variables, using an auxiliary regression equation of the form
This is the basis of the Breusch–Pagan test. It is a chi-squared test: the test statistic is distributed nχ2 with k degrees of freedom. If the test statistic has a p-value below an appropriate threshold (e.g. p < 0.05) then the null hypothesis of homoskedasticity is rejected and heteroskedasticity assumed.
If the Breusch–Pagan test shows that there is conditional heteroskedasticity, one could either use weighted least squares (if the source of heteroskedasticity is known) or use heteroscedasticity-consistent standard errors.
Under the classical assumptions, ordinary least squares is the best linear unbiased estimator (BLUE), i.e., it is unbiased and efficient. It remains unbiased under heteroskedasticity, but efficiency is lost. Before deciding upon an estimation method, one may conduct the Breusch–Pagan test to examine the presence of heteroskedasticity. The Breusch–Pagan test is based on models of the type for the variances of the observations where explain the difference in the variances. The null hypothesis is equivalent to the parameter restrictions:
The following Lagrange multiplier (LM) yields the test statistic for the Breusch–Pagan test:[citation needed]
This test can be implemented via the following three-step procedure:
where the z terms will typically but not necessarily be the same as the original covariates x.
where TSS is the sum of squared deviations of the from their mean of 1, and RSS is the sum of squared residuals from the auxiliary regression. The test statistic is asymptotically distributed as under the null hypothesis of homoskedasticity and normally distributed , as proved by Breusch and Pagan in their 1979 paper.
A variant of this test, robust in the case of a non-Gaussian error term, was proposed by Roger Koenker.[3] In this variant, the dependent variable in the auxiliary regression is just the squared residual from the Step 1 regression, , and the test statistic is from the auxiliary regression. As Koenker notes (1981, page 111), while the revised statistic has correct asymptotic size its power "may be quite poor except under idealized Gaussian conditions."
In R, this test is performed by the function ncvTest available in the car package,[4] the function bptest available in the lmtest package,[5][6] the function plmtest available in the plm package,[7] or the function breusch_pagan available in the skedastic package.[8]
In Stata, one specifies the full regression, and then enters the command estat hettest
followed by all independent variables.[9][10]
In SAS, Breusch–Pagan can be obtained using the Proc Model option.
In Python, there is a method het_breuschpagan in statsmodels.stats.diagnostic (the statsmodels package) for Breusch–Pagan test.[11]
In gretl, the command modtest --breusch-pagan
can be applied following an OLS regression.
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.