Coefficient of Determination

Coefficient of Determination (R Squared)
The coefficient of determination (also known as R Squared) r2 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 r2 (poor fit):

Example: A high r2 (good fit):

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
r2= coefficient of determination, where 0≤r2≤1
r2 = “____% variation of y is explained by x”, where
x: predictor/explanatory/independent variable
y: response/dependent variable
Example
If r2=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.

Assessing Goodness of Fit
The coefficient of determination r2 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 value.
Linear vs. Quadratic
Notice that we are not properly estimating demand, given the data set.
A quadratic model provides a better fit:
We notice two things when we use a quadratic regression function:
- The r2 drastically improved. This means we have a better estimate of demand at all price levels (within the data range).
- 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 r2 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 r2. (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 r2 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.