In: Statistics and Probability
x | y |
2 | 4 |
3 | 7 |
4 | 8 |
6 | 16 |
7 | 19 |
(b) Find the equation of the line containing the points (2,4) and (7,19).
(d) By hand, determine the least-squares regression line (Round to three decimal places as needed).
(f) Compute the sum of the squared residuals for the line found in part (b) /(Round to three decimal places as needed).
(g) Compute the sum of the squared residuals for the least-squares regression line found in part (d). / (Round to three decimal places as needed).
Please provide simple guidance straight forward guidance.
using the first equation and m=3, we get
x | y | predicted y using part b) y=3x-2 | Residual (e) (part b) |
2 | 4 | 3*2-2=4 | 4-4=0 |
3 | 7 | 3*3-2=7 | 7-7=0 |
4 | 8 | 3*4-2=10 | 8-10=-2 |
6 | 16 | 3*6-2=16 | 16-16=0 |
7 | 19 | 3*7-2=19 | 19-19=0 |
x | y | predicted y using part d) y=3.047x-2.605 | Residual (e) (part d) |
2 | 4 | 3.047*2-2.605=3.488 | 4-3.488=0.512 |
3 | 7 | 3.047*3-2.605=6.535 | 7-6.535=0.465 |
4 | 8 | 3.047*4-2.605=9.581 | 8-9.581=-1.581 |
6 | 16 | 3.047*6-2.605=15.674 | 16-15.674=0.326 |
7 | 19 | 3.047*7-2.605=18.721 | 19-18.721=0.279 |