13
CS 357: Numerical Methods Lecture 14: Orthogonal Iteration Singular Value Decomposition Eric Shaffer

CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

CS 357: Numerical Methods

Lecture 14:

Orthogonal Iteration

Singular Value Decomposition

Eric Shaffer

Page 2: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Finding Eigenvectors

Can we simultaneously (sort of) find all the eigenvectors of A?

What about this algorithm

X0 = arbitrary n x p matrix of rank p

for k=1,2,…

Xk=AXk-1

Page 3: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Orthogonal Iteration

How about this?

X0= n x p matrix of rank p

for k=1,2,….

#compute reduced QR factorization

Qk+1Rk+1=Xk

Xk+1=AQk

Page 4: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Orthogonal Iteration

X0= n x p matrix of rank pfor k=1,2,….

#compute reduced QR factorizationQk+1Rk+1=Xk

Xk+1=AQk

Page 5: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

The Schur Form: Finding Eigenvalues

Page 6: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration
Page 7: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

The Schur Form: Finding Eigenvectors

Page 8: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Singular Value Decomposition (SVD)

𝐴 = 𝑈Σ𝑉𝑇

Page 9: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Singular Value Decomposition (SVD)

𝐴 = 𝑈Σ𝑉𝑇

Page 10: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Inversion using SVD

𝐴 = 𝑈Σ𝑉𝑇

Assume A is an n x n matrix

Page 11: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

The Pseudo Inverse

When A is not square we can compute the pseudo-inverse

Page 12: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Pseudo Inverse and Least Squares

Page 13: CS 357: Numerical Methods Lecture 14: Orthogonal Iteration ... · Lecture 14: Orthogonal Iteration Singular Value Decomposition ... Q k+1 R k+1 =X k X k+1 =AQ k. Orthogonal Iteration

Notes on Computing the SVD