CCalclabhub

Statistics

Adjusted R-squared

Penalises the addition of predictors. With four observations and one predictor the multiplier is three over two, turning an R-squared of 0.85 into an adjusted value of 0.775.

Last updated

The Formula

R-squared adjusted = 1 - (1 - R-squared) * (n - 1) / (n - k - 1)

Penalises the addition of predictors. With four observations and one predictor the multiplier is three over two, turning an R-squared of 0.85 into an adjusted value of 0.775.

SymbolMeaning
nNumber of observations
kNumber of predictors
R-squaredUnadjusted coefficient of determination

What Each Symbol Means

ncount

Number of observations

Four in this calculator, one paired observation for each y and p field.

kcount

Number of predictors

Fixed at one here, so the denominator n - k - 1 equals two.

R-squareddimensionless

Unadjusted coefficient of determination

The value from the main formula before the complexity penalty is applied.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate the coefficient of determination page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate The Coefficient Of Determination, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Adjusted R-squared?

The formula for Adjusted R-squared is R-squared adjusted = 1 - (1 - R-squared) * (n - 1) / (n - k - 1). Penalises the addition of predictors. With four observations and one predictor the multiplier is three over two, turning an R-squared of 0.85 into an adjusted value of 0.775.

What does each symbol in Adjusted R-squared stand for?

n is number of observations; k is number of predictors; R-squared is unadjusted coefficient of determination.

What units should I use with Adjusted R-squared?

Substitute n as a plain count, k as a plain count, R-squared in dimensionless. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Adjusted R-squared?

Treating a negative value as impossible. A model can fit worse than the simple mean baseline, which makes the residual sum exceed the total sum and pushes R-squared below zero. The constant predictions of 5 give -0.2 here. A negative result is valid arithmetic and a strong hint that the model is poorly specified, so investigate rather than discard it.