Mathwords logoMathwords

Standard Error of the Estimate — Definition, Formula & Example

The standard error of the estimate is the typical size of a prediction error when you use a regression line. It tells you roughly how far the actual data points fall above or below the line, in the same units as the response variable.

For a least-squares regression line fit to nn data points, the standard error of the estimate is se=∑(yi−y^i)2/(n−2)s_e = \sqrt{\sum (y_i - \hat{y}_i)^2 / (n-2)}. This is the square root of the sum of squared residuals divided by the degrees of freedom n−2n - 2. It estimates σ\sigma, the standard deviation of the responses yy about the true regression line. It is also called the residual standard deviation, or ss in AP Statistics computer output.

Key Formula

se=∑(yi−y^i)2n−2s_e = \sqrt{\frac{\sum (y_i - \hat{y}_i)^2}{n - 2}}
Where:
  • ses_e = Standard error of the estimate (typical residual size)
  • yiy_i = Actual (observed) value of the response variable
  • y^i\hat{y}_i = Value predicted by the regression line
  • yi−y^iy_i - \hat{y}_i = Residual for the i-th data point
  • nn = Number of data points; 2 degrees of freedom are used up by estimating the slope and the intercept

Worked Example

Problem: A teacher fits a least-squares line that predicts test scores from hours studied for 6 students. The residuals are 6, −4, −2, 2, −2, and 0 points. Find the standard error of the estimate.
Step 1: Square each residual and add them to get the sum of squared residuals.
62+(−4)2+(−2)2+22+(−2)2+02=36+16+4+4+4+0=646^2 + (-4)^2 + (-2)^2 + 2^2 + (-2)^2 + 0^2 = 36 + 16 + 4 + 4 + 4 + 0 = 64
Step 2: Divide by the degrees of freedom, n−2=6−2=4n - 2 = 6 - 2 = 4.
644=16\frac{64}{4} = 16
Step 3: Take the square root to return to the original units (points).
se=16=4s_e = \sqrt{16} = 4
Answer: The standard error of the estimate is 4 points. When the line predicts a student's score from hours studied, the prediction typically misses the actual score by about 4 points.

Why It Matters

In AP Statistics, the value labeled S on regression output is this quantity. You interpret it as the typical prediction error. It is also the starting value for the standard error of the slope, SEb=s/(sxn−1)SE_b = s / (s_x\sqrt{n-1}), which you need for t-intervals and t-tests about the slope.

Common Mistakes

Mistake: Dividing the sum of squared residuals by nn or n−1n - 1 instead of n−2n - 2.
Correction: Estimating the slope and the intercept uses up 2 degrees of freedom, so you divide by n−2n - 2. In the example, dividing by n=6n = 6 gives 64/6≈3.27\sqrt{64/6} \approx 3.27 points. That underestimates the typical error of 4 points.

Related Terms