BRAGA

02 Writing02-02 Notes02-02-432

Low-Rank Approximation (SVD)

Published 16 Apr 20262 min read
Contents
  1. 01Deep Breakdown
  2. 02Flowchart
X≈UkΣkVk⊤X \approx U_k \Sigma_k V_k^\top
(1)

We are working on the PCA low-rank approximation of a centered data matrix XX, using the truncated singular value decomposition (SVD). The canonical formula is

X≈UkΣkVk⊤,X \approx U_k \Sigma_k V_k^\top,
(2)

where UkU_k, Σk\Sigma_k, and VkV_k keep only the first kk singular directions, and this approximation is optimal in Frobenius norm among all rank-kk matrices.

Deep Breakdown

Low-rank approximation in PCA is the process of replacing the original centered data matrix XX with a simpler matrix of lower rank that preserves as much structure as possible. The input is a centered matrix X∈Rn×dX \in \mathbb{R}^{n \times d}, where nn is the number of observations and dd is the number of features.

The output is a rank-kk matrix:

Xk=UkΣkVk⊤X_k = U_k \Sigma_k V_k^\top
(3)

This matrix uses only the first kk singular components of XX. In practice, it is a compressed version of the data.

Why this matters in DA/DS:

  • many datasets have correlated variables,
  • the true informative structure often lies in a smaller latent space,
  • using a lower-rank representation can reduce noise,
  • storage and downstream computation become cheaper,
  • it provides interpretable latent factors in some domains.

In PCA language, the first kk principal directions capture the dominant variance structure of the centered data. The low-rank approximation reconstructs the original matrix using only those dominant directions.

It is therefore tightly connected to:

  • Projection: encoding the data into kk principal coordinates,
  • Reconstruction: decoding back into the original feature space,
  • Residual Error: what is lost by ignoring the smaller singular directions.

The key theoretical fact is that among all rank-kk matrices, UkΣkVk⊤U_k \Sigma_k V_k^\top is the one closest to XX in Frobenius norm. That is why PCA is not merely a convenient reduction, but the mathematically optimal linear compression under squared reconstruction error.

Flowchart

Centered datamatrix XCompute SVD:X = UΣVᵀOrder singularvalues σ1 ≥ σ2 ≥...Choose rank kKeep first kcolumns of Uand VKeep first ksingular valuesin ΣkBuild truncatedapproximationXk = Uk Σk VkᵀCompare X andXkMeasurereconstructionerror withFrobenius normUse forcompression,denoising, latentfactors

#machine-learning#machine-learning-algorithms#dimensionality-reduction-principal-component-analysis-pca

Keyboard shortcuts

Single keys, ignored while typing in a field or with Cmd, Ctrl or Alt held.

0
Home
1 2 3 4
Work, Writing, Tools, About
j / k
Next / previous section on this page
n / p
Next / previous project or essay
u
Up one level
l
Deutsch
t
Light or dark theme
?
This list
Esc
Close