Docsity

Least Squares Problem: Normal Equations and Cholesky Decomposition, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Department of Mathematics Fall 2007
MATH 6370, Section 10583 MW 5:30-7:00PM
A. Caboussat
Answers Homework Chapter 4
HOMEWORK FROM THE TEXT
Problem 14 (Chapter 4 - Problem 14) 4 14
The least squares problem can be written as
min
x||y−Ax||2,
where
y=
y1
.
.
.
ym
, x =x1
x2, A =
1 1
2 1
.
.
..
.
.
m1
.
(a) The normal equations can be written as
ATAx =ATy⇔Pm
k=1 k2Pm
k=1 k
Pm
k=1 k m x1
x2=Pm
k=1 kyk
Pm
k=1 yk
(b) The Cholesky decomposition of ATA=B=LLTgives a lower triangular matrix
L=
pPm
k=1 k0
Pm
k=1 k
√Pm
k=1 k2m−(Pm
k=1 k)2
Pm
k=1 k2
.
(c) By using the suggested exercise, we obtain an approximation of the condition number of L:
cond (L)>max
1,pPk2
m−(Pk)2
Pk2
,m−(Pk)2
Pk2
pPk2
.
(d) When mbecomes large, we use the relations:
m
X
k=1
k=m(m+ 1)
2,
m
X
k=1
k2=m(m+ 1)(2m+ 1)
6,
and the condition number is given by:
cond (L)≃pPk2
m−(Pk)2
Pk2≃ O(√m).
pf2

Partial preview of the text

Download Least Squares Problem: Normal Equations and Cholesky Decomposition and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Department of Mathematics Fall 2007

MATH 6370, Section 10583 MW 5:30-7:00PM

A. Caboussat

Answers Homework Chapter 4

HOMEWORK FROM THE TEXT

Problem 14 (Chapter 4 - Problem 14) 4 14

The least squares problem can be written as

min x

||y − Ax|| 2

where

y =

y 1

. . .

ym

 ,^ x^ =

x 1

x 2

, A =

m 1

(a) The normal equations can be written as

A

T Ax = A

T y ⇔

m k= k 2

∑m

k= k ∑m

k= k m

x 1

x 2

m k= kyk ∑m

k= yk

(b) The Cholesky decomposition of A T A = B = LL T gives a lower triangular matrix

L =

m k= k 0 Pm √ k=1^ k P m k=1 k

2

m −

Pm k=1 k)

2 P m k=1 k

2

(c) By using the suggested exercise, we obtain an approximation of the condition number of L:

cond (L) > max

k 2

m −

(

P k) 2 P k^2

m −

(

P k) 2 P k^2 √∑ k 2

(d) When m becomes large, we use the relations:

m ∑

k=

k =

m(m + 1)

m ∑

k=

k

2

m(m + 1)(2m + 1)

and the condition number is given by:

cond (L) ≃

k 2

m −

(

P k) 2 P k^2

≃ O(

m).

Problem 15 (Chapter 4 - Problem 15) 4 15

The problem reads

min x

||y − Ax|| 2

where

A =

, x =

β

α

, y =

The normal equations reads

β

α

ahdn thus α = 2.0 and β = 0.9.

ADDITIONAL HOMEWORK

Problem 10 9

First note that, for all x ∈ C

m , we can write x = xR + x

⊥ R , where xR ∈ R(A) and x

⊥ R

∈ R(A)

⊥

. Thus, for all

y ∈ C

m :

(x

⊥ R )

H Ay = 0 ⇒ y

H (A

H x

⊥ R ) = 0^ ⇒^ A

H x

⊥ R = 0.

Then, since A 1 is invertible and of full column rank, the pseudoinverse can be written as

A

=

A

H A

A

H

Therefore

∣A+

∣ (^) = max x∈Cm,x 6 =

(A

H A)

− 1 (A

H xR + A

H x

⊥ R

||x||

6 max x∈Cm,x 6 =

∣(AH^ A)−^1 AH^ x R

||x||

6 max w∈Cn,w 6 =

∣(AH^ A)−^1 AH^ Aw

||Aw||

6 max w∈Cn,w 6 =

||w||

||Aw||

6 max w∈Cn,w 6 =

||w|| √

||A 1 w||

2

  • ||A 2 w||

2

6 max w∈Cn,w 6 =

||w||

||A 1 w||

= max z∈Cn,w 6 =

A

− 1 1 z

||z||

= |||A 1 |||.