CS
CS 205A class_4 notes

# Scientific Computing

• Notes
• PresidentHackerCaribou10582
• 4

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

CS205 - Class 4 QR Continued (Readings Heath pp120-137) 1. Transition to Householder. So far, we’ve seen two different ways of finding a least squares solution, namely the normal equations and the (modified) Gram-Schmidt method. Using the normal equations squares the condition number of the A matrix, which could be bad to begin with. The Gram-Schmidt method does not suffer from the same numerical problems, but can still be unstable. If the columns of A are “nearly linearly-dependent,” then this method can suffer from numerical instabilities. The QR decomposition is exactly what the Gram-Schmidt procedure does couched in the language of matrix factorization. There is an algorithm to performs the QR factorization that does not suffer from the numerical instabilities mentioned above and this is the one that is quite often used by practitioners. 2. A Householder transform is defined by T T vv v v I H 2 = for some vector 0 v . Note that 1 T H H H = = , and thus H is orthogonal. a. For a vector a , we define k H using 2 ˆ ˆ ( ) k k k v a S a a e = + where ˆ (0, ,0, , , ) T k m a a a = " " and ( ) 1 k S a = ± is the sign function. Then k H a zeroes out the entries of a below k a . b. Let 2 1 2 a ⎡ ⎤ ⎢ ⎥ = ⎢ ⎥ ⎢ ⎥ ⎣ ⎦ . Then ( ) ( ) = + = + = 2 1 5 0 0 1 9 2 2 1 2 ˆ ˆ 1 2 1 1 S e a a S a v . c. Note that v v v a v a Ha T T 2 = so we never need to form H explicitly, but instead only need to find the vector v . d. ( )( ) ( )( ) ⎡− = × = = 0 0 3 2 1 5 30 15 2 2 1 2 2 1 5 2 , 1 , 5 2 , 1 , 5 2 , 1 , 2 2 , 1 , 5 2 2 1 2 2 1 2 1 T T H .

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