Discussion 7: Heteroskedasticity with White’s Test
Author
Will Brewster
Published
April 25, 2026
I. Issue Summary
Heteroskedasticity refers to variance of the distribution of the error terms for a different values of a variable. We see that if the distributions become more spread out, the errors are heteroskedastic. The issue that this causes is that inferences made are no longer completely accurate due to the distribution of the t-statistic, and this also impacts the validity of confidence intervals.
The null hypothesis is that the variances are equal (homoskedasticity). The alternative hypothesis is that there is not homoskedasticity (and therefore heteroskedasticity). I agree with the logic of the two different approaches in the sense that if the White’s test is more general than the BP test, it would not assume a particular relationship like the BP does and be more flexible.
II. Coding
The data I selected is also from the “births” data set. Below is a description of the variable from the data set, which is comprised of 150 observations from birth records from North Carolina in 2004:
par(mfrow =c(2, 2))# Create a residual plotplot(birthmodel)
At first glance it seems like the data is quite even (the Q-Q residuals for example are all along a straight line).
Computing the White’s test with interactions = True (should two-way interactions between explanatory variables be included):
white(birthmodel, interactions =TRUE)
# A tibble: 1 × 5
statistic p.value parameter method alternative
<dbl> <dbl> <dbl> <chr> <chr>
1 14.7 0.100 9 White's Test greater
We see that the test statistic of 14.7 and the corresponding p-value (0.1) is above 0.05. Therefore, we fail to reject the null hypothesis of homogeneity and conclude that there is no heteroskedasticity.
Running the auxiliary regression, the p-value ends up being almost the same (0.1 versus 0.097):
Since the R-squared value (0.052) is low, intuitively this shows that there is no heteroskedasticity in the model. Now testing this value using the chi-square test, we find the same p-value and test statistic from the original White’s test function:
So, given that test statistic is beyond (to the right) of the critical value of 3.325, it is not in the critical region and we again fail to reject the null hypothesis.