Comparing Regression Models Fairly

Model-selection criteria summarize different compromises between fitting the observed data and avoiding unnecessary complexity. The ordinary coefficient of determination is

R2=1−SSESST,R^2=1-\frac{\mathrm{SSE}}{\mathrm{SST}},

the fraction of total response variation explained by the fitted model.


Adding predictors cannot increase the training SSE\mathrm{SSE}, so training R2R^2 cannot decrease. That makes R2R^2 useful for describing fit, but risky as the only basis for comparing models of different sizes.


Let nn be the number of observations and let pp count all fitted regression coefficients, including the intercept. The residual mean square is MSE=SSE/(n−p)\mathrm{MSE}=\mathrm{SSE}/(n-p). Adjusted R2R^2 applies this degrees-of-freedom correction:

Rˉ2=1−SSE/(n−p)SST/(n−1).\bar{R}^2=1-\frac{\mathrm{SSE}/(n-p)}{\mathrm{SST}/(n-1)}.

Unlike ordinary R2R^2, adjusted R2R^2 can fall when a weak predictor is added, because the denominator n−pn-p shrinks whether or not the new term helps.

Mallows' criterion

When a large reference model supplies MSEfull\mathrm{MSE}_{\mathrm{full}}, a candidate with pp coefficients has

Cp=SSEpMSEfull−(n−2p).C_p=\frac{\mathrm{SSE}_p}{\mathrm{MSE}_{\mathrm{full}}}-(n-2p).


A candidate whose CpC_p is both reasonably small and close to pp has an attractive balance: a value above pp can suggest omitted structure if the reference error-variance estimate is adequate, but the excess has sampling variability and does not by itself establish bias.


Extra terms can also inflate complexity without buying enough improvement in fit.

Worked example

Suppose n=36n=36, SST=240\mathrm{SST}=240, and a candidate with p=4p=4 has SSE=72\mathrm{SSE}=72. Then R2=1−72/240=0.70R^2=1-72/240=0.70 and MSE=72/32=2.25\mathrm{MSE}=72/32=2.25. The total mean square is 240/35≈6.857240/35\approx 6.857, so Rˉ2=1−2.25/6.857≈0.672\bar{R}^2=1-2.25/6.857\approx 0.672, a little below the ordinary R2R^2 as expected. If the full-model MSE is 2.002.00, then Cp=72/2−(36−8)=36−28=8C_p=72/2-(36-8)=36-28=8, which exceeds the target p=4p=4 by 4. If the reference error-variance estimate is adequate, this excess can suggest omitted structure, but it alone does not establish appreciable bias.

Where the criteria stop

A common mistake is to compare raw SSE across different data sets, or to assume that the model with the largest training R2R^2 must predict best.


These criteria are comparable only when the candidate models are fitted to the same response data, and none of them replaces subject-matter judgment or an honest assessment of prediction on data the model has not seen.


A training criterion describes how well a model reproduces the sample it was fitted to; a validation or test estimate is what speaks to prediction.

Training error and complexity cost pull in opposite directions as candidate models grow; a selection criterion combines them into a single score.

Training error and complexity cost pull in opposite directions as candidate models grow; a selection criterion combines them into a single score.

Training and validation error across candidate sizes

Training and validation error across candidate sizes

The figure shows that training error tends to fall as coefficients are added to a regression model. Why should ordinary R2R^2 not be the only criterion for choosing among nested regression models fitted to the same data?

Training error and complexity cost pull in opposite directions as candidate models grow; a selection criterion combines them into a single score.

Training error and complexity cost pull in opposite directions as candidate models grow; a selection criterion combines them into a single score.

Training and validation error across candidate sizes

Training and validation error across candidate sizes

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Using the graph, by how much does validation MSE increase when candidate size changes from 55 fitted coefficients to 99?

Training error and complexity cost pull in opposite directions as candidate models grow; a selection criterion combines them into a single score.

Training error and complexity cost pull in opposite directions as candidate models grow; a selection criterion combines them into a single score.

Training and validation error across candidate sizes

Training and validation error across candidate sizes

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A regression uses n=32n=32 observations and estimates p=4p=4 coefficients including the intercept. If SSE=96\mathrm{SSE}=96 kg2^2, what is the residual mean square MSE\mathrm{MSE}?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors