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.075x + 46.394\)

Work

$n=5, \bar{x}=-5.4, \bar{y}=46.8, SS_{xx}=45.2, SS_{xy}=-3.4$
$b = \frac{-3.4}{45.2} \approx -0.075$
$a = 46.8 - (-0.075221)(-5.4) \approx 46.394$

Step-by-step solution

  1. Calculate the mean of $x$ and $y$: $\bar{x} = \frac{-10-7-5-4-1}{5} = -5.4$ and $\bar{y} = \frac{34+57+67+39+37}{5} = 46.8$.
  2. Calculate the slope $b = \frac{\sum(x_i - \bar{x})(y_i - \bar{y})}{\sum(x_i - \bar{x})^2}$.
  3. Compute deviations: $\sum(x_i - \bar{x})^2 = (-4.6)^2 + (-1.6)^2 + (0.4)^2 + (1.4)^2 + (4.4)^2 = 21.2 + 2.56 + 0.16 + 1.96 + 19.36 = 45.2$.
  4. Compute cross-products: $\sum(x_i - \bar{x})(y_i - \bar{y}) = (-4.6)(-12.8) + (-1.6)(10.2) + (0.4)(20.2) + (1.4)(-7.8) + (4.4)(-9.8) = 58.88 - 16.32 + 8.08 - 10.92 - 43.12 = -3.4$.
  5. Solve for $b = \frac{-3.4}{45.2} \approx -0.075221$.
  6. Solve for intercept $a = \bar{y} - b\bar{x} = 46.8 - (-0.075221)(-5.4) = 46.8 - 0.406193 = 46.393807$.
  7. Round to the nearest thousandth: $b \approx -0.075$ and $a \approx 46.394$.