Homoscedasticity — Definition, Formula & Example
Homoscedasticity is the condition in which the data points scatter around a regression line by about the same amount everywhere, whether x is small or large. It is also spelled homoskedasticity, and data with this property are called homoscedastic.
In the regression model , the errors are homoscedastic if their conditional variance is a single constant: for every . The opposite condition, in which the variance depends on , is called heteroscedasticity.
Key Formula
Where:
- = The error term for observation i, which is the vertical gap between the true line and the data point
- = The value of the explanatory variable for observation i
- = One fixed error variance that does not change with x
Worked Example
Problem: A coffee cart owner records the daily high temperature (°F) and the number of cups of iced coffee sold on six days: (60, 42), (64, 45), (68, 57), (72, 65), (76, 69), (80, 82). The least-squares line is . Compute the residuals and describe the shape of the residual plot. Decide whether the residuals look homoscedastic, and explain what that means for the standard error of the slope.
Step 1: Find the predicted number of cups for each temperature by substituting into .
Step 2: Compute each residual . As expected for a least-squares line, the residuals add to 0.
Step 3: Read the residual plot, which has temperature on the horizontal axis and residual on the vertical axis. At the cool end (60–68°F) the residuals run from −3 to 2. At the warm end (72–80°F) they also run from −3 to 2. The points form a horizontal band of the same width all the way across. A fan shape, with residuals that start close to 0 and spread wider as temperature rises, would signal unequal spread. These residuals show no fan.
Step 4: Because the spread is the same at every temperature, a single number can describe the typical residual size everywhere. This number is the residual standard deviation , which divides by .
Step 5: The standard error of the slope uses that one value of for all six days. First find , the sum of squared deviations of from . Then divide by . This formula assumes one common spread, so it is trustworthy here. With a fan-shaped plot, the single would overstate the spread on cool days and understate it on hot days, and the standard error would be unreliable.
Answer: The residuals are 2, −3, 1, 1, −3, 2. In the residual plot they form a horizontal band of constant width, running from −3 to 2 at both the cool and warm ends, with no fan. So the residuals are consistent with homoscedasticity. One residual standard deviation, cups, describes the spread at every temperature. The standard error of the slope, about 0.16 cups per °F, can therefore be computed from that single .
Why It Matters
The standard error of the slope, the t-test for the slope, and the confidence interval for the slope all assume a single error variance. This assumption appears as the "equal variance" condition in AP Statistics and introductory college statistics. When the assumption fails, these standard errors can be too small or too large. That is why econometrics courses teach heteroscedasticity-robust standard errors.
Common Mistakes
Mistake: Thinking homoscedasticity means the residuals are small or that all residuals are equal.
Correction: Homoscedasticity is about constant spread, not small spread. Residuals that scatter widely by the same amount at every x are still homoscedastic. Small residuals that fan out as x grows are not homoscedastic.
