Coefficient of determination

决定系数

What does the coefficient of determination measure?

It is one minus the share of the total variation left in the residuals; closer to one means the model explains more.

ConceptKP000945

Sign in to read the whole lesson, with 4 exercises

Sign in / Sign up

Mastery goals

  • Can compare how well two regression equations fit the data by their sums of squared residuals
  • Can compute R² = 1 − Σ(yᵢ − ŷᵢ)²/Σ(yᵢ − ȳ)² and explain that a larger R² means a better fit
  • Can interpret R² (which equals r² in simple linear regression) as the fraction of the variation in the response explained by the model

Next we use residuals to compare how well the empirical regression equations ① and ② describe the data. In Table 8.2-5, let be the year with number and the record with number . Then the residuals of the empirical regression equations ① and ② are computed by

The residuals of the two empirical regression equations (to ) are shown in Table 8.2-7. Comparing the absolute values of the residuals, we find that those of equation ② are far smaller than those of ①; that is, the empirical regression equation ② fits far better than ①.

Table 8.2-7

No.

In general it is hard to compare the residuals of two models directly, because at some points one model's residual is smaller in absolute value than the other's, while at other points the opposite holds. We can then compare the two models by comparing their sums of squared residuals. From

we see that is smaller than . So, by the standard of the smallest sum of squared residuals, the nonlinear regression model

fits better than the simple linear regression model.

We can also compare how well two models fit with the coefficient of determination . The formula for is

In the expression for , does not depend on the empirical regression equation, while the sum of squared residuals does. So the larger is, the smaller the sum of squared residuals, that is, the better the model fits; the smaller is, the larger the sum of squared residuals, that is, the worse the model fits.

From Table 8.2-7 it is easy to work out that is about for the empirical regression equation ① and about for ②, so equation ② describes the data much better than equation ①.

We can also test how well a model fits with new observed data. In fact, we also have the men's m world records set after , shown in Table 8.2-8.

Table 8.2-8

No.
/s
No.
/s

Plot the points of Table 8.2-8 in the scatter plot of Figure 8.2-12 and add the empirical regression line of ① and the empirical regression curve of ②; this gives Figure 8.2-17. Clearly the new points lie near the regression curve ② and far from the regression line ①, which shows that the empirical regression equation ② predicts the new data far better than ①.

xy19001920194019601980200099.51010.51111.512
Figure 8.2-17: the filled points are the data of Table 8.2-5 and the hollow points are the new data of Table 8.2-8; the line is the graph of the empirical regression equation ① and the curve is the graph of the empirical regression equation ②.

When using an empirical regression equation to make predictions, pay attention to the following points.

(1) An empirical regression equation applies only to the population from which the sample studied was drawn. For example, an empirical regression equation set up from data on the heights of fathers and sons in China cannot be used to describe the relationship between the heights of fathers and sons in the United States. Likewise, an empirical regression equation set up from data on the heights and DBH of trees growing in the rainy south cannot be used to describe the relationship between height and DBH of trees in the dry north.

(2) An empirical regression equation is usually valid only for a certain period of time. For example, an empirical regression equation set up from data on the heights of fathers and sons in the s cannot be used to describe the relationship between the heights of fathers and sons today.

(3) The value of the explanatory variable must not be too far from the range of the sample data. In general, the empirical regression equation predicts fairly well when the value of the explanatory variable is within the range of the sample data; the further outside this range, the worse the prediction.

(4) Do not expect the predicted value given by an empirical regression equation to be the exact value of the response variable. In fact, it is the mean of the possible values of the response variable.

Related points

All points in this topic

Cite this page: Coefficient of determination · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000945