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

\(-0.125, 4.500\)

Work

n=5, \sum x=20, \sum y=20, \sum x^2=104, \sum xy=77
b = \frac{5(77)-20(20)}{5(104)-20^2} = -0.125
a = \frac{20}{5} - (-0.125)(\frac{20}{5}) = 4.5

Step-by-step solution

  1. Calculate the sums: $\sum x = 20$, $\sum y = 20$, $\sum x^2 = 104$, $\sum xy = 77$, and $n = 5$.
  2. Find the slope $b = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2} = \frac{5(77) - (20)(20)}{5(104) - (20)^2} = \frac{385 - 400}{520 - 400} = \frac{-15}{120} = -0.125$.
  3. Find the y-intercept $a = \bar{y} - b\bar{x} = 4 - (-0.125)(4) = 4 + 0.5 = 4.5$.
  4. The equation is $y = -0.125x + 4.500$.