The three-point line
For , , and , what is the least-squares line, and what is its residual sum of squares?
Worked answer
The slope is and the line is . The residual sum of squares is .
For (0,0), (1,1), and (2,0), what is the least-squares line, and what is its residual sum of squares?
The slope is 0 and the line is y=1/3. The residual sum of squares is 2/3.