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

Coefficient of Determination (R Squared)

The coefficient of determination (also known as R Squared) r2\colorFour {r^2} measures how close the data are to the regression model. Loosely, it is also called the "goodness of fit" as it measures how well the regression model fits the data points in a scatterplot.


Example: A low r2r^2 (poor fit):

Image illustrating Coefficient of Determination (R Squared)


Example: A high r2r^2 (good fit):

Image illustrating Coefficient of Determination (R Squared)



Portions of information contained in this publication/book are printed with permission of Minitab, LLC. All such material remains the exclusive property and copyright of Minitab, LLC. All rights reserved.

Interpretation of R Squared


r2r^2= coefficient of determination, where 0≤r2≤10\le r^2\le1

r2=(SSxy)2(SSxx)(SSyy)\boxed{r^2=\frac{(SS_{xy})^2}{\left(SS_{xx}\right)(SS_{yy})}}


r2 =r^{2\ }= “____% variation of yy is explained by xx”, where

x: predictor/explanatory/independent variable

y: response/dependent variable




Example


If r2=0.78r^2=0.78, that means the explanatory variable explains 78% of the variation in the response variable.

  • Where is the remaining 22%? It is left unexplained by this explanatory variable and may be attributed by random errors or could be explained by other explanatory variables.








Portions of information contained in this publication/book are printed with permission of Minitab, LLC. All such material remains the exclusive property and copyright of Minitab, LLC. All rights reserved.


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

Assessing Goodness of Fit

The coefficient of determination r2\colorFour{r^2} could be used to assess "goodness of fit" because it measures of how close the data are to the fitted regression model.

  • Keep in mind that not all regression models are linear.
  • If a linear model is unable to fit the specific curve that these data follow, then we will obtain a low r2\colorFive{r^2} value.


Linear vs. Quadratic

Image illustrating Assessing Goodness of Fit


Notice that we are not properly estimating demand, given the data set.


A quadratic model provides a better fit:

Image illustrating Assessing Goodness of Fit


We notice two things when we use a quadratic regression function:


  1. The r2r^2 drastically improved. This means we have a better estimate of demand at all price levels (within the data range).
  2. When the price is high, its effect of price on quantity is strong but its effect is diminishing as it does down. (The effect of price on quantity is constant if linear.)

More on Coefficient of Determination

Does a low r2r^2 mean the regression model is bad?


Not always! One explanatory variable in a regression model can only explain so much of the response variable. It doesn't mean that one explanatory variable is insignificant.


You can add more explanatory variables to the regression model, entailing a multiple regression model, which can increase r2r^2. (Imagine one hockey player trying his best alone in the rink - it doesn't mean he's a bad player; he just needs more help.)





Does a high r2r^2 mean the regression model is good?


Alas, not always. You still need to look at its residual plot to check for unwanted patterns like unequal spread, skewness, etc. Your regression model should be unbiased.




Practice: Coefficient of Determination (R Squared)

True or false?

(i) If the coefficient of determination r2r^2 is very strong, then xx and yy have a linear relationship with good fit.

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

Extra Practice