Find the equation for the least squares regression line of the data described below...

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

Answer

\(y = -0.066x + 17.617\)

Work

n=6, \bar{x}=24.333, \bar{y}=16, SS_{xy}=-122, SS_{xx}=1835.352, b=-0.066, a=17.617

Step-by-step solution

  1. Calculate the mean of $x$ and $y$: $\bar{x} = \frac{1+11+13+32+37+52}{6} = 24.333$ and $\bar{y} = \frac{5+21+23+18+27+2}{6} = 16$.
  2. Use the least squares formula for slope $b = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2}$.
  3. Calculate the numerator: $(1-24.333)(5-16) + (11-24.333)(21-16) + (13-24.333)(23-16) + (32-24.333)(18-16) + (37-24.333)(27-16) + (52-24.333)(2-16) = 256.663 - 66.665 - 79.331 + 15.334 + 139.337 - 387.338 = -122$.
  4. Calculate the denominator: $(1-24.333)^2 + (11-24.333)^2 + (13-24.333)^2 + (32-24.333)^2 + (37-24.333)^2 + (52-24.333)^2 = 544.449 + 177.778 + 128.449 + 58.778 + 160.449 + 765.449 = 1835.352$.
  5. Find $b = \frac{-122}{1835.352} \approx -0.06647$.
  6. Find the intercept $a = \bar{y} - b\bar{x} = 16 - (-0.06647)(24.333) \approx 16 + 1.6174 = 17.6174$.
  7. Rounding to the nearest thousandth, the equation is $y = -0.066x + 17.617$.