Singular Value Decomposition Youtube Playlist

Link to playlist

1. Singular Value Decomposition Overview

Video

2. Singular Value Decomposition: Mathematical Overview

video
Pasted image 20250822123641.png
X is defined as a collection of column vectors

Example

Say you have a 1 megapixel image of someone's face. You could shape that into a single column, million pixel row column vector. This would be x1 you could repeat for m people up to xm
xkRn N will be the dimension of your data set (ie 1 million) by m columns

The SVD will let us take the matrix X and represent it as the product of 3 other matrices (UΣVT)

Pasted image 20250822130141.png

The U matrix and the V matrix are what are called "unitary" matrices, or orthogonal matrices, and Σ is a diagonal matrix
Pasted image 20250822130338.png
Since there are only M columns of X there will be only m non-zero values in Σ
The columns of U have the same shape as a column of X...so if X1 is a million x 1 vectors, U will be a million x 1 vectors. These would be "eigen values"

Unitary means UUT=UTU=II the columns provide a complete basis for all of N. U is an n×m
This also holds for V ... VVT=VTV=II V is a m×m
Σ is diagonal and is non-negative in hierarchical value. σ1σ2

Which means the first columns of U, V, and Σ are more important then the next columns
U is left singular vectors
V is right singular vectors
Σ is a matrix of singular values

If some of the sigma values are very small we can essentially ignore them because they are ordered by importance

In talking about flows
V would be like a snapshot in time of the values of X
In talking about faces, the first column of VT would be a mixture of all the columns of U1 you would have to add up to equal X1

Easy to compute in matlab and python

[USV] = svd(X);

They are guaranteed to exist and unique