
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A quiz question from a math 205b&c course, where students are required to find the best-fit line for a set of given points using matrix equations and least-squares solutions. The document also asks students to compare the results with an alternative line.
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Math 205B&C 04/03/09 Quiz 08 page 1 Name 8am 1:10 pm
equation Xβ = y to find β =
β 0 β 1
such that the four points above are on the line y = β 0 + β 1 x?
X = y =
1b. Since Xβ = y has no solution, we’ll have to be content with the least-squares solution. Find it; ie, find β 0 and β 1 for which y = β 0 + β 1 x is the least-squares line that best fits the four given points. Show all your work!
β 0 = β 1 =
1c. Find the four y coordinates corresponding to x = 1, 3 , 7 , 9 on the best-fit line, and assemble them into a vector we’ll call p; p is our vector of predicted values. p =
1d. Find the four residuals, and then the sum of their squares (SOS).
Four Residuals: SOS:
1e. You might think that the line y = − 77 /4 + 13/ 4 x would be a better fit: At least it goes through P 1 and P 4. Find the four residuals for this line, and then the sum of their squares.
Four Residuals: SOS:
1f. Which line is a better fit? Explain.