Transformations to achieve linearity

通过变换实现线性化

How do transformations make a relation linear?

Guess the family from the scatter; log the variables to get a linear relation; fit the line; then convert back.

ApplicationKP000947

Sign in to read the whole lesson, with 1 interactive aid, 8 exercises

Sign in / Sign up

Mastery goals

  • Can choose a logarithmic, exponential or power curve from the shape of a scatter plot and introduce a new variable (such as x = ln t) to turn it into a simple linear regression
  • Can fit the regression to the transformed data, substitute back to get a nonlinear empirical regression equation and use it for prediction

Problem High-level male m sprinters are often called "flying men". Table 8.2-5 gives the years in which the men's m world records before were set, together with the records. Use these paired data to set up an empirical regression equation of the men's m world record on the year in which the record was set.

Table 8.2-5

No.
Year
Record/s

Draw a scatter plot with the year in which the record was set as the horizontal coordinate and the world record as the vertical coordinate; this gives Figure 8.2-12.

9.51010.51111.51212.5188019001920194019601980record/syear
Figure 8.2-12: scatter plot of the men's m world record against the year in which it was set.

In Figure 8.2-12 the points appear to lie roughly near a straight line, so it seems that the simple linear regression model can be used to set up an empirical regression equation.

Let be the men's m world record and the year in which the record was set. Use the simple linear regression model

to describe the relationship between the world record and the year it was set. By the method of least squares, the data in the table give the empirical regression equation

Adding the empirical regression line to the scatter plot gives Figure 8.2-13.

9.51010.51111.51212.5188019001920194019601980Y/st
Figure 8.2-13: the scatter plot and the empirical regression line of equation ①.

Using the empirical regression line as a reference, we can find the weaknesses of the empirical regression equation and also see finer features of how the points are spread. For example, the point for the first world record is far from the empirical regression line; the points in the early and late periods all lie above the line, while the points in the middle period all lie below it. This shows that the points are not spread randomly around the empirical regression line but vary around it in a definite pattern; that is, the paired sample data show clear features of nonlinear correlation.

Looking carefully at Figure 8.2-12, we find that the points tend rather to lie near some decreasing curve that is convex downward in the middle. Recalling the functions we know, the graph of has a similar shape. Note that the first men's m world record was set in , so we may take the points to be clustered around the curve

where and are unknown parameters and .

Using this function to describe the trend of the data gives a nonlinear empirical regression function, in which and are parameters to be determined. The problem now becomes how to estimate and from the paired data.

To estimate and with the simple linear regression model, we introduce an intermediate variable and let . Transforming the year data by gives new paired data (to ), shown in Table 8.2-6.

Table 8.2-6

No.
/s

If the scatter plot of Table 8.2-6 shows strong features of linear correlation, we can use the simple linear regression model and the new paired data to estimate and , and so obtain a nonlinear empirical regression equation of on .

Plot the paired data of Table 8.2-6 in a rectangular coordinate system, as in Figure 8.2-14; the points show strong features of linear correlation.

9.51010.51111.51212.5012345Y/sx
Figure 8.2-14: scatter plot of the paired data in Table 8.2-6.

So fit the paired data in Table 8.2-6 with the simple linear regression model

which gives the empirical regression equation

Then draw the empirical regression line of in Figure 8.2-14 to get Figure 8.2-15.

9.51010.51111.51212.5012345Y/sx
Figure 8.2-15: the scatter plot of Table 8.2-6 and the empirical regression line of .

Figure 8.2-15 shows that the empirical regression equation fits the paired data in Table 8.2-6 very precisely. Comparing Figure 8.2-15 with Figure 8.2-13, we see that and are far more strongly linearly correlated than the original sample data.

Substituting into gives the empirical regression equation that predicts the world record from the year in which it is set:

Draw, in one rectangular coordinate system, the scatter plot of the paired data, the graph of the nonlinear empirical regression equation ② and the graph of the empirical regression equation ①, as in Figure 8.2-16. Every point of the scatter plot lies very close to the graph of ②, which shows that the nonlinear empirical regression equation ② fits the original data far better than the empirical regression equation ①.

xy1890190019101920193019401950196019709.51010.51111.512
Figure 8.2-16: the scatter plot, the graph of the empirical regression equation ① (the line) and the graph of the nonlinear empirical regression equation ② (the curve). The horizontal axis is the year and the vertical axis is the record (in s).

Related points

All points in this topic

Cite this page: Transformations to achieve linearity · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000947