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.165, 48.748\)

Work

$n=6, \sum x=366, \sum y=235, \sum x^2=26620, \sum xy=13318$
$b = \frac{6(13318) - (366)(235)}{6(26620) - (366)^2} = \frac{-6678}{40524} \approx -0.16479$
$a = \frac{235 - (-0.16479)(366)}{6} \approx 48.7483$
$y = -0.165x + 48.748$

Step-by-step solution

  1. Organize the data into two lists: $x = \{30, 40, 46, 64, 88, 98\}$ and $y = \{47, 40, 39, 44, 30, 35\}$.
  2. Calculate the slope $b$ using the formula $b = \frac{n\sum xy - (\sum x)(\sum y)}{n\sum x^2 - (\sum x)^2}$.
  3. Calculate the intercept $a$ using $a = \bar{y} - b\bar{x}$, where $\bar{x}$ and $\bar{y}$ are the means.
  4. Using a calculator, the slope $b \approx -0.165$ and the intercept $a \approx 48.748$.
  5. The regression line is $y = -0.165x + 48.748$.