liveBook · Manning

Heteroscedasticity

As explained in Machine Learning System Design

Heteroscedasticity is the condition in which regression-error variance changes across predictor or fitted-value levels.

Heteroscedasticity occurs when regression-error variance is not constant across predictor or fitted-value levels. In demand forecasting, higher fitted values can show greater residual variance. section 9.2.2

Check for heteroscedasticity during regression error analysis:

  • Use a scale-location plot to assess whether residual variance remains homogeneous. section 9.2.2
  • Treat a horizontal pattern with evenly dispersed points as evidence of homoscedasticity; increasing spread at higher fitted values signals a problem. section 9.2.2
  • Compare the result with residuals-versus-fitted, Q-Q, and leverage plots to distinguish variance problems from other assumption failures or influential cases. section 9.2.2
Figure 9.11 Four diagnostic plots for linear regression’s residual analysis in both cases (Case 2: Assumptions are not met)
figure

Compare diagnostic plots where regression assumptions hold with plots showing assumption failures, including changing residual variance. section 9.2.2

How Machine Learning System Design covers it

How deep it goes
Explains changing residual variance and identifies it through scale-location and related diagnostic plots.
Examples
Uses demand forecasting and a scale-location plot where higher fitted values have higher residual variance.
What it assumes
Assumes familiarity with linear regression, predictors, fitted values, residuals, and basic regression assumptions.
What you can do after
Diagnose/debug regression assumptions by reading residual, scale-location, Q-Q, and leverage plots.
How it connects
Connects heteroscedasticity with linear regression, residuals, homoscedasticity, diagnostic plots, normality, and outliers.

Also explained in

Compare how 4 books explain heteroscedasticity →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.