An analysis of variance table—an ANOVA table—organizes a regression into variation explained by the model and variation left in the residuals. It turns one fitted equation into an accounting system for variability.
Partitioning the sums of squares
For observations , fitted values , and mean ,
is total variation,
is variation explained by the regression, and
is residual variation. For ordinary least squares with an intercept,
Degrees of freedom and mean squares
If a model contains estimated coefficients including the intercept, the common regression table uses:
| Source | Degrees of freedom | Sum of squares | Mean square |
|---|---|---|---|
| Regression | SSR | ||
| Error | SSE | ||
| Total | SST | — |
The residual mean square estimates the error variance when the model assumptions are appropriate.
Interpreting the F test
The classical null hypothesis says that all non-intercept regression coefficients are zero. A large is evidence that the model explains more variation than expected from noise alone, under the stated assumptions.
Sequential and partial tests
In models with several terms, sums of squares can depend on the order in which terms enter. Partial F tests compare nested models and ask whether added terms reduce error enough to justify their degrees of freedom.
Build a table from numbers
Suppose , the model has an intercept and two predictors (), SST is , and SSE is . Then SSR is . The degrees of freedom are , , and .
so . The reference distribution is under the null and standard regression assumptions.
Partial F tests
For nested reduced and full models,
This asks whether a block of added terms reduces error enough to justify its parameter cost.
Check your understanding
If SSR rises after adding predictors, must the partial F test be significant?
Show the reasoning
No. SSR always rises or stays fixed in nested ordinary least squares. Significance depends on the size of the improvement relative to the added degrees of freedom and residual variation.