41 views

Uploaded by mandingomonstercok

Geometrical Interpretation of Singular Value Decomposition and its applications to image compression.

save

You are on page 1of 9

Singular Value Decomposition

**The singular value decomposition (SVD) allows us to transform a matrix A ∈ Cm×n to
**

diagonal form using unitary matrices, i.e.,

ˆ ΣV

ˆ ∗.

A=U

(4)

**ˆ ∈ Cm×n has orthonormal columns, Σ
**

ˆ ∈ Cn×n is diagonal, and V ∈ Cn×n is

Here U

unitary. This is the practical version of the SVD also known as the reduced SVD. We

will discuss the full SVD later. It is of the form

A = U ΣV ∗

with unitary matrices U and V and Σ ∈ Cm×n .

Before we worry about how to find the matrix factors of A we give a geometric

interpretation. First note that since V is unitary (i.e., V ∗ = V −1 ) we have the equivalence

ˆ ΣV

ˆ ∗ ⇐⇒ AV = U

ˆ Σ.

ˆ

A=U

Considering each column of V separately the latter is the same as

Av j = σj uj ,

j = 1, . . . , n.

(5)

**Thus, the unit vectors of an orthogonal coordinate system {v 1 , . . . , v n } are mapped
**

under A onto a new “scaled” orthogonal coordinate system {σ1 u1 , . . . , σn un }. In other

words, the unit sphere with respect to the matrix 2-norm (which is a perfectly round

sphere in the v-system) is transformed to an ellipsoid with semi-axes σj uj (see Figure 2). We will see below that, depending on the rank of A, some of the σj may be zero.

Therefore, yet another geometrical interpretation of the SVD is: Any m × n matrix A

maps the 2-norm unit sphere in Rn to an ellipsoid in Rr (r ≤ min(m, n)).

1

2

σ2v2

0.5

σ1u1

1

–1

–0.5

0.5

1

–2

v2

–1

0

1

2

–1

–0.5

v1

–2

–1

**Figure 2: Geometrical interpretation of singular value decomposition.
**

ˆ They

In (5) we refer to the σj as singular values of A (the diagonal entries of Σ).

are usually ordered such that σ1 ≥ σ2 ≥ . . . ≥ σn . The orthonormal vectors uj (the

ˆ ) are called the left singular vectors of A, and the orthonormal vectors v j

columns of U

(the columns of V ) are called the right singular vectors of A).

Remark For most practical purposes it suffices to compute the reduced SVD (4). We

will give examples of its use, and explain how to compute it later.

23

U O (6) Since U is now also a unitary matrix we have U ∗ AV = Σ.4 Full SVD ˆ to an orthonormal basis of Cm×m by adding appropriate The idea is to extend U orthogonal (but otherwise arbitrary) columns and call this new matrix U . 25 columns used Compression ratio 0.2000. Figure 3 shows the difference between using the SVD and the QR factorization (to be introduced later) for compression of the same image. This will ˆ to be extended to an m × n matrix Σ. Clearly. unitary transformations (reflections or rotations) are applied from the left and right to A in order to obtain a diagonal matrix Σ. relative error 0. Besides applications to inconsistent and underdetermined linear systems and least squares problems. and thus trivial to work with.. the SVD has important applications in image and data compression (see our discussion of low-rank approximation below).2000. It is clear that the SVD will simplify the solution of many problems since the transformed system matrix is diagonal.0. in the case of m ≥ n we have A = U ΣV ∗ h i ˆ Σ ˆ U e = V ∗.e. Remark Note that the “diagonal” matrix Σ is in many cases rectangular and will contain extra rows/columns of all zeros. 25 singular values used 20 20 40 40 60 60 80 80 100 100 120 120 140 140 160 160 180 180 200 200 50 100 150 200 250 300 50 100 150 200 250 300 Figure 3: Image compressed using QR factorization (left) and SVD (right). In both cases the same amount (20%) of information was retained. the SVD does a much better job in picking out what information is “important”. Since we do not want to alter the also force Σ product of the factors. 2.0320.QR Compression ratio 0. We will also see below that a number of theoretical facts about the matrix A can be obtained via the SVD. Thus. 24 . the additional rows (or columns – depending on whether m > n or m < n) of Σ will be all zero. i.

