Docsity

Least Squares Problem - Full Rank in Computational Science and Engineering - Prof. Chongwo, Study notes of Computer Science

Partial preview of the text

Download Least Squares Problem - Full Rank in Computational Science and Engineering - Prof. Chongwo and more Study notes Computer Science in PDF only on Docsity!

CS 8803 NMC: Numerical Methods in

Computational Science and Engineering: Matrix

Computations

Haesun Park

hpark



@cc.gatech.edu

Division of Computational Science and Engineering

College of Computing

Georgia Institute of Technology

Atlanta, GA 30332, USA

Lecture 11, September 27, 2007

Least Squares Problem โ€“ Full Rank

7

Least Squares Problem โ€“ Full Rank

7.

Least Squares Problem

Givens

,

and

, want solution to

(overdetermined system), i.e.

usually has no exact solution. e.g.

with

,

If

, where

and

, then

and

Orthogonal Complement

of

,

:

for

all

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.1/

Least Squares Problem โ€“ Full Rank

Claim: the LS Solution is unique iff







.

Proof:(

) Assume the unique solution is

. If







, we can find a

nonzero







i.e.

, hence

.

is

another solution, which is a contradiction.(



) To prove







solution is unique.

Assume solution not unique, then





s.t.

and

, where

is the projection of

onto

.

,









,

which is a contradiction.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.3/

Least Squares Problem โ€“ Full Rank

7.

Solved by QR Factorization

,





,























where









.

Solution for LS is the solution for linear equation



when

.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.4/

Least Square Problem โ€“ Full Rank

Example:

,





,



.

Assume

,

, chopped arithmetic.







,

,



.

Assume

,

,







,





where

is solution for





.



.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.6/

Least Square Problem โ€“ Full Rank

Accuracy of Solution of Normal Equations Assume no roundoff error occurs in forming

and

, then Normal

Equations solution

satisfies

where



and

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.7/

Classical Gram-Schmidt (CGS) for Reduced QRD

Given linear independent vectors

, find an orthonormal basis

for



 

, i.e.,

compute the reduced QRD for





Let











. From













.

.

.

...









...













...





CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.9/

Classical Gram-Schmidt (CGS) for Reduced QRD

For

, we have











Since







are orthogonal,























,

.

We assume that

, so



.















CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.10/