markdown
Introduction to singular value decompositionmd 8af0916
lecture/math/linear-algebra/introduction-to-singular-value-decomposition.lecture.n.md
Download PDF

Introduction to singular value decomposition特異値分解とくいちぶんかいSVD

date2026-07-14document_iddoc_0c18ace358b22600fb65290b07a5b343description特異値分解を、長方行列を直交変換と軸方向の伸縮に分ける方法として導入し、階数・最小二乗法・擬似逆行列との関係を整理する講義である。prerequisites対称行列と直交対角化 / 階数の基本 / 最小二乗法の基本type講義content_typelecturestatusactiverelateddata/lecture/math/linear-algebra/linear-algebra-portal.lecture.n.md / data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md / data/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md / data/lecture/math/linear-algebra/rank-basics.lecture.n.md / data/lecture/math/linear-algebra/least-squares-basics.lecture.n.md / data/lecture/math/linear-algebra/pseudoinverse-basics.lecture.n.md / data/exercise/math/linear-algebra/eigenvalues-diagonalization-and-extensions.exercise.n.md
mathlinear-algebraundergraduatelecture

1Introduction

The key point of this lecture is that singular value decomposition特異値分解とくいちぶんかいSVD decomposes a matrix, not necessarily square, into orthogonal changes of coordinates and stretching along coordinate axes.

eigenvalues固有値こゆうち and diagonalization mainly concern square matrices. In applications, rectangular matrices are common. SVD is the standard decomposition that works for every real or complex matrix.

SVD separates the input-side orthonormal basis基底きてい, the output-side orthonormal basis基底きてい, and the nonnegative scale factors. This lets rank階数かいすう, least squares, pseudoinverses, and low-rank階数かいすう approximation be described in one framework.

2Terms and definitions

For a real m×n matrix A, a singular value decomposition特異値分解とくいちぶんかい is

A=UΣVT,

where U is an m×m orthogonal matrix, V is an n×n orthogonal matrix, and Σ is an m×n matrix with nonnegative diagonal entries.

The diagonal entries

σ1[PARSE ERROR: Undefined("Command(\"ge\")")]σ2[PARSE ERROR: Undefined("Command(\"ge\")")][PARSE ERROR: Undefined("Command(\"ge\")")]0

are the singular values特異値とくいち of A.

For complex matrices,

A=UΣV*,

with unitary U and V.

3Plan

Study ATA in the real case and A*A in the complex case. These matrices are symmetric or Hermitian and positive semidefinite. Therefore they can be orthogonally or unitarily diagonalized.

The reason for looking at A*A is that, for every x,

A*Ax,x=Ax,Ax=Ax2[PARSE ERROR: Undefined("Command(\"ge\")")]0.

Thus A*A is Hermitian and positive semidefinite, so its eigenvalues固有値こゆうち are nonnegative real numbers. In the real case we write

ATA=VΛVT,

and in the complex case

A*A=VΛV*.

The singular values特異値とくいち of A are the square roots of these nonnegative eigenvalues:

σi=λi(A*A).
data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md data/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md

4Intuitive explanation

SVD decomposes the action of A as

orthogonalchangeofinputcoordinatesaxiswisestretching[PARSE ERROR: Undefined("RBrace")]orthogonalplacementintheoutputspace.

Orthogonal or unitary factors preserve lengths and angles. The matrix Σ is the only part that changes lengths. Thus singular values特異値とくいち measure how much A stretches each principal input direction.

5Precise explanation

5.11. Right singular vectors from ATA or A*A

In the real case, ATA is symmetric. Choose an orthonormal eigenbasis v1,,vn:

ATAvi=σi2vi.

These vi are the right singular vectors. In the complex case,

A*Avi=σi2vi.

5.22. Constructing left singular vectors

For σi>0, define

ui=Aviσi.

Then the ui are orthonormal:

ui,uj=1σiσjAvi,Avj=1σiσjA*Avi,vj.

