When residual spread or sequence follows a pattern, ordinary p-values and confidence intervals can become unreliable.
Prediction errors may be small for low-revenue stores but much larger for high-revenue stores. In monthly data, an underprediction this month may also continue into the next month.
When residual magnitude or ordering contains structure, standard errors and hypothesis tests can be distorted even when the coefficient estimates look similar.
Key question
What should we diagnose and adjust when residual spread or sequence is not random?
What is heteroskedasticity?
A funnel-shaped residual plot is a common sign. When the mean model is otherwise correctly specified, ordinary OLS coefficient estimates may remain usable, but the usual OLS standard errors can be wrong.
| Condition | Residual pattern |
|---|---|
| Homoskedasticity | similar spread across fitted values |
| Heteroskedasticity | spread changes by fitted value or group |
Constant spread
idealThe band of residuals keeps the same width from left to right.
A widening funnel
heteroskedasticThe spread grows with the fitted value, so one SE cannot fit all of it.
Neighbours that agree
in time orderResiduals stay positive for a while, then negative — the errors carry over.
What is autocorrelation?
Business cycles, seasonality, inertia, or omitted lagged effects can cause residuals of the same sign to occur in runs.
Monthly revenue
If the model underpredicts this month by $5,000 and tends to underpredict next month as well, positive autocorrelation may be present.
How do they affect inference?
Important distinction
Robust standard errors adjust inference, but they do not automatically fix omitted variables, nonlinearity, or missing lag structure.
How are they diagnosed and handled?
| Problem | Common diagnostics | Typical responses |
|---|---|---|
| Heteroskedasticity | residual plot, Breusch–Pagan, White test | HC robust standard errors, transformation, weighted regression |
| Autocorrelation | residual order plot, Durbin–Watson, Ljung–Box | lagged predictors, HAC standard errors, time-series models |
Where to begin
Start with residual plots and use formal tests as supporting evidence. In large samples, even minor departures can become statistically significant.
Change the error structure
Increase heteroskedasticity first and watch the residual spread. Then increase autocorrelation and compare the residual sequence and Durbin–Watson statistic.
Variance pattern
Stable
Serial correlation
0.00
Durbin–Watson
2.54
What to watch
The fitted line may look nearly unchanged while the reliability of standard errors and tests changes substantially.