How do residuals tell us whether a straight line was the right model?
Calculate residuals, construct and interpret a residual plot, and use it to judge whether a linear model is appropriate.
How to calculate a residual as observed minus predicted, build a residual plot, and read it to decide whether a straight line fits or whether the data needs transforming.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
You must compute residuals, draw or read a residual plot, and use its shape to decide whether a straight line was an appropriate model.
What a residual is
A residual measures how far one data point sits above or below the fitted line, measured vertically.
The least-squares line is fitted so that the residuals sum to zero, so some are positive and some negative by design.
The residual plot
A residual plot graphs each residual on the vertical axis against the explanatory variable on the horizontal axis, with a horizontal line at zero for reference. Its job is to reveal patterns that the original scatterplot hides.
Why we trust the residual plot over r
A reasonably high correlation coefficient can occur even when the true relationship is curved. The residual plot magnifies the leftover pattern after the line is removed, so it is the more reliable test of linearity.
What to do with a curved residual plot
If the residual plot is curved, the linear model is rejected. The standard next step is to transform one variable (for example using , or ) and refit, which is the subject of the data transformation dot point.