Find the equation for the least squares regression line of the data: (3,18), (5,22)...

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

Answer

\(-2.132, 27.074\)

Work

$n=5, \bar{x}=6.6, \bar{y}=13$
$SS_{xy} = -58, SS_{xx} = 27.2$
$b = \frac{-58}{27.2} \approx -2.132$
$a = 13 - (-2.13235)(6.6) \approx 27.074$

Step-by-step solution

  1. Calculate the mean of $x$ and $y$: $\bar{x} = \frac{3+5+7+9+9}{5} = 6.6$ and $\bar{y} = \frac{18+22+9+14+2}{5} = 13$.
  2. Calculate the slope $b = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2}$.
  3. Numerator: $(3-6.6)(18-13) + (5-6.6)(22-13) + (7-6.6)(9-13) + (9-6.6)(14-13) + (9-6.6)(2-13) = (-3.6)(5) + (-1.6)(9) + (0.4)(-4) + (2.4)(1) + (2.4)(-11) = -18 - 14.4 - 1.6 + 2.4 - 26.4 = -58$.
  4. Denominator: $(3-6.6)^2 + (5-6.6)^2 + (7-6.6)^2 + (9-6.6)^2 + (9-6.6)^2 = 12.96 + 2.56 + 0.16 + 5.76 + 5.76 = 27.2$.
  5. Slope $b = \frac{-58}{27.2} \approx -2.13235... \approx -2.132$.
  6. Find the intercept $a = \bar{y} - b\bar{x} = 13 - (-2.13235)(6.6) \approx 13 + 14.0735 = 27.0735... \approx 27.074$.