Coefficient of Determination · Foundational

R² Measures Explained Sample Variation

What the coefficient of determination says, what adjusted R² changes, and what neither can prove.

For ordinary least squares with an intercept,

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

It is the fraction of observed response variation accounted for by the fitted model, relative to predicting every response with the sample mean.

Interpreting the value

An R2R^2 of 0.800.80 means the fit accounts for 80% of the sample variation around yˉ\bar y. It does not mean 80% of observations are correct or that predictions are 80% accurate.

Adjusting for model size

Adding predictors cannot decrease ordinary R2R^2. Adjusted R2R^2 introduces a degrees-of-freedom penalty:

Radj2=1SSE/(np)SST/(n1).R^2_{\rm adj}=1-\frac{\mathrm{SSE}/(n-p)}{\mathrm{SST}/(n-1)}.

It can decrease when an added term contributes too little.

Derive the decomposition

Write yiyˉ=(y^iyˉ)+eiy_i-\bar y=(\hat y_i-\bar y)+e_i. Squaring and summing produces SST = SSR + SSE because, in ordinary least squares with an intercept, residuals are orthogonal to fitted deviations. Therefore

R2=SSRSST=1SSESST.R^2=\frac{\mathrm{SSR}}{\mathrm{SST}}=1-\frac{\mathrm{SSE}}{\mathrm{SST}}.

This identity can fail in familiar form when the model omits an intercept or uses a different fitting objective.

Check your understanding

Two models have R2=0.90R^2=0.90. Must they have equal RMSE?

Show the reasoning

No. R2R^2 is relative to each dataset’s SST, while RMSE is in response units. Different response scales, sample variation, or degrees of freedom can yield different RMSE values.

Continue exploring

Connections

Related concepts

ANOVAANOVA Tables Partition Variation in RegressionLeast SquaresLeast Squares Finds the Closest ModelRMSERMSE Expresses Typical Error in Response UnitsResidual DiagnosticsResidual Plots Reveal How a Model Fails

Applications

  • regression summaries
  • model comparison