Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

12.6 Residuals

When we overlay the regression equation on a scatterplot, most of the time, the points do not lie on the line itself. The vertical distance between the actual value of y and the predicted value of y^ is called the residual. The numeric value of the residual is found by subtracting the predicted value of y from the actual value of y: yy^. When we find the line of best fit using least squares regression, this finds the regression equation with the smallest sum of the residuals yy^.

When your residual is positive, then your data point is above the regression line, when the residual is negative, your data point is below the regression line. If you were to find the residuals for all the sample points and add them up you would get zero. The expected value of the residuals will always be zero. The regression equation is found so that there is just as much distance for the residuals above the line as there is below the line.

Standard Error of Estimate

The standard deviation of the residuals is called the standard error of estimate or s. Some texts will use a subscript se or sest to distinguish the different standard deviations from one another. When all of your data points line up in a perfectly straight line, s=0 since none of your points deviate from the regression line. As your data points get more scattered away from a regression line, s gets larger. When you are analyzing a regression model, you want s to be as small as possible.

Standard Error of Estimate

s e s t = s = ( y i y ^ i ) 2 n 2 = M S E

The standard error of estimate is the standard deviation of the residuals. The standard error of estimate measures the deviation in the vertical distance from data points to the regression equation. The units of s are the same as the units of y.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.