
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 math quiz focusing on finding the least-squares line that best fits a set of given points in a 2d space. Students are required to find the design matrix x and observation vector y, calculate the normal equation, and determine the residuals. They will also 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 _SJJldti .s)v(,01_ 8am 1:10 pm
a lab where the data was supposed lie on a single line. Obviously something went wrong; these fOUIpoints can't possibly be on the same line. - 1a. Explicitly, what are the design matrix X and observation vector y you would use in a matrix
i (^) [
,
lb. Since Xf3 = y has no solution, we'll have to be content with the least-squares solution. Find it; ie, find fJoand /31for which y = /30 + /31 x is the least-quares line that best fits the fOUIgiven points- Show all yourwork! T , '
J I
~<?
I Z
Y1fJW, [
..., to - !
I'l. ] [
9 Vo -== -1/~ {>
~,,':: 2, S
into a vector we'll call p; p is OUIvector of predicted values.
est-fit line, and assemble them
p= -t -z.. g
1d. Findthe fOUIresiduals, and then the sum of their squares (80S).
[
]
g/+/'il{-to-r'l
PI and P.. Find the four residuals for fhis line,~d ~~:tb
J
e SUffi
[
]
the
l
i~ ;:u
]
ares
s. 0
j gO. 'Z~ l' 2~. 2 $"
. 3.5 <;: 3.) 'f.S -::::: '-/00. S
~
[
,/ 11 j}. J.. (\ ]
[
-If,
-I"
]
13 /D 0 >fh4ktr ~ 14. dt,{/~ 1~ -7.-{ fc> I~ It? /D