Residual vs Standard Error

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Residual

Regression and correlation

A residual is the difference between an observed y-value and the value the regression line predicts for it: observed minus predicted.

A residual measures how far off the line is for a single point, so a positive residual sits above the line and a negative one below. It equals residual=yy^\text{residual} = y - \hat{y}, the observed response minus the predicted response y^\hat{y} (read y-hat). For example, if the line predicts 72 but a student actually scored 80, the residual is 8072=880 - 72 = 8. Least-squares regression chooses the line that makes the sum of the squared residuals as small as possible.

Full entry for residual

Standard error

Sampling distributions

The standard error is the standard deviation of a statistic's sampling distribution, showing how much the statistic typically varies from sample to sample.

The standard error plays the same role for a statistic that the standard deviation plays for raw data, and it gets smaller as the sample size grows. For example, the standard error of a sample proportion is p(1p)n\sqrt{\frac{p(1-p)}{n}} (the square root of p times one minus p, divided by n). For a sample mean it is σn\frac{\sigma}{\sqrt{n}} (sigma, the population standard deviation, over the square root of n). A smaller standard error means the estimate is more precise, which narrows a confidence interval.

Full entry for standard error

Where each one fits in the course