Exercise: Prediction in a linear model
Objective
Students were supposed to recognize that variability of fitted values is about uncertainty in where to draw the regression line, while variability in prediction adds the noisiness of data being distributed around the line.
I also chose to emphasize that the linear model has lower variance nearer to the mean of covariate values, which was apparently counterintuitive. We took a long time on this exercise because the students had a hard time figuring out where to start.
Exercise
Setup
You’ve fitted a linear model to the data that relates car weight to fuel efficiency. The following are the summary from R’s lm function, and a plot of the model is on the back:
Questions
-
The Toyota Corolla has a weight of 1835 pounds, and a fitted value of 27.5 mpg. If possible, estimate the variance of the fitted value. Otherwise, identify the sources of variability in the fitted value for the Corolla.
-
A new car is being designed with a weight of 2000 pounds. Predict the fuel efficiency of the new car. If possible, estimate the variance of the predicted fuel efficiency of this new car. Otherwise, identify the sources of variability for the prediction.