public class White extends HypothesisTest
The White test tests for conditional heteroskedasticity. It is a chi-squared test: the test statistic is nĪ2 with k degrees of freedom. If the White test shows that there is conditional heteroskedasticity, we can consider a GARCH model.
| Modifier and Type | Field and Description |
|---|---|
protected int |
n
number of observations
|
protected Residuals |
residuals |
k, N, pValue, testStatistics| Constructor and Description |
|---|
White(Residuals residuals)
Perform the White test to test for heteroskedasticity in a linear regression model.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlternativeHypothesis()
Get a description of the alternative hypothesis.
|
protected OLSRegression |
getAuxiliaryOLSRegression(Vector y,
Residuals residuals)
the auxiliary regression
|
protected OLSRegression |
getAuxiliaryRegression() |
java.lang.String |
getNullHypothesis()
Get a description of the null hypothesis.
|
protected ChiSquareDistribution |
getX2() |
double |
pValue()
Get the p-value.
|
double |
statistics()
Get the test statistics.
|
isNullRejected, oneSidedPvalueprotected final Residuals residuals
protected final int n
public White(Residuals residuals)
residuals - the Residuals object from an OLS regressionpublic double statistics()
HypothesisTestprotected ChiSquareDistribution getX2()
protected OLSRegression getAuxiliaryRegression()
protected OLSRegression getAuxiliaryOLSRegression(Vector y, Residuals residuals)
public java.lang.String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTestpublic double pValue()
HypothesisTestpValue in class HypothesisTest