Predicting Highway MPG using Cars2025 dataset

Check the final answer first, then review the worked steps.

Answer

10.6, 1.3, 9.2

Work

a = 10.6, b = 1.3
\widehat{y} = 10.6 + 1.3x
\widehat{y}(24) = 10.6 + 1.3(24) = 41.8
Residual = 51 - 41.8 = 9.2

Step-by-step solution

  1. Identify the regression line parameters from the Cars2025 dataset. The intercept $a$ is approximately $10.6$ and the slope $b$ is approximately $1.3$.
  2. Write the prediction equation as $\widehat{HwyMPG} = 10.6 + 1.3 \cdot CityMPG$.
  3. Calculate the predicted highway MPG for the Corolla using $CityMPG = 24$: $\widehat{HwyMPG} = 10.6 + 1.3(24) = 10.6 + 31.2 = 41.8$.
  4. Find the residual by subtracting the predicted value from the actual value: $Residual = Actual - Predicted = 51 - 41.8 = 9.2$.