Using A*Avi=σi2vi and the orthonormality of the vi, this equals δij. Extend these ui to an orthonormal basis基底きてい of the output space to obtain U.

The left singular vectors are also eigenvectors固有こゆうベクトル of AAT in the real case:

AATui=σi2ui,

and of AA* in the complex case.

5.33. rank階数かいすう

The rank階数かいすう of A is the number of nonzero singular values特異値とくいち:

[PARSE ERROR: Undefined("Command(\"boxed\")")]rank(A)=#{iσi>0}.

Small singular values特異値とくいち indicate directions that are strongly compressed and often contribute to numerical instability.

5.44. Compact SVD and fundamental subspaces

If rank(A)=r, keeping only positive singular values特異値とくいち gives the compact SVD

A=UrΣrVrT

in the real case, and A=UrΣrVr* in the complex case.

The columns of Ur form an orthonormal basis基底きてい of Col(A). The columns of Vr form an orthonormal basis基底きてい of the row space行空間ぎょうくうかん. Right singular vectors for σi=0 span ker(A), and left singular vectors for zero singular values特異値とくいち span ker(AT) or ker(A*).

SpaceSVD description
Col(A)spanned by left singular vectors for σi>0
Row(A)spanned by right singular vectors for σi>0
ker(A)spanned by right singular vectors for σi=0
ker(AT) or ker(A*)spanned by left singular vectors for σi=0

5.55. Low-rank階数かいすう approximation

Keeping only the largest k singular values特異値とくいち gives

Ak=i=1kσiuiviT

in the real case, and vi* in the complex case. By the Eckart-Young theorem, Ak is the closest matrix to A among matrices of rank階数かいすう at most k:

A-AkF=σk+12++σr2,A-Ak2=σk+1.

This supports compression and denoising, but discarding small singular values特異値とくいち also discards information. If a small-singular-value direction contains meaningful signal, truncation must be used carefully.

6Concrete examples

For

A=(3001),

we may take

U=I,Σ=(3001),V=I.

The singular values特異値とくいち are 3 and 1.

For a general matrix, VT first rotates the input space into principal directions, Σ stretches those directions, and U places the result in the output space.

For a non-diagonal example,

A=(1101).

Then

ATA=(1112),

whose eigenvalues固有値こゆうち are

λ±=3±52.

Therefore the singular values特異値とくいち are

σ±=3±52.

Although A has only the eigenvalue固有値こゆうち 1, its singular values特異値とくいち record how lengths are stretched by A. SVD is not a replacement for eigenvalues固有値こゆうち; it measures a different and often more stable geometric quantity.

7Another viewpoint

Singular value decompositionSVD特異値分解とくいちぶんかい is the basis of the least squares method最小二乗法さいしょうにじょうほう and the pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ. Even when A is not invertible, one can invert only the directions with nonzero singular values and thereby define the minimum-norm solution.

8Criteria

  • Singular values特異値とくいち are the square roots of the eigenvalues固有値こゆうち of ATA or A*A.
  • The number of nonzero singular values is the rank階数かいすう.
  • SVD applies to rectangular matrices as well as square matrices.
  • Small singular values特異値とくいち are related to compression and numerical instability.
  • Compact SVD simultaneously describes the column space列空間れつくうかん, row space行空間ぎょうくうかん, and kernelかく.

9Scope

SVD holds for every real or complex matrix. Unlike eigendecomposition, it does not require the matrix to be square or diagonalizable.

10Existence theorem and proof outline

For every real m×n matrix A, there exist orthogonal matrices直交行列ちょっこうぎょうれつ U,V and an m×n matrix Σ with nonnegative diagonal entries such that

A=UΣVT.

For a complex matrix,

A=UΣV*.

The proof is based on the spectral theorem for ATA or A*A. The matrix A*A is Hermitianエルミート and

A*Ax,x=Ax2[PARSE ERROR: Undefined("Command(\"ge\")")]0,

