Model Comparison

Canonical reference: Maxwell, Delaney, & Kelley (MDK) ref/mdk

The classic treatment of one-way ANOVA describes a ratio of between-group to within-group variability. The same test statistic arises from a different starting point: put the null and alternative hypotheses into two statistical models and ask whether the more constrained model sacrifices too much accuracy. Both perspectives yield the identical statistic and conclusions. The model comparison perspective explains why the ratio has its form, and the same error-versus-complexity logic extends to other Gaussian linear models, from adding a predictor in regression to testing an interaction.

This page develops the framework for the one-factor independent-groups design; the classic decomposition, assumptions, and summary table are treated in One-Way ANOVA. The same restricted-versus-full logic extends to Factorial ANOVA, where each main effect and interaction supplies a restriction, and to One-Way Repeated-Measures ANOVA, where both models retain participant effects.

Models as prediction rules

A statistical model is a simplified representation of how observable data are generated. It has three components: parameters that must be estimated, a predicted value for each observation, and unexplained variability. For each participant the observed score decomposes as

where is the observed score, is the model’s prediction, and is the residual, or error. A model’s fit — its adequacy — is measured by its total squared error:

with groups and observations in group . Squaring keeps positive and negative residuals from canceling and penalizes large misses more than small ones.

Different models assign different predictions to the same person. A model that ignores group membership must issue one prediction for everyone; a model that uses the group can issue a different prediction per group. Whichever model predicts closer to the observed scores has the smaller error.

Least-squares predictions

Which single number should a model predict? Least squares chooses the parameter values that minimize the total squared error , so the best prediction depends on the model’s constraints:

  • If the model must give one prediction for everyone, least squares chooses the grand mean .
  • If the model may give each group its own prediction, least squares chooses the group means .

The grand mean and group means are therefore the least-squares estimates under their respective models.

Full and restricted models

In the model comparison framework the two hypotheses become two models for , the score for observation in group :

  • Full model (the alternative, ): unconstrained — each population has its own mean. Least squares estimates each by the corresponding group mean .
  • Restricted model (the null, ): the full model plus an equality restriction, leaving one common population mean. Least squares estimates by the grand mean .

The restricted model is nested in the full model: it is the full model with the parameters tied together. Two consequences follow. First, the full model does not assert that every pair of means differs — it merely declines to impose the equality restriction; testing asks whether imposing it costs too much accuracy. Second, dropping a constraint can never make the least-squares fit worse, so the restricted model’s error is always at least the full model’s.

Substituting each model’s least-squares predictions gives its error:

the full-model error (deviations from group means) and the restricted-model error (deviations from the grand mean), with always. The quantity is the increase in error caused by the restriction.

Adequacy, simplicity, and residual degrees of freedom

Adequacy alone cannot choose between the models, because the full model always fits at least as well — it wins even when the extra parameters capture nothing but noise. A good model balances two desidera: it should fit the data well (adequacy) and should not be overly complex (simplicity).

Simplicity is indexed by counting parameters and translating the count into residual degrees of freedom:

where is the total sample size. The full model estimates means, so ; the restricted model estimates one mean, so . Because residual equals minus the number of estimated parameters, more residual degrees of freedom means fewer parameters — a simpler model. The restriction counts the parameters the restriction removes.

The nested-model F statistic

Raw error differences favor the full model; parameter counts favor the restricted model. The ratio puts both on common ground by scaling each error quantity by its degrees of freedom:

The numerator is the increase in error per additional parameter the full model estimates (equivalently, per residual degree of freedom lost); the denominator is the full-model error per residual degree of freedom. The comparison is then a rate:

  • If the full model fits better only because it has more parameters, the error increase per df should roughly match the baseline error per df, and .
  • If imposing the restriction causes a genuinely large loss of fit, the numerator exceeds the denominator and .

Large values of are evidence against the restriction. Rejection is evidence that the common-mean model sacrificed too much accuracy — not proof that every pair of means differs, and the omnibus test does not locate which means differ. Locating differences requires the follow-on machinery of Linear Contrasts and Multiple Comparisons.

Crosswalk to classic ANOVA

Every quantity in the ratio has a classic name, which is why the two perspectives produce the same statistic:

Model-comparison quantityClassic ANOVA quantity
(within-groups sum of squares)
(total sum of squares)
(between-groups sum of squares)

The nested-model is thus exactly the classic , whose derivation, assumptions, and summary-table conventions appear in One-Way ANOVA. The names for the degrees of freedom themselves — numerator and denominator, error, residual — and the df used by each follow-up procedure are collected in Crosswalk of ANOVA Quantities.

Proportional error measures: PIE versus PRE

Adequacy is often summarized as a proportion. Two denominators are in use, and they measure different things:

Proportional increase in error (PIE) expresses the restriction’s cost as a multiple of the full model’s error; it can exceed 1 — an error increase of 121% is a PIE of 1.21. Proportional reduction in error (PRE) expresses the full model’s advantage as a fraction of the restricted model’s error; for nested least-squares models it lies between 0 and 1, and in one-way ANOVA it equals the sample and (see Effect Sizes). The two are related exactly, by , but they are not interchangeable: a statement like “the restriction increased error by 121%” (PIE) and “the full model explains 54.7% of the variance” (PRE/) are different claims with different denominators. Percent-increase language belongs to PIE; proportion-explained language belongs to PRE.

Worked example

Three independent groups of each have means , , and , with grand mean (the design and data appear in One-Way ANOVA). Under the full model each score is predicted by its group mean; the group squared errors are , , and , so . Under the restricted model every score is predicted by ; the group squared errors are , , and , so . The restriction increases error by while removing parameters (, ):

The of 7.24 is the identical omnibus statistic computed from the classic summary table; its degrees of freedom are . In this balanced one-way example, the sample analogue of Cohen’s used for power analysis equals , which is exactly PIE here — connecting this page to Power for Omnibus ANOVA, where the population analogue and its role in prospective power are developed.