Docsity

Singular Value Factorization and Decomposition in Applied Linear Algebra, Exercises of Linear Algebra

Toggle sidebar
bg1
Applied Linear Algebra
——–
Chapter 6: Quadratic forms and Singular Value Decomposition
Section 5: Singular value factorization and decomposition
Ivan Contreras, Sergey Dyachenko and Bob Muncaster
University of Illinois at Urbana-Champaign
April 27 2018
Ivan Contreras, Sergey Dyachenko and Bob MuncasterUniversity of Illinois at Urbana-ChampaignApplied Linear Algebra——– April 27 2018 1 / 8
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Singular Value Factorization and Decomposition in Applied Linear Algebra and more Exercises Linear Algebra in PDF only on Docsity!

Applied Linear Algebra

——–

Chapter 6: Quadratic forms and Singular Value Decomposition Section 5: Singular value factorization and decomposition Ivan Contreras, Sergey Dyachenko and Bob Muncaster University of Illinois at Urbana-Champaign April 27 2018 Ivan Contreras, Sergey Dyachenko and Bob MuncasterUniversity of Illinois at Urbana-ChampaignApplied Linear Algebra——– April 27 2018 1 / 8

The Singular Value Factorization of a Matrix (SVF)

Theorem: Let A be an m × n matrix of rank r. Then A has the

factorization

A = UΣV

T

where U is an m × m orthogonal matrix, V is an n × n orthogonal matrix,

and Σ is an m × n matrix that is “essentially” diagonal in the sense that it

has the form

σ 1 0 · · · 0 0

0 σ 2

0 · · · · · · σ r 0

0 · · · · · · 0 0

r

m − r

r

n−r

where σ 1 ≥ σ 2 ≥ · · · ≥ σ r > 0 are the singular values of A. We call this

the singular value factorization of A.

More Observations

Moreover we note that

A

T A =

UΣV

T

)T

UΣV

T = V Σ

T U

T UΣV

T = V

T Σ

V

T

where Σ

T Σ = diag( σ

2 1 , ...,^ σ

2 r , 0, ..., 0 ︸ ︷︷ ︸

n−r

) is n × n

But AT^ A is ALWAYS a symmetric matrix and this is just its spectral

factorization. We conclude that:

the columns of V are an orthonormal basis of eigenvectors of A

T A,

and

σ

2 1 , ...,^ σ

2 r are the non-zero eigenvalues of^ A

T A, ordered from largest

to smallest.

Ex: Consider

A =

[

]

An Example

Then

A

T A =

[

]

with eigenvalues λ 1 = 3, λ 2 = 1, λ 3 = 0 and eigenvectors

x 1 =

 (^) , x 2 =

 (^) , x 3 =

so

T Σ =

 , V =

√^1 6

√^1 2

√^1 3

− √^2 6

√^1 3 √^1 6

√^1 2

√^1 3

More Precision in the Calculation of the SVF

There is some ambiguity in the preceding calculation (even though the one

given here works). If x is an eigenvector that is a unit vector, so is −x.

This can change the matrices U and V in such a way that our

factorization doesn’t work. More broadly, if the dimension of the

eigenspace for some λ is larger than 1, Gram-Schmidt needs to be used to

find an orthonormal basis and there are infinitely many orthonormal bases

to chose from. There is, fortunately, a way to avoid this problem.

Write A = UΣV

T alternately as AV = UΣ. If u 1 , ..., um are the columns

of U and v 1 , ..., vn are the columns of V , then this last equation can be

written alternately as

Avj = σ j uj , j = 1, ..., r (*)

Avj = 0 , j = r + 1, ..., n (**)

The first of these can be used to compute u 1 , ..., ur and this removes the

ambiguity.

Proof of the Main Theorem

In summary we set

uj =

σ j

Avj , j = 1, ..., r

and ur + 1 , ..., um are any orthonormal basis of

the null space of AA

T

Indeed, the proof of our theorem involves just proving that a) the uj as

computed this way are appropriate orthonormal eigenvectors of AA

T

(equation (*)) and that vr + 1 , ..., vn are in the null space of A (equation

(**)).

Proof of (**): We have seen previously that A and A

T A have the same

nullspace. Another way to say this is that the eigenspaces of A and A

T A

corresponding to eigenvalue λ = 0 are the same. This proves (**).

The Big Picture

At this point let’s look back at the “big picture” first outlined in Topic 2

Part 4 and Topic 3 Part 2:

R

n

N (A)

dim n − r

C(A

T )

dim r

R

m

N (A

T )

dim m − r

C(A)

dim r

y = Ax

We can now add to this picture the additional info:

u 1 , ..., ur is an orthonormal basis of C (A)

A New Decomposition of Matrices

ur + 1 , ..., um is an orthonormal basis of N(A

T ) (since

N(AA

T ) = N(A

T ))

v 1 , ..., vr is an orthonormal basis of C (A

T )

vr + 1 , ..., un is an orthonormal basis of N(A) (since N(A

T A) = N(A))

Wow! Orthonormal bases everywhere!

Given any vector in R

n we can write

v = x 1 v 1 + · · · + xnvn = V

x 1

. . .

xn

 where^ xi = (vi ,^ v^ ) =^ v^

T i v

Then

Av = (UΣV

T )V ︸ ︷︷ ︸

I

x 1

. . .

xn

 =^ UΣ

x 1

. . .

xn

An Example

Ex: From previous calculations we have

A =

[

]

= σ 1 u 1 v

T 1 +^ σ^2 u^2 v^

T 2

[

√^1 2 √^1 2

]

√^1 6

− √^2 6 √^1 6

T

[

√^1 2 √^1 2

]

√^1 2 0

√^1 2

T

3 ×

[

]

+ 1 ×

[

]

The singular value decomposition is an important tool in digital imaging

because an image (viewed as a large array of grey scale values of pixels)

can be simplified by throwing away from the singular value decomposition

terms whose σ i is very small compared to the first few σ i ’s (remember that

they are ordered from largest to smallest).