The ANOVA table and the standard error of the estimate
Analysis of variance (ANOVA) splits the total sum of squares (SST) into explained (SSR) and unexplained (SSE) parts. Divided by their degrees of freedom they give mean squares: F = MSR ÷ MSE tests the model, and the standard error of the estimate, s_e = √MSE, is the typical miss.
Before this: Goodness of fit and testing the regression coefficients
On the exam
- Describe and compare the assumptions of simple linear regression, identify violations through analyzing residuals, evaluate the estimated model’s goodness-of-fit and regression coefficients, and results of ANOVA estimates
- Calculate and interpret predicted values, the standard error of the estimate, and prediction intervals for the dependent variable in a simple linear regression model and describe different functional forms
Interpret the results of an analysis of variance and calculate and interpret the standard error of the estimate. Expect a table with blanks to fill from n and any two of SSR, SSE and SST, F from mean squares, s_e = √MSE, the variance of Y as SST ÷ (n − 1), and which measure tells you whether the model is significant (F, not R²).
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
What does ANOVA do in a regression?
Analysis of variance (ANOVA) splits the variation in Y into the part the regression explains and the part it does not, then compares them. The regression output tabulates the pieces.
Start with the three sums of squares. The sum of squares total (SST) measures how far the Y values are from their mean. The sum of squares regression (SSR, also called the sum of squares model) measures how far the fitted values are from that mean (the explained part). The sum of squares error (SSE) measures how far the actual values are from the fitted line (the unexplained part).
What does the table look like?
For the six retailers from the previous lessons (df stands for degrees of freedom):
| Source | Sum of squares | df | Mean square | F |
|---|---|---|---|---|
| Regression | SSR = 62.727 | 1 | MSR = 62.727 | 90.47 |
| Error | SSE = 2.773 | n − 2 = 4 | MSE = 0.693 | |
| Total | SST = 65.500 | n − 1 = 5 |
Each mean square is a sum of squares divided by its degrees of freedom. With k independent variables the regression row has k degrees of freedom and the error row n − k − 1. Simple regression has k = 1, so they are 1 and n − 2. The error degrees of freedom are because two coefficients (intercept and slope) were estimated from the data.
The mean square regression (MSR) is the explained variation per degree of freedom.
The mean square error (MSE) is the average squared miss.
Its square root is the typical size of a miss, the standard error of the estimate , . It is also called SEE, the standard error of the regression or the root mean square error.
For the retailers, percentage points: a typical miss of about 0.8 points of revenue growth. is in the units of Y. has no units.
A simple regression on 6 observations has SSE = 2.7733. The standard error of the estimate is closest to:
√(2.7733 ÷ 4) = 0.8327
Standard error of the estimate, s_e0.8327
- 2.7733÷(6−2)=√x
√x square root
- 2.7733ENTER6ENTER2−÷g√x
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
How is F built from the table?
The F-statistic is the ratio of the two mean squares. It uses mean squares, never the raw sums.
F is a ratio of two variances. Big is bad for the null: a large F means the line explains far more than the noise. Compare it with the critical F for 1 and degrees of freedom, or read its p-value. To judge whether the model is significant, use F (or the slope’s t-test), not .
- Explained by the line: SSR Memorize df = 1 in simple regression
- MSR = SSR ÷ k (k = 1) the numerator of F
- R² = SSR ÷ SST share explained
-
- Left unexplained: SSE Memorize df = n − 2
- MSE = SSE ÷ (n − 2) the denominator of F
- s_e = √MSE typical miss, in the units of Y
-
- Variance of Y = SST ÷ (n − 1) Use it spread around the mean
Try this 0 of 3
- Fill in MSE, F, R² and s_e for the worked example
- Find the variance of Y for the worked example
- Solve a new puzzle that gives R² or s_e instead of a second sum of squares (no revealing)
Worked example: six retailers (n = 6). Fill in MSE, F, R², the standard error of the estimate s_e and the variance of Y.
| Source | SS | df | MS |
|---|---|---|---|
| Regression | 62.727 | 1 | 62.727 |
| Error | 2.773 | 4 | |
| Total | 65.5 | 5 |
Type a value in any blank cell to check it. Each answer shows the relation it comes from.
Show working
n = 6. Degrees of freedom: regression 1, error n − 2 = 4, total n − 1 = 5.
SST = SSR + SSE: 62.7267 + 2.7733 = 65.5 (given)
SSR = SST − SSE: 65.5 − 2.7733 = 62.7267 (given)
SSE: 2.7733 (given)
MSR = SSR ÷ 1: 62.7267 ÷ 1 = 62.7267 (given)
MSE = SSE ÷ (n − 2): 2.7733 ÷ 4 = 0.69333
F = MSR ÷ MSE: 62.7267 ÷ 0.69333 = 90.47
R² = SSR ÷ SST: 62.7267 ÷ 65.5 = 0.9577
s_e = √MSE: √0.69333 = 0.833
Variance of Y = SST ÷ (n − 1): 65.5 ÷ 5 = 13.1
The standard error of the estimate s_e = 0.833 is the typical size of a residual, in Y's units (spread around the line); the variance of Y, 13.1, is the spread around the mean. R² = 0.958 is the share of SST the regression explains, with no units.
- 2.7733÷4=STO1MSE = 0.6933
- 62.7267÷RCL1=F = 90.47
- RCL1√xs_e = 0.8327
- 62.7267÷65.5=R² = 0.9577
- 65.5÷5=variance of Y = 13.1
STO store · RCL recall a stored number · √x square root
- 2.7733ENTER4÷STO1MSE = 0.6933
- 62.7267RCL1÷F = 90.47
- RCL1g√xs_e = 0.8327
- 62.7267ENTER65.5÷R² = 0.9577
- 65.5ENTER5÷variance of Y = 13.1
ENTER enter (on the HP, puts the number on the stack) · STO store · RCL recall a stored number · g blue shift key · √x square root
Display: MSE 0.6933, F 90.47, s_e 0.8327, R² 0.9577, variance of Y 13.1
MSE divides by n − 2, never n. s_e needs the square root. F uses mean squares, not sums of squares. The variance of Y divides SST by n − 1.
How does the standard error of the estimate compare with the spread of Y?
The table also gives the variance of the dependent variable : SST ÷ (n − 1), the spread around the mean. is the spread around the regression line. For the retailers the variance of Y is 65.5 ÷ 5 = 13.1 (standard deviation 3.62) against = 0.83: marketing spend explains most of the spread. is a relative measure of fit (a share); is an absolute one (in the units of Y).
How do you complete a table with blanks?
The exam gives you and any two of SSR, SSE and SST, and you fill in the rest. Use to get the missing sum of squares, the degrees of freedom , and , then divide.
A simple regression on 6 observations has SSR = 62.727 and SSE = 2.7733. The F-statistic is closest to:
62.727 ÷ (2.7733 ÷ 4) = 90.4727
F-statistic90.4727
- 62.727÷(2.7733÷(6−2))=
- 62.727ENTER2.7733ENTER6ENTER2−÷÷
ENTER enter (on the HP, puts the number on the stack)
Exam tip Check your table with the degrees of freedom: regression plus error must equal total (1 + 20 = 21). A mismatch means you used n instead of n − 2.
Go deeper Why the error degrees of freedom are n − 2
The residuals are computed from a line whose two coefficients were chosen using the same data. Those two choices tie down two of the residuals (they sum to zero, and they are uncorrelated with X), so only are free to vary. Dividing SSE by , not , corrects for that and gives an unbiased estimate of the error variance.
Memorize this
MemorizeThe ANOVA table
| Source | Sum of squares | df | Mean square | F |
|---|---|---|---|---|
| Regression | SSR | |||
| Error | SSE | |||
| Total | SST = SSR + SSE |
Memory hook Degrees of freedom add up: 1 + (n − 2) = n − 1. Sums of squares add up too. Mean squares do not.
Know it cold ; ; (big is bad for the null). n plus two numbers unlock the whole table.
- Explained by the line: SSR Memorize df = 1 in simple regression
- MSR = SSR ÷ k (k = 1) the numerator of F
- R² = SSR ÷ SST share explained
-
- Left unexplained: SSE Memorize df = n − 2
- MSE = SSE ÷ (n − 2) the denominator of F
- s_e = √MSE typical miss, in the units of Y
-
- Variance of Y = SST ÷ (n − 1) Use it spread around the mean
Quick example
SSR = 36 and SSE = 50 give SST = 86. Degrees of freedom split the same way: n − 1 = 1 + (n − 2).
Quick example
SSR = 36 with one independent variable: MSR = 36.
Quick example
n = 27 and SSE = 50. MSE = 50 ÷ 25 = 2.00.
- 50÷(27−2)= 2
- 50ENTER27ENTER2−÷ 2
ENTER enter (on the HP, puts the number on the stack)
Quick example
MSE = 2.00, so s_e = √2.00 = 1.41, in the units of Y.
- 50÷(27−2)=√x 1.4142
√x square root
- 50ENTER27ENTER2−÷g√x 1.4142
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
SSR = 36, SSE = 50, n = 27. MSR = 36, MSE = 2.00, so F = 36 ÷ 2.00 = 18.0.
- 36÷(50÷25)= 18
- 36ENTER50ENTER25÷÷ 18
ENTER enter (on the HP, puts the number on the stack)
Quick example
SST = 150 and n = 22: 150 ÷ 21 = 7.14.
- 150÷21= 7.1429
- 150ENTER21÷ 7.1429
ENTER enter (on the HP, puts the number on the stack)
How it is asked
-
s_e from sums of squares
n = 37, SSR = 63, SSE = 98. Standard error of the estimate?
MSE = 98 ÷ 35 = 2.80, s_e = √2.80 = 1.67. Traps: √(98 ÷ 37) = 1.63; MSE itself = 2.80.
-
F from the table
Same regression: F?
F = MSR ÷ MSE = 63 ÷ 2.80 = 22.5. Trap: SSR ÷ SSE = 0.64.
-
Complete the table
Given n = 27, SSR = 36, SSE = 50, fill in the blanks.
SST 86; df 1, 25, 26; MSE 2.00; F 18.0; s_e 1.41; R² 0.42; variance of Y 3.31.
-
Variance of Y from the table
n = 36 and SST = 140. Sample variance of Y?
140 ÷ 35 = 4.00. Traps: 140 ÷ 34 = 4.12 (n − 2), 140 ÷ 36 = 3.89 (n).
Exam traps
- Dividing SSE by n (or n − 1) instead of n − 2 to get MSE.
- Reporting MSE as the standard error of the estimate: s_e = √MSE, so take the root.
- Computing F from sums of squares (SSR ÷ SSE) instead of mean squares.
- Treating a small s_e alone as a good fit: s_e is in the units of Y, so compare it with the spread of Y or use R².
- Judging significance from R². R² describes fit; F tests it.
Checkpoint
4 exam-style questions. About 90 seconds each.
1A regression on 32 observations has SSR = 48 and SSE = 72. The standard error of the estimate is closest to:
2For the same regression (n = 32, SSR = 48, SSE = 72), the F-statistic is closest to:
3For the same regression, R² is closest to:
4A simple linear regression uses 52 observations. The degrees of freedom for the sum of squares error and the total sum of squares are, respectively:
Key takeaways
- SST = SSR + SSE; the degrees of freedom are 1, n − 2 and n − 1.
- MSE = SSE ÷ (n − 2); the standard error of the estimate s_e = √MSE.
- F = MSR ÷ MSE tests the model; R² = SSR ÷ SST describes it.
- Variance of Y = SST ÷ (n − 1); R² is a relative measure of fit, s_e an absolute one.
Quick example
SSR = 36 and SSE = 50 give SST = 86. Degrees of freedom split the same way: n − 1 = 1 + (n − 2).
Quick example
SSR = 36 with one independent variable: MSR = 36.
Quick example
n = 27 and SSE = 50. MSE = 50 ÷ 25 = 2.00.
- 50÷(27−2)= 2
- 50ENTER27ENTER2−÷ 2
ENTER enter (on the HP, puts the number on the stack)
Quick example
MSE = 2.00, so s_e = √2.00 = 1.41, in the units of Y.
- 50÷(27−2)=√x 1.4142
√x square root
- 50ENTER27ENTER2−÷g√x 1.4142
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Quick example
SSR = 36, SSE = 50, n = 27. MSR = 36, MSE = 2.00, so F = 36 ÷ 2.00 = 18.0.
- 36÷(50÷25)= 18
- 36ENTER50ENTER25÷÷ 18
ENTER enter (on the HP, puts the number on the stack)
Quick example
SST = 150 and n = 22: 150 ÷ 21 = 7.14.
- 150÷21= 7.1429
- 150ENTER21÷ 7.1429
ENTER enter (on the HP, puts the number on the stack)
All Quantitative Methods formulas, every lesson
Practice exam-style questions on Simple Linear Regression in Finance
Questions about this lesson?
Where this comes back
- Predicting Y and building a prediction interval Simple Linear Regression in Finance
- Simple Linear Regression in Finance Quantitative Methods
Questions candidates ask
How do you read an ANOVA table in regression?
The Regression row holds the explained variation (SSR, 1 degree of freedom), the Error row the unexplained (SSE, n − 2) and the Total row their sum (SST, n − 1). Divide each sum of squares by its degrees of freedom for the mean squares, then F = MSR ÷ MSE.
What is the standard error of the estimate?
It is the square root of the mean square error, √(SSE ÷ (n − 2)), also called SEE, the standard error of the regression or the root mean square error. It is the typical distance between actual and fitted Y, in the units of Y; smaller means the points sit closer to the line.
How do you calculate the F-statistic from an ANOVA table?
Divide the mean square regression by the mean square error: F = MSR ÷ MSE. In simple regression MSR equals SSR because it has one degree of freedom, and MSE is SSE divided by n − 2. A large F means the model explains much more than chance.
Spotted an error? Tell us and we will fix it.