so it is positive semidefinite. Hence it has an orthonormal eigenbasis vi with nonnegative eigenvalues固有値こゆうち λi. Set σi=λi, and for σi>0 define

ui=Aviσi.

Then

ui,uj=1σiσjAvi,Avj=1σiσjA*Avi,vj=σi2σiσjvi,vj,

so the ui are mutually orthogonal直交ちょっこう and have length 1. Completing the remaining ui gives U. This construction explains the existence of the SVD.

data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md

11Correspondence of fundamental subspaces

SVD organizes the four fundamental subspaces基本部分空間きほんぶぶんくうかん at the same time.

Space空間くうかんDescription by SVD
Col(A)spanned by the left singular vectors特異とくいベクトル ui corresponding to positive singular values特異値とくいち
Row(A)spanned by the right singular vectors特異とくいベクトル vi corresponding to positive singular values特異値とくいち
ker(A)spanned by the vi corresponding to σi=0
ker(AT) or ker(A*)spanned by the ui corresponding to σi=0

Therefore SVD describes not only the rank階数かいすう, but also the directions in which solutions are lost, the projection射影しゃえい onto the column space列空間れつくうかん, and least-squares solutions最小二乗解さいしょうにじょうかい.

12Another viewpoint

SVD is the foundation of the least squares method最小二乗法さいしょうにじょうほう and the pseudoinverse matrix擬似逆行列ぎじぎゃくぎょうれつ. Even when A is not invertible可逆かぎゃく, nonzero singular directions can be inverted while zero singular directions are treated as lost information.

13Calculation example: a non-diagonal 2×2 matrix

Consider

A=(1101).

Then

ATA=(1112),

and the eigenvalues固有値こゆうち are

λ±=3±52.

Therefore the singular values特異値とくいち are

σ±=3±52.

Here the eigenvalue固有値こゆうち of A itself is 1 with multiplicity two, but the singular values特異値とくいち measure a different quantity as square roots of the eigenvalues of ATA. In other words, SVD is not a substitute for eigenvalues固有値こゆうち; it is a decomposition分解ぶんかい that measures how much lengths in input directions are stretched.

14Criteria

  • singular values特異値とくいち are square roots of eigenvalues固有値こゆうち of ATA or A*A.
  • The number of nonzero singular values特異値とくいち is the rank階数かいすう.
  • SVD applies to rectangular matrices.
  • Small singular values特異値とくいち indicate compression and possible numerical instability.
  • Compact SVD describes column space列空間れつくうかん, row space行空間ぎょうくうかん, and kernels simultaneously.

15Meaning and cautions of low-rank approximation

The Eckart-Young theorem定理ていり states that

Ak=i=1kσiuivi*

obtained by keeping only the top k singular values特異値とくいち is the closest matrix to A among all matrices of rank階数かいすう at most k. However, cutting off small singular values特異値とくいち also means throwing away information. This is useful for denoising and compression, but caution is necessary when the directions of small singular values特異値とくいち contain meaningful signal.

16Scope and limitations

SVD exists for every real or complex matrix. Unlike eigenvalue decomposition固有値分解こゆうちぶんかい, it does not assume squareness or diagonalizability. However, the singular values特異値とくいち alone do not capture sign, phase, or eigenvector固有こゆうベクトル behavior; they describe length stretching.

17Final forms

[PARSE ERROR: Undefined("Command(\"boxed\")")]A=UΣVT
[PARSE ERROR: Undefined("Command(\"boxed\")")]A=UΣV*(complexcase)
[PARSE ERROR: Undefined("Command(\"boxed\")")]σi=λi(ATA)
[PARSE ERROR: Undefined("Command(\"boxed\")")]rank(A)=#{i:σi>0}
[PARSE ERROR: Undefined("Command(\"boxed\")")]Ak=i=1kσiuiviT

18In one sentence

Singular value decomposition特異値分解とくいちぶんかいSVD is the standard form that decomposes any matrix into orthogonal coordinate changes and axis-wise stretching.

raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる