Write a linear regression equation for the data (2,20), (6,44), (7,42), (11,59), (1...
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
$\sum x = 40, \sum y = 251, \sum xy = 2369, \sum x^2 = 386, n=5$
$m = \frac{5(2369) - (40)(251)}{5(386) - 40^2} = \frac{11845 - 10040}{1930 - 1600} = \frac{1805}{330} \approx 5.0909...$
$b = \frac{251 - 5.0909(40)}{5} = \frac{251 - 203.636}{5} = 10.636...$
Using the least squares method for the data points (2,20), (6,44), (7,42), (11,59), (14,86), we calculate the slope $m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}$ and intercept $b = \bar{y} - m\bar{x}$.