Skip to content
Grad Coach

Diagram · CC BY 4.0

Residual plot examples: random scatter, curvature and a funnel

Three fits and their residuals: an even scatter, a U-shaped curve and a widening funnel.

Three simulated datasets, each fitted with a least-squares straight line, in two rows: the data with the fitted line (top) and the residuals of that fit plotted against the fitted values, with a dashed line at zero (bottom).

Swipe sideways to see the whole diagram, or download the PNG.

Residual plots showing random scatter, curvature and heteroscedasticity. Derek Jansen, Grad Coach, CC BY 4.0.

What it shows

Three simulated datasets, each fitted with a least-squares straight line. The top row shows the data and the fitted line; the bottom row shows each fit’s residuals against the fitted values, with a dashed line at zero.

In the first dataset a straight line is the right model and the residuals scatter evenly. In the second the true relationship is curved; in the third the spread grows with the fitted value. Axis values are omitted, because the shapes are what matter.

How to read it

  1. An even band of residuals around zero, with no pattern, suggests the straight line fits.

  2. Residuals positive at both ends and negative in the middle, a U shape, point to a curved relationship the line has missed.

  3. Residuals that spread out as the fitted value grows, a funnel, indicate heteroscedasticity: the variance of the errors is not constant.

The numbers behind it

  • Random scatter: y = 2 + 1.5x + normal noise (SD 1.5); fitted line y = 2.92 + 1.33x.
  • Curved: y = 1 + 0.4x² + normal noise (SD 1.5); fitted line y = −4.79 + 3.93x.
  • Funnel: y = 2 + 1.5x + normal noise with SD 0.4x; fitted line y = 2.11 + 1.44x.
  • 50 points per dataset, x drawn uniformly from 0 to 10, lines fitted by ordinary least squares.

Ways to use it in teaching

  • Show only the bottom row and ask which fit is adequate before revealing the data.

  • Ask what each pattern suggests doing next: a curved term for the second dataset, a transformation, robust standard errors or weighted least squares for the third.

  • Before students run their own regressions, use it to show that a high R² does not make the residual plot unnecessary.

For regression and the other techniques residual plots check, see our guide to inferential statistics.

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 October 18, 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.