Docsity

Math 111 - Quiz 8: Least Squares Line & Square Error Calculation - Prof. David Singman, Quizzes of Mathematics

Toggle sidebar
bg1
April 19, 2012
Math 111 - Quiz 8
1. Consider the the data
๎˜Œ
๎˜Œ
๎˜Œ
๎˜Œ
x-2 0 1
y-1 3 10 .Let the least squares line have the equation y=
c1+c2x.
(a) Write down in matrix form the equation you would need to solve in order to find c1and
c2. Now solve the equation using the matrix inverse method. Use it to write down the
equation of the least squares line.
(b) Find the square error if you use the line y= 4 + 2xto approximate the data.
(c) What does your answer to part (b) above tell you about the least squares error for the
data? Answer this without calculating the least squares error.

Partial preview of the text

Download Math 111 - Quiz 8: Least Squares Line & Square Error Calculation - Prof. David Singman and more Quizzes Mathematics in PDF only on Docsity!

April 19, 2012

Math 111 - Quiz 8

  1. Consider the the data

x -2 0 1

y -1 3 10

. Let the least squares line have the equation y =

c 1 + c 2 x.

(a) Write down in matrix form the equation you would need to solve in order to find c 1 and

c 2. Now solve the equation using the matrix inverse method. Use it to write down the

equation of the least squares line.

(b) Find the square error if you use the line y = 4 + 2x to approximate the data.

(c) What does your answer to part (b) above tell you about the least squares error for the

data? Answer this without calculating the least squares error.