Find the equation for the least squares regression line of the data: (20,7), (25,8)...

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

Answer

\(-0.204, 12.058\)

Work

n=5, \sum x=158, \sum y=28, \sum x^2=5442, \sum xy=733
m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2} = \frac{5(733) - 158(28)}{5(5442) - 158^2} = \frac{-918}{4492} \approx -0.204
b = \bar{y} - m\bar{x} = 5.6 - (-0.20436)(31.6) \approx 12.058

Step-by-step solution

  1. Calculate the mean of $x$ and $y$: $\bar{x} = \frac{20+25+32+33+48}{5} = 31.6$ and $\bar{y} = \frac{7+8+6+5+2}{5} = 5.6$.
  2. Calculate the slope $m$ using $m = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2}$.
  3. The numerator is $(20-31.6)(7-5.6) + (25-31.6)(8-5.6) + (32-31.6)(6-5.6) + (33-31.6)(5-5.6) + (48-31.6)(2-5.6) = -16.24 - 15.84 + 0.16 - 0.84 - 59.04 = -91.8$.
  4. The denominator is $(20-31.6)^2 + (25-31.6)^2 + (32-31.6)^2 + (33-31.6)^2 + (48-31.6)^2 = 134.56 + 43.56 + 0.16 + 1.96 + 268.96 = 449.2$.
  5. $m = \frac{-91.8}{449.2} \approx -0.20436... \approx -0.204$.
  6. Find the intercept $b$ using $b = \bar{y} - m\bar{x} = 5.6 - (-0.20436)(31.6) \approx 5.6 + 6.4578 = 12.0578... \approx 12.058$.