e. A (more rigorous?) algebraic argument can be found. e. in [Trefethen/Bau].. n). Σ A ∗ ˆ ˆ ˆ and U = kAk2 . The uniqueness part of the proof follows directly from the geometric interpretation.2. clearly. Proof We prove only existence. All of the following arguments assume m ≥ n (the case m < n can be obtained by transposing the arguments). U is an m × m unitary matrix.0. and V is an n × n unitary matrix. We take V = 1. Then. To this end we pick v 1 ∈ Cn such that kv 1 k2 = 1 and kAk2 = sup kAv 1 k2 > 0. v 1 ∈Cn kv 1 k2 =1 Now we take u1 = Av 1 . i.g.5 Existence and Uniqueness Theorem Theorem 2. i. A has a singular value decomposition of the form A = U ΣV ∗ . we use the Gram-Schmidt algorithm to arbitrarily extend u1 and v 1 to unitary e1 and Ve1 .1 Let A be a complex m × n matrix. n − 1) and show it also exists for (m. A = U ΣV . This results in U1∗ AV1 = u∗1 e∗ U 1 " = A h v 1 Ve1 u∗1 Av 1 u∗1 AVe1 e ∗ Av 1 U e ∗ AVe1 U 1 1 i # . kAv 1 k2 (7) Next. We now assume an SVD exists for the case (m − 1. we have found a reduced SVD. matrices by adding columns U h i h i e1 U1 = u1 U V1 = v 1 Ve1 . where Σ is a uniquely determined m × n (real) diagonal matrix..e.. We now look at three of these four blocks: • Using (7) and the specific choice of v 1 we have (Av 1 )∗ Av 1 kAv 1 k2 kAv 1 k22 = = kAv 1 k2 kAv 1 k2 = kAk2 . ˆ = kAk2 For n = 1 (and any m) the matrix A is a column vector. We use induction on the dimensions of A. 25 . u∗1 Av 1 = For this quantity we introduce the abbreviation σ1 = kAk2 . The full ˆ to U by the Gram-Schmidt algorithm and adding the SVD is obtained by extending U ˆ necessary zeros to Σ.

we can express b ∈ range(A) in terms of range(U ): U b0 = b ⇐⇒ 26 b0 = U ∗ b .1 SVD as a Change of Basis We now discuss the use of the SVD to diagonalize systems of linear equations. On the other hand. using (7) we get e ∗ Av 1 = U e ∗ u1 kAv 1 k2 . however. 2. Using the SVD we can write Ax = U ΣV ∗ x ⇐⇒ b = U b0 .• Again. i.. 0T U2 Σ2 V2∗ ∗ 0T σ1 0T 1 0T U2 0 Σ2 0 V2 σ 1 0T 0 Σ2 1 0T 0 V2 ∗ V1∗ . kU1∗ AV1 k2 = kAk2 = σ1 . U 1 1 e ∗ u1 = 0. Then A 2 σ1 ∗ U1 AV1 = 0 1 = 0 or A = U1 1 0T 0 U2 e = U e ∗ AVe1 and can write the block A 1 0T e . If it were nonzero then we could look at the first row of the block matrix U1∗ AV1 and see that h i U1∗ AV1 (1.e. U 1 • We show that u∗1 AVe1 = 0 · · · 0 by contradiction. is a zero vector since U1 has orthonormal columns. We now abbreviate the fourth block with matrix as σ1 U1∗ AV1 = 0 To complete the proof we apply the e = U2 Σ2 V ∗ . i. another SVD (since the product of unitary matrices is unitary). we use the SVD induction hypothesis to A. we know that unitary matrices leave the 2-norm invariant.. Consider the linear system Ax = b with A ∈ Cm×n .e. Since the norm of the first row of the block matrix U1∗ AV1 cannot exceed that of the entire matrix we have reached a contradiction. :) = σ1 u∗1 AVe1 h i with k σ1 u∗1 AVe1 k2 > σ1 . This. Thus.e.. A e i.

.1. and r ≤ p denotes the number of positive singular values of A. and we have diagonalized the linear system.2 Theoretical Information via SVD A number of theoretical facts about the matrix A can be obtained via the SVD. n). 2. The price we pay is that we require two unitary matrices U and V instead of only X (which is in general not unitary).1. .. The eigenvalues of AA∗ are the σi2 and possibly m − n zeros. kAk2 = σp 1 kAkF = σ12 + σ22 + . In summary. where X contains the eigenvectors of A as its columns and Λ = diag(λ1 . 27 . : n)) 3. .2 Assume A ∈ Cm×n . The corresponding orthonormalized eigenvectors are given by the ui . any x ∈ Cn (the domain of A) can be written in terms of range(V ): x0 = V ∗ x. rank(A) = r 2. nondefective). Then 1. expressing the range space of A in terms of the columns of U and the domain space of A in terms of the columns of V converts Ax = b to a diagonal system. 2. They are summarized in Theorem 2. λm ) is a diagonal matrix of the eigenvalues of A. then AX = ΛX ⇐⇒ X −1 AX = Λ.where we have used the columns of U as an orthonormal basis for range(A). p = min(m. and the SVD always exists (whereas even a square matrix need not have an eigen-decomposition). 1 : r)) null(A) = range(V (:.e. Now Ax = b ⇐⇒ U ∗ Ax = U ∗ b ⇐⇒ U ∗ U ΣV ∗ x = U ∗ b ⇐⇒ IΣV ∗ x = U ∗ b ⇐⇒ Σx0 = b0 . . + σr2 4. If we compare this eigen-decomposition of A to the SVD we see that the SVD is a generalization: A need not be square. The eigenvalues of A∗ A are the σi2 and the v i are the corresponding (orthonormalized) eigenvectors. . range(A) = range(U (:. . Similarly.1 Connection to Eigenvalues If A ∈ Cm×m is square with a linearly independent set of eigenvectors (i. r + 1.

0). σi = |λi |. .5. . the SVD yields the stated result. respectively. Q 6. 0. 2. . . er and that U and V are full-rank unitary matrices whose ranges are Cm and Cn . If A = A∗ (Hermitian or real symmetric). . 3. If A ∈ Cm×m then |det(A)| = m i=1 σi . σj . . . The invariance of the 2-norm and Frobenius norm under unitary transformations imply kAk2 = kΣk2 and kAkF = kΣkF .) and kA − Aν k2 = σν+1 by the invariance of the 2-norm under unitary transformations and item 3 of the previous theorem. The formula for kΣkF follows kxk2 =1 directly from the definition of the Frobenius norm. Both statements follow from the fact that the range of Σ is spanned by e1 . and v i = sign(λi )ui . and omitted. . . (8) j=1 Moreover. j=1 In fact. (9) Proof The representation (8) of the SVD follows immediately from the full SVD (6) by splitting Σ into a sum of diagonal matrices Σj = diag(0. the best 2-norm approximation of rank ν (0 ≤ ν ≤ r) to A is given by Aν = ν X σj uj v ∗j . . Finally. 28 .1. then the eigen-decomposition A = XΛX ∗ and the SVD A = U ΣV ∗ are almost identical. . . kA − Aν k2 = σν+1 . 0. . and that of a diagonal matrix is the product of the diagonal entries. 0. . Since Σ is diagonal we clearly have kΣk2 = max x∈Cn kΣxk2 = max1≤i≤r σi = σ1 . the determinant of a product of matrices is given by the product of their determinant. 6. 2. . . . Thus.3 The m × n matrix A can be decomposed into a sum of r rank-one matrices: r X A= σj uj v ∗j . 1. Since U and V are unitary matrices of full rank and rank(Σ) = r the statement follows from the SVD A = U ΣV ∗ . We know that the determinant of a unitary matrix is either plus or minus 1.3 Low-rank Approximation Theorem 2. . We have U = X. The claim regarding the best approximation property is a little more involved. σν+1 . Proof We discuss items 1–3 and 6. Formula (9) for the approximation error follows from the fact that U ∗ AV = Σ and the expansion for Aν so that U ∗ (A − Aν )V = diag(0. .

data compression. 2. the best approximation by an ellipse is given by that ellipse whose axes are the longest and second-longest axis of the hyperellipsoid..m. A∗ A = V ΛV ∗ . .1. i. the Matlab scripts svd compression..3. This fact gives rise to many applications in image processing. It can be used fairly easily for manual computation of small examples.e. . Find the eigenvalues and orthonormalized eigenvectors of A∗ A. Form A∗ A. For example. . A geometric interpretation of Theorem 2.g. 3. Find the first r columns of U via uj = σj−1 Av j . Example Find the SVD for 1 2 A = 2 2 . .g. Pick the remaining columns such that U is unitary.m and qr compression.3 is given by the best approximation of a hyperellipsoid by lower-dimensional ellipsoids. 2 1 1. . . 4. .. Sort the eigenvalues according to their magnitude. v . and other fields. For a given m × n matrix A the procedure is as follows: 1. n. says that the ν-th partial sum of the SVD captures as much of the energy of A (measured in the 2-norm) as possible. and let σj = p λj . ∗ A A= 9 8 8 9 . the best approximation of a given hyperellipsoid by a line segment is given by the line segment corresponding to the hyperellipsoids longest axis. Theorem 2. 1 −1 so that (after normalization) " V = √1 2 √1 2 29 √1 2 − √12 # . 2. data mining. . 2.4 Computing the SVD by Hand We now list a simplistic algorithm for computing the SVD of a matrix A. e. however. by taking partial sums of the LU or QR factorization). See. . Similarly. j = 1. The eigenvalues (in order of decreasing magnitude) are λ1 = 17 and λ2 = 1. r. j = 1. and the corresponding eigenvectors 1 1 e1 = e2 = v .Remark There are many possible rank-ν decompositions of A (e.

u3 (3) 0 √1 2 In order to determine u3 (i). j = 1. 3. 2. we need to satisfy u∗j u3 = δj3 . 34 3 u1 = = = and 1 Av 2 1 u2 = 1 2 1 1 √ 2 2 −1 2 2 1 −1 1 √ 0 .3. 17 2 so that ∗ A = U ΣV = √3 34 √4 34 √3 34 −1 √ 2 0 √1 2 √2 17 −3 √ 17 √2 17 30 √ 17 0 " 0 1 0 0 √1 2 √1 2 √1 2 − √12 # . 2. i = 1. 0 0 4. The first two columns of U can be computed as 1 √ Av 1 17 1 2 1 1 1 √ √ 2 2 1 17 2 2 1 3 1 √ 4 . so that √ Σ= 17 0 0 1 . The following choice satisfies this requirement 2 1 u3 = √ −3 . σ1 = √ 17 and σ2 = 1. 3. . 2 1 = = Thus far we have U = √3 34 √4 34 √3 34 −1 √ 2 u3 (1) u3 (2) .

or some Divide-and-Conquer strategy (which have been studied since around 1980).The reduced SVD is given by 3 √ ˆ ΣV ˆ ∗= A=U 34 √4 34 √3 34 −1 √ 2 √ 0 √1 2 17 0 0 1 " √1 2 √1 2 √1 2 − √12 # . Remark A practical computer implementation of the SVD will require an algorithm for finding eigenvalues. The two most popular SVD implementations use either a method called Golub-Kahan-Bidiagonalization (GKB) (from 1965). We will study this later. 31 .

- TI-89 Manual With SolutionsUploaded byRuben Perez Rivera
- Effect of Singular Value Decomposition Based Processing on Speech PerceptionUploaded byAnonymous qwgN0m7oO
- Spatial Registration and Normalization of ImagesUploaded bydanix09
- mm-21Uploaded bySomasekhar Chowdary Kakarala
- Slotine PaperUploaded byAamir Hayat
- Mathematicalmethods Lecture Slides Week6 LinearAlgebraIIUploaded byeric
- Image Compression using Hybrid Transform CodingUploaded byIJMER
- Multimodal Medical Image Fusion Based On SVDUploaded byInternational Organization of Scientific Research (IOSR)
- Photometric and astrometric vagaries of the enigma star KIC 8462852Uploaded byraveneyesdead
- Bd DrineasUploaded byjuan perez arrikitaun
- Data Analytics CoursesUploaded bystuart max
- Scheinine_2008_Infer Ring Gene Networks- Dream or Nightmare- Part 2- Challenges 4 and 5Uploaded byEnrico Pieroni
- Normalization Cross Correlation Value of Rotational Attack on Digital Image Watermarking by Using Svd-dctUploaded byesatjournals
- Finding e i Gen VectorsUploaded bySaurabh Yadav
- Xray ManualUploaded byNaiIan
- lab06Uploaded bysvenkatkumar908464
- FDMUploaded byPraveen Kumar Arjala
- 2010IEEE_EfficientVCEUploaded byLeon Chang
- PCA.xlsUploaded byViacheslav Baykov
- ISMAUploaded byAlbertoSouto
- SaatyTran.2007.OntheinvalidityoffuzzifyingnumericaljudgmentsintheAnalyticHierarchyProcessUploaded bybintang
- Generating Surface Crack PatternsUploaded bykhoagle
- Resid Vectors[1]Uploaded byXi Lin
- Time Varying Riccati Differential Equations With Known Analytic SolutionsUploaded bynohaycuentas
- Codes Higher Engineering Mathematics B S Grewal CopyUploaded bydaspranab
- httpieeexplore.ieee.orgstampstamp.jsptp=&arnumber=371543Uploaded byJorge Luis Cazho Tobar
- 2003 Face Recognition Using LDA-Based AlgorithmsUploaded byluongxuandan
- 2332342Uploaded byValentina August
- 50494_appxUploaded bypnaxd
- Hadamard Matrix Analysis and Synthesis With Applications to Communications and Signal Image ProcessingUploaded byEmerson Mauca

- Cauchy CriterionUploaded byDeep Chandra
- ARA: Relationship Between Salaries and Years of ServiceUploaded bymandingomonstercok
- SQL TutorialUploaded byNarendra Reddy
- Abstract Algebra (Herstein 3rd Ed)Uploaded bySanjay Mohanty
- Greek Anal Fissures: ARA ResearchUploaded bymandingomonstercok
- Principles of Mathematical AnalysisUploaded bygarcia_andoni
- CS 261 Solution SetUploaded bymandingomonstercok
- ECE238L Quiz 1 SolutionsUploaded bymandingomonstercok
- CS 261 Homework I Solutions 2012Uploaded bymandingomonstercok

- Frequently ask questionsUploaded byMohammed Salman
- Ashida ADR141C & ADR214C Fix Type, 4 Element IDMT Relay.pdfUploaded byachinta singha
- Metabolism and EliminationUploaded byMarcus, RN
- George Couros VisualCV ResumeUploaded byGeorge Couros
- Mechanical Engineering syllabusUploaded bysankarsuper83
- Workshop Concept and Contents Mechanica Fundamentals and AdvancedUploaded byjosempinc
- Counselor maualUploaded bystudyatworld
- Yamaha YPT 200Uploaded bymcx_usa
- Encoder HeidemanUploaded byElinplast
- Gordon - Does Semen Have Anti-Depressant PropertiesUploaded byAndrea De Antoni
- Rathore et alUploaded byIqra Sarfraz
- AP Macroeconomics | Unit 8 | 8.1 Final Exam QuestionsUploaded byJame Chan
- Bsnl SummerUploaded byDurgesh Kumari
- VOTANO 100 PPTUploaded bybuicongbinh
- A Freemason's 33rd Degree InitiationUploaded byMax Schmidt
- abzymesUploaded byarshia
- Principles of Flight QuestionsUploaded byMuhammad Abdullah
- Factors Influencing Adult Learners' Decision to Drop Out or Persist in Online LearningUploaded byMaya Camarasu
- GandhiUploaded bybadminton12
- AVPN Multi Sector Collaborations - Scaling Social InvestmentUploaded byasianvp
- integrative reviewUploaded byapi-402079170
- RF Schedule BSNLUploaded byIrfan Patel
- 16 TingUploaded bydcf67my
- Peugeot New 508 Accessories BrochureUploaded byMarshall_bug
- Medium Term Plan 2008-2012Uploaded byKenya Ict Board
- International JournalUploaded byReskiGagah
- Performance Comparison of LMS and RLS in Adaptive Equalization for Different Channel ConditionsUploaded byijrdt
- 5 New Experiences and Meanings: A Model of Change for PsychoanalysisUploaded byDaysilirion
- IIIT Summer Student Camp 2018Uploaded byictbiit
- Letters to Persons ~~ by Saint Francis de Sales ~~Uploaded byMDStevens