Skip to content
Grad Coach

Diagram · CC BY 4.0

Example: Homoscedasticity

A hundred points around a rising trend, in a band as wide at the right as at the left.

Scatter plot of 100 simulated observations, one at each x from 1 to 100, on axes from 0 to 100, rising with the trend y = 5 + 0.8x (no line drawn). The points form a band of about the same width all the way along, the constant variance called homoscedasticity.
Homoscedasticity scatter plot. Derek Jansen, Grad Coach, CC BY 4.0.

What it shows

The plot shows 100 simulated observations, one at each whole number x from 1 to 100. Each y is 5 + 0.8x plus normal error with a standard deviation of 4 at every x. Because the error variance does not change with x, the data are homoscedastic: the points form a band of even width along the whole range.

The axes run from 0 to 100 and no line is drawn, so nothing competes with the band. The heteroscedasticity example uses the same trend with an error that grows with x; the two are drawn to be shown together.

How to read it

  1. Compare the vertical spread of the points at the left, in the middle and at the right of the plot. It stays about the same, which is the pattern constant variance predicts.

  2. A plot can fail to show a change in spread, but it cannot prove there is none. Here the residuals from the least-squares line have standard deviations of 4.2, 3.9 and 3.7 in the three thirds of the x range. With 33 points per third, a difference that small cannot be told apart from chance.

  3. So the usual standard errors of the least-squares line, y = 6.4 + 0.78x, are safe on this count. That is one condition of four: the relationship still has to be linear, the observations independent and the residuals nearly normal before the line’s tests and confidence intervals can be trusted.

The numbers behind it

  • The model is y = 5 + 0.8x + e, with one observation at each x from 1 to 100 and y rounded to a whole number; e is normal with mean 0 and standard deviation 4.
  • Least-squares line y = 6.4 + 0.78x. Sample standard deviation of the residuals: 4.2 for x = 1 to 33, 3.9 for 34 to 66 and 3.7 for 67 to 100.
  • The draw was chosen to look clean: every y lies between 1 and 100, no point is more than 2.5 standard deviations from the model line (allowing 0.5 for rounding), and the largest third’s residual standard deviation is under 1.15 times the smallest. A draw not chosen this way would usually show a few more stray points.

Ways to use it in teaching

  • Show it unlabeled next to the heteroscedasticity example and ask which plot meets the constant-variability condition. Çetinkaya-Rundel and Hardin (2024, section 24.6.1) list it among the conditions for inference from a least-squares line, which makes a good reading to set beforehand.

  • Have students simulate their own sample from the model in the numbers above and plot it beside this one. The band stays even, but stray points appear, which shows how noisy a real constant-variance plot can look.

  • Turn next to the random-scatter panel of the residual plot examples: the same kind of even band, once the fitted line has been subtracted.

For how to check this and the other regression assumptions, see our guide to linear regression assumptions.

Sources

  • Çetinkaya-Rundel, M., & Hardin, J. (2024). Introduction to modern statistics (2nd ed.). OpenIntro. https://openintro-ims.netlify.app/
  • Homoscedasticity and heteroscedasticity. (n.d.). In Wikipedia. Retrieved November 4, 2026, from https://en.wikipedia.org/wiki/Homoscedasticity_and_heteroscedasticity

Inference and evidence

Related diagrams

All open educational resources

Need something else?

Tell us which diagram, template or worked examples would help your teaching, and we’ll do our best to add it to the collection.