cs475 cs675 lecture 19 july 5 2016
play

CS475 / CS675 Lecture 19: July 5, 2016 Singular value decomposition - PowerPoint PPT Presentation

CS475 / CS675 Lecture 19: July 5, 2016 Singular value decomposition Reading: [TB] Chapter 31 CS475/CS675 (c) 2016 P. Poupart & J. Wan 1 Singular Value Decomposition Geometric view: . The image Let be the unit sphere in .


  1. CS475 / CS675 Lecture 19: July 5, 2016 Singular value decomposition Reading: [TB] Chapter 31 CS475/CS675 (c) 2016 P. Poupart & J. Wan 1

  2. Singular Value Decomposition • Geometric view: � . The image • Let be the unit sphere in � . is an ellipse in CS475/CS675 (c) 2016 P. Poupart & J. Wan 2

  3. Interpretation • The singular values of are the lengths of the principal semi‐axes of � � � – Convention: � � � � � � ⋯ � � � � 0 • The left singular vectors of are the unit vectors � in the direction of the principal semi‐ � axes. • The right singular vectors of are the unit vectors such that � � � � � CS475/CS675 (c) 2016 P. Poupart & J. Wan 3

  4. Reduced SVD � • Decomposition: – Picture: � � ����, � � and � have orthonormal columns. – Here Σ • Equivalently: – Hence �� � � � � � � ∀� � 1,2, … , � – Picture: CS475/CS675 (c) 2016 P. Poupart & J. Wan 4

  5. Full SVD • Extend orthogonal • Accordingly, � • Then where – Picture: CS475/CS675 (c) 2016 P. Poupart & J. Wan 5

  6. SVD vs Eigendecomposition • They both diagonalize a matrix . SVD uses 2 bases (left and right singular vectors). Eigendecomposition uses 1 basis (eigenvectors) • SVD uses orthonormal vectors where as eigenvectors are not orthonormal in general • Not all matrices have an eigendecomposition. But all matrices have a singular value decomposition CS475/CS675 (c) 2016 P. Poupart & J. Wan 6

  7. Matrix properties of SVD ��� , • Let , of nonzero singular values of . • Theorem: • Proof: The rank of a diagonal matrix = # of nonzero � , then diagonal entries. Since CS475/CS675 (c) 2016 P. Poupart & J. Wan 7

  8. Matrix properties of SVD • Theorem: � � and ��� � � � • Theorem: � and � � � � � � � � Note: , ��� �� �� � � CS475/CS675 (c) 2016 P. Poupart & J. Wan 8

  9. Matrix properties of SVD � • Proof: � � � CS475/CS675 (c) 2016 P. Poupart & J. Wan 9

  10. Matrix properties of SVD • Theorem: The nonzero singular values of are the � � . square roots of the nonzero eigenval. of or � are similar to � � • Proof: and � , then • Theorem: If . In particular, if is SPD, then . CS475/CS675 (c) 2016 P. Poupart & J. Wan 10

  11. Matrix properties of SVD � � ��� • Theorem: the condition number of � � • Proof: CS475/CS675 (c) 2016 P. Poupart & J. Wan 11

  12. Computing the SVD • Recall: � � � � � � � � � eigenvalues of � CS475/CS675 (c) 2016 P. Poupart & J. Wan 12

  13. An SVD algorithm � (1) Form � � (2) Compute the eigendecomposition (3) Compute � � , � � , � � (4) Solve the equation for orthogonal (by QR factorization) CS475/CS675 (c) 2016 P. Poupart & J. Wan 13

  14. An SVD algorithm • Unstable algorithm – Suppose � � �� � �� is computed stably, i.e., � � � � � � � � � � � � � � � ��� � – Take square root to get � � : � � � � � � � � � �� � � � � � � � � � � � � � � � � � � � – If � � ≪ | � | , (e.g., � � ), then � � � � � � � � � � � � � � � � � � � � ⟹ loss of accuracy � ��� � � CS475/CS675 (c) 2016 P. Poupart & J. Wan 14

  15. Example • Find the SVD of • Method 1: CS475/CS675 (c) 2016 P. Poupart & J. Wan 15

  16. Example (continued) • Method 2: • Method 3: CS475/CS675 (c) 2016 P. Poupart & J. Wan 16

  17. Example (continued) • Method 3 (continued): CS475/CS675 (c) 2016 P. Poupart & J. Wan 17

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend