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.
Sign in to read the whole lesson, with 1 interactive aid, 8 exercises
Sign in / Sign upMastery 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.
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.
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.
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.
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 ①.
Related points
All points in this topicCite this page: Transformations to achieve linearity · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000947