Definition
where is the number of samples, is the number of explanatory variables
A test used for checking homoskedasticity in regression analysis It tests whether its sample variance is estimable using the model’s explanatory variables. If the square of the regression model’s residual has a trend, it will be estimated by the explanatory variables.
Algorithm
Assume a OLS model
- Estimate the regression model and save the residuals
- Estimate the auxiliary regression model using the residuals and quadratic terms of the explanatory variables
- test the significance using the auxiliary regression’s value By the LRT, , where is the number of samples, is the number of the explanatory variables of the auxiliary regression (in this example, )