Chapter 5: Q20E (page 216)
Refer to Figure 13 of this section. The least-squares linefor these data is the line y=mxthat fits the databest, in that the sum of the squares of the vertical distancesbetween the line and the data points is minimal.We want to minimize the sum
In vector notation, to minimize the sum means to find the scalar msuch that is minimal. Arguing geometrically, explain how you can find m. Use the accompanying sketch, which is not drawn to scale.
Find mnumerically, and explain the relationship between mand the correlation coefficient r. You may find the following information helpful:
To check whether your solution mis reasonable, draw the line y=mxin Figure 13. (A more thorough discussion of least-squares approximations will follow in Section 5.4.)
Short Answer
The value of , the value of r is very close to 1. So, for the line , all the point lies almost on the line.