Singular Value Decomposition (SVD) is a powerful mathematical technique used in linear algebra to factorize a matrix into three simpler matrices. It is widely used in dimensionality reduction, noise reduction, and recommendation systems.
1. Definition of SVD
2. Key Properties
- The singular values in Σ are always non-negative and sorted in descending order.
- The columns of U are orthonormal (i.e., they are perpendicular to each other and have unit length).
- The columns of Vare orthonormal as well.
3. Applications of SVD
(1) Dimensionality Reduction (PCA)
- SVD is used in Principal Component Analysis (PCA) to reduce data dimensions while preserving as much variance as possible.
- By keeping only the top k singular values, we approximate the original matrix while reducing complexity.
(2) Image Compression
- In image processing, we store only the most significant singular values and corresponding vectors, reducing the image size without losing much quality.
(3) Noise Reduction
- By keeping only the top k singular values and ignoring small ones, SVD can remove noise from data.
(4) Recommendation Systems
- Netflix, Amazon, and YouTube use SVD for collaborative filtering to make personalized recommendations.
(5) Solving Linear Systems
- SVD is used in numerical computing to solve systems of equations, especially when the matrix is singular or ill-conditioned.
4. Example of SVD in Python
You can compute SVD in Python using NumPy:
- The left singular vectors (U),
- The singular values (S),
- The right singular vectors (V^T).
5. Low-Rank Approximation
To approximate AAA using only the top k singular values:

This is useful in data compression and noise reduction.
6. Difference Between SVD and Eigen Decomposition

7. Summary
- SVD is a matrix factorization method that decomposes a matrix into three simpler matrices.
- Used for dimensionality reduction, image compression, noise filtering, and recommendation systems.
- Unlike eigen decomposition, SVD works for any matrix (not just square ones).
- Low-rank approximations using SVD help in data compression.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律