One of the classical assumptions says every error has the same variance. In cross-section data this is often false: richer households have more erratic spending, big firms more erratic profits. This lesson shows what unequal variances break and, as important, what they leave alone; the tests that detect them and what each one assumes; and the two repairs, weighting and robust standard errors, with real data in which life expectancy is more scattered in poor countries than in rich ones.
The Ashanagar survey is invented. The statistics modules used one district of 60 households. Econometrics needs more households and more variables, so this is a new, larger survey of 600 households in the same imaginary district: income, spending, household size, whether the household is in the town or a village, the head’s schooling and earnings.
Because we wrote the data-generating process, we know the true answers, and every lab can show whether a regression recovers them. Household spending, in thousands of rupees a month, was generated as 1 + 0.45 × income + 0.9 × household size + 1.5 × town + an error with standard deviation 2.5. A real survey never tells you its true coefficients. This one does, so you can see how close an estimate comes.
It also holds a variable, the head’s ability, that a real survey could not observe. It is kept so that the lessons on omitted variables can show what happens when it is left out. Every figure here is illustrative, not official statistics.
Homoscedasticity says Var(ui | x) = σ² for every observation. Heteroscedasticity says the variance differs: Var(ui | x) = σi². The usual picture is a fan: the points are tightly packed around the line at one end and spread out at the other. Typical causes are a variable that scales the noise (household income, firm size), learning (error rates fall as practice grows), outliers, and a wrong functional form or an omitted variable whose effect shows up as changing spread (lesson 7).
Real data show it clearly. In the World Bank data (life expectancy against ln GDP per head, 186 economies in 2019), the residuals of the straight-line regression have a standard deviation of 5.47 years among the poorest third of countries, 4.25 in the middle third and 2.78 among the richest third. Poor countries are far less predictable: some have high life expectancy for their income, some have been hit by conflict or disease. The invented survey, by contrast, was written homoscedastic, and its tests will say so.
Unbiasedness only needs E(u | X) = 0 (lesson 2): variances do not enter. So OLS stays unbiased and consistent. What fails is everything built on the assumption of constant variance:
One subtlety the Delhi School has asked: if the error variance depends on a variable z that is not in the model, the usual standard errors are wrong only if z is related to the regressors. What matters is Var(u | x), the variance given the regressors; if z were completely unrelated to x, the variance given x would be constant and the usual standard errors would be fine. In the textbook reading z is related to x, and the coefficients are unbiased while the estimated standard errors are biased.
Try it. Move γ from 0 to 1.5 and watch which numbers move. The slope stays centred on the truth. The usual standard error stops matching the real spread, and the 95% interval stops holding the truth 95% of the time. The robust standard error repairs the inference. Weighting gives a tighter slope. At small γ with x between 1 and 5, notice that the problem is mild: heteroscedasticity does the most harm when it is strong.
True model: y = 1 + 1 × x + u, with x between 1 and 5 and the standard deviation of u equal to xγ. At γ = 0 the variance is constant. The slope we want is 1.
Horizontal: x. Vertical: y. One sample of 100 points; the lines are fitted to it.
OLS is still unbiased (average 0.998), so heteroscedasticity does not bias the slope. What fails is the usual standard error: it averages 0.278 against a real spread of 0.31, so the 95% interval holds the truth 92% of the time. The robust standard error (0.29) repairs the inference without changing the estimate. And OLS is no longer the most precise: weighting each point by the inverse of its variance gives a slope with spread 0.24, 23% tighter. Breusch-Pagan finds the problem in 99.3% of samples.
Start with a plot: the residuals (or their squares or absolute values) against a regressor or against the fitted values. A fan is the evidence. The tests put numbers on it. All have the null hypothesis of homoscedasticity.
| Test | How it works | Distribution | What it assumes |
|---|---|---|---|
| Park | Regress ln e² on ln x. A significant slope signals heteroscedasticity. | t test on the slope | Variance a power of x |
| Glejser | Regress |e| on x (or √x, 1/x). A significant slope signals it. | t test on the slope | A chosen functional form |
| Goldfeld-Quandt | Order the data by x, drop the middle, fit the two ends, take the ratio of their residual variances. | F with (n − c) ÷ 2 − k in each df | Variance rises (or falls) steadily with one x; errors normal |
| Breusch-Pagan | Regress e² on the regressors. LM = nR² of that regression. | Chi-square, df = number of regressors tested | Variance linear in the regressors |
| White | Regress e² on the regressors, their squares and cross-products. LM = nR². | Chi-square, df = number of terms in the auxiliary regression | Nothing about the form (a general test) |
For White’s test with the regression y = α₀ + α₁x₁ + α₂x₂ + u, the squared residuals are regressed on x₁, x₂, x₁², x₂² and x₁x₂ (five terms), and the test statistic is nR² from that regression with 5 degrees of freedom. Omitting the cross-product, or regressing on lagged residuals, gives a different test. (A regression on the lagged residual is a test for autocorrelation, the next lesson.)
On the World Bank regression, Breusch-Pagan gives LM = 8.54 (1 df, p = 0.0035), White gives 12.28 (2 df, p = 0.0022), and Goldfeld-Quandt, comparing the poorest 74 and the richest 74 countries after leaving out the middle 38, gives F = 4.01 with (72, 72) degrees of freedom (p < 0.001). All three reject. In the survey’s spending regression, where the variance is constant by construction, Breusch-Pagan gives p = 0.95 and White p = 0.97: no sign of a problem, as there should not be.
Two routes, with different goals. Weighted least squares (WLS) aims at the efficiency OLS lost. If Var(ui) = σ²zi², divide the equation by zi and the new error has constant variance:
yi = a + b xi + ui, with Var(ui) = σ²zi², where zi is known (often z = x). Observations with a large z are noisier and carry less information about the line.
The transformed error has the same variance for every observation, so the Gauss-Markov theorem applies to the transformed equation: least squares on it is BLUE.
Least squares on the divided equation minimises Σ(ei ÷ zi)² = Σ wiei² with wi = 1 ÷ zi². Noisy observations get small weights. When z = x the transformed equation is y ÷ x = b + a(1 ÷ x) + (u ÷ x): the old slope is now the intercept.
Take x = 1, 2, 3, 4, 5 and y = 2.5, 3.2, 5.1, 4.4, 8.3, with variance proportional to x². Ordinary least squares gives a slope of 1.28. Weighted least squares with weights 1 ÷ x² gives 1.0994. And regressing y ÷ x on a constant and 1 ÷ x gives a constant of 1.0994, the same number: the transformed regression and the weighted one are one estimator.
Many applied economists now report robust standard errors by default, because they work whether or not the problem is present and need no model of the variance. WLS gains more when its model of the variance is right.
Heteroscedasticity leaves OLS unbiased and consistent but inefficient (not BLUE) and makes the usual standard errors, and so the t and F tests, invalid. Detect it with Breusch-Pagan, White, Goldfeld-Quandt, Park or Glejser. Fix it with WLS/GLS (efficiency) or robust standard errors (valid inference).
Definitions and one-step calculations: a t statistic, an R², which assumption is which. Most CUET and JNU questions sit here.
Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.
This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 18: Heteroscedasticity: consequences and tests.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.
The Delhi School’s questions here (the case where the variance depends on a variable outside the model, and the form of White’s auxiliary regression) are in the hard-problems lesson at the end of the module. The matching of tests to problems is in the test atlas.