# HW5_Sol - Math 104 Fall 2009 Homework 5 solution set We use...

• Notes
• 2

This preview shows pages 1–2. Sign up to view the full content.

Math 104 Fall 2009 Homework 5: solution set We use the notations below to ease readability. Matrices are bold capital, vectors are bold lowercase and scalars or entries are not bold. For instance, A is a matrix and a ij its ( i, j )th entry. Likewise x is a vector and x j its j th component. The linear span generated by a group of vecotors v 1 , v 2 , . . . , v n is denoted by span( v 1 , v 2 , ..., v n ). Problem 1 The equation of a line is y = a + bx . We want to minimize (1 - a ) 2 + ( - 1 - a - b ) 2 + ( - 2 - a - 2 b ) 2 . In matrix form, we need to minimize k c - Az k 2 with A = 1 0 1 1 1 2 , c = 1 - 1 - 2 , z = a b Solving the equation in the sense of least squares sense gives z = ( A * A ) - 1 A * c = 5 6 - 3 2 Therefore, the linear equation is y = 5 6 - 3 2 x . Problem 2 Put A = 1 x 1 . . . . . . 1 x n , c = y 1 . . . y n , z = a b c - Az = y 1 - a - bx 1 . . . y n - a - bx n . Thus the pair ( a, b ) minimizing the sum n i =1 ( y i - a - bx i ) 2 is the vector c minimizing k c - Az k 2 . Therefore, z = ( A * A ) - 1 A * c We introduce some notations and let ¯

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern