Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A dealer records the age of six cars in months and the value of each in hundreds of pounds: and . Find the line of best fit of value on age, the value it predicts at months, the value it predicts at months, and .
Prediction inside the data is interpolation. Outside it is extrapolation. is the share of the variation in explained by the line. One odd point can change and the line a lot.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The line. . The intercept is . So .
Step 2. Inside the data. At : hundred pounds, which is the mean value, because is the mean age.
Step 3. Outside the data. At : hundred pounds. This is extrapolation.
Step 4. The fit. , so the line explains of the variation in value.
Answer: slope , intercept , predictions and , and . The first prediction can be trusted. The second goes far beyond the ages in the data.
Log in to join the discussion.
Loading…