CS 417/517 Assignment 6: Solving Least-Squares Problems with QR Factorization, Assignments of Computer Science

The instructions for assignment 6 of the cs 417/517 computational methods and software course, which involves solving least-squares problems using normal equations and qr factorization in matlab. The assignment includes solving a given problem using both methods, and showing the results of the normal equations, cholesky factor, and least-squares solution vector. Additionally, there are additional problems related to orthogonal matrices and their properties.

Typology: Assignments

Pre 2010

Uploaded on 02/12/2009

koofers-user-wmt-1
koofers-user-wmt-1 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 417/517 Computational Methods and Software
Spring 2004
Assignment 6
Assigned: Thurs March 25, 2004; Due: Thurs April 1, 2004
1. Consider the least-squares problem Ax bdiscussed in class, where
A=
11 1
10.5 0.25
1 0 0
1 0.5 0.25
1 1 1
, b =
1
0.5
0
0.5
2
.
Solve this problem in Matlab, using the normal equations, and the Cholesky factorization.
Show the matrix and the right-hand side vector in the normal equations, the Cholesky factor,
and the least-squares solution vector x.
2. Consider Problem 3.2from the text book. Instead of using the normal equations approach,
compute the least squares solution using the QR factors of the coefficient matrix via Matlab.
3. Problem 3.5from the book.
4. (a) If Q1and Q2are orthogonal matrices, show that their product Q1Q2is also an orthog-
onal matrix.
(b) If Qis an orthogonal matrix, then for any vector v, the 2-norm of Q v is equal to the
2-norm of v. Use this fact and the definition of the 2-norm of a matrix,
kQk2= max
v
kQvk2
kvk2
,
to show that the 2-norm of an orthogonal matrix is 1. What is the 2-norm condition
number of an orthogonal matrix?

Partial preview of the text

Download CS 417/517 Assignment 6: Solving Least-Squares Problems with QR Factorization and more Assignments Computer Science in PDF only on Docsity!

CS 417/517 Computational Methods and Software

Spring 2004 Assignment 6 Assigned: Thurs March 25, 2004; Due: Thurs April 1, 2004

  1. Consider the least-squares problem Ax ≈ b discussed in class, where

A =

    

    

, b =

    

    

Solve this problem in Matlab, using the normal equations, and the Cholesky factorization. Show the matrix and the right-hand side vector in the normal equations, the Cholesky factor, and the least-squares solution vector x.

  1. Consider Problem 3. 2 from the text book. Instead of using the normal equations approach, compute the least squares solution using the QR factors of the coefficient matrix via Matlab.
  2. Problem 3. 5 from the book.
  3. (a) If Q 1 and Q 2 are orthogonal matrices, show that their product Q 1 Q 2 is also an orthog- onal matrix. (b) If Q is an orthogonal matrix, then for any vector v, the 2-norm of Q v is equal to the 2-norm of v. Use this fact and the definition of the 2-norm of a matrix,

‖Q‖ 2 = max v

‖Qv‖ 2 ‖v‖ 2

to show that the 2-norm of an orthogonal matrix is 1. What is the 2-norm condition number of an orthogonal matrix?