Docsity

Orthogonality - Matrix Computation - Lecture Slides, Slides of Advanced Computer Architecture

Partial preview of the text

Download Orthogonality - Matrix Computation - Lecture Slides and more Slides Advanced Computer Architecture in PDF only on Docsity!

  • Lecture

Overview

Basic definition: orthogonality, orthogonal projection, distance between subspaces, matrix inverse Matrix decomposition: singular value decomposition

Orthogonality (cont’d)

A matrix Q ∈ IRm×m^ is said to be orthogonal if Q>Q = I If Q = [q 1 ,... , qm] is orthogonal, then the qi form an orthonormal basis for IRm

Theorem

If V 1 ∈ IRn×r^ has orthonormal columns, then there exists V 2 ∈ IRn×(n−r^ ) such that V = [V 1 V 2 ] ∈ IRn×n

is orthogonal. Note that ran(V 1 )⊥^ = ran(V 2 )

The vector 2-norm is invariant under orthogonal transformation Q ‖Qx‖^22 = x>Q>Qx = x>x = ‖x‖^2 Likewise, matrix 2-norm and Frobenius norm are invariant with respect to orthogonal transformations Q and Z ‖QAZ ‖F = ‖A‖F ‖QAZ ‖ 2 = ‖A‖ 2

Singular value decomposition (SVD)

Theorem

If A is a real m-by-n matrix, then there exists orthogonal matrices

U = [u 1 ,... , um] ∈ IRm×m, and V = [v 1 ,... , vn] ∈ IRn×n

such that

U>AV = Σ = diag(σ 1 ,... , σp ) ∈ IRm×n, p = min(m, n)

, where σ 1 ≥ σ 2 ≥... ≥ σp ≥ 0 , or

A = UΣV >

The σi are the singular values of A and the vectors ui and vi are the i-th left singular vector and the i-th right singular vector respectively It follows that AV = UΣ, and A>U = V Σ>

Singular vectors

As A = UΣV >, by comparing the columns in the equations AV = UΣ and A>U = V Σ>, it is easy to show

Avi = σui A>ui = σvi

where i = 1,... , min(m, n) The σi are the singular values of A and the vectors ui and vi are the i-th left singular vector and i-th right singular vector respectively U is a set of eigenvectors of AA>^ ∈ IRm×m Σ is a diagonal matrix whose values are the square root of eigenvalues of AA>^ ∈ IRm×m V is a set of eigenvectors of A>A ∈ IRn×n It can be shown that singular values σi are the square roots of eigenvalues, λi , i.e., σi =

λi

Singular values

The singular values of a matrix A are precisely the lengths of the semi-axes of the hyperellipsoid E defined by E = {Ax : ‖x‖ 2 = 1} The semi-axes are described by the singular vectors

The SVD reveals the structure of a matrix. Let

σ 1 ≥ · · · ≥ σr > σr +1 = · · · = σp = 0

then rank(A) = r null(A) = span{vr +1,... , vn} ran(A) = span{u 1 ,... , ur }

SVD expansion

We can decompose A in terms of singular values and vectors

A = UΣV >^ =

∑^ r

i=

σi ui v i> =

∑^ r

i=

σi ui ⊗ vi

where ⊗ is the Kronecker product Matrix 2-norm and Frobenius norm

‖A‖F =

σ^21 + · · · + σ^2 p , p = min(m, n) maxx 6 = 0 ‖ ‖Axx‖‖ 22 = ‖A‖ 2 = σ 1 minx 6 = 0 ‖ ‖Axx‖‖ 22 = σn, m ≥ n

and | det(A)| =

∏n i=1 σi Closely related to eigenvalues, eigen-decomposition and principal component analysis

Application of SVD

Matrix algebra: pseudo inverse, solving homogeneous linear equation, least squares minimization, rank, null space, etc. Computer vision: denoise, eigenface, eigentexture, eigen-X, structure from motion, etc. Pattern recognition: principal component analysis, dimensionality reduction, multivariate Gaussian, etc. Application: image/data analysis, document retrieval, etc.

Gram matrix

Let xi ∈ IRm^ and X = [x 1 ,... , xn], Gram matrix, G ∈ IRn×n^ is defined by G = X >X

where Gij = xi · xj =< xi |xj > Compute the pairwise similarities or correlations between two points Related to kernel methods (e.g., kernel PCA, support vector machine), regression, spectral clustering, SVD, and others