βˆ‘GateAndNet
PlannerSign Up
ADVANCEDFrequently Tested 4 min read 4 views

SVD, Eckart-Young Low-Rank Approximation, PSD Matrices & KKT Convex Optimization

Singular Value Decomposition A = U Sigma V^T, Frobenius & Spectral norm low-rank approximation, Positive Semi-Definite equivalences, Hessian convexity test, and Gradient Descent step-size bounds.

1. Singular Value Decomposition (SVD) & Fundamental Subspaces

Every real matrix A∈RmΓ—nA \in \mathbb{R}^{m \times n} (even rectangular & singular!) admits A=UΞ£VTA = U \Sigma V^T:

  • U∈RmΓ—mU \in \mathbb{R}^{m \times m} orthogonal (UTU=ImU^T U = I_m): eigenvectors of AATAA^T (Left Singular Vectors).
  • V∈RnΓ—nV \in \mathbb{R}^{n \times n} orthogonal (VTV=InV^T V = I_n): eigenvectors of ATAA^T A (Right Singular Vectors).
  • Οƒi=Ξ»i(ATA)>0\sigma_i = \sqrt{\lambda_i(A^T A)} > 0 for i=1,…,r=rank⁑(A)i = 1, \dots, r = \operatorname{rank}(A), and βˆ₯Aβˆ₯F2=tr⁑(ATA)=βˆ‘i=1rΟƒi2\|A\|_F^2 = \operatorname{tr}(A^T A) = \sum_{i=1}^r \sigma_i^2.
  • Storage Compression: Storing rank-kk approximation AkA_k requires k(m+n+1)k(m + n + 1) floats instead of mβ‹…nm \cdot n!

2. Positive Semi-Definite (PSD) & Convexity Equivalences

For a symmetric matrix M=MT∈RdΓ—dM = M^T \in \mathbb{R}^{d \times d}, the following are 100% equivalent:

  1. xTMxβ‰₯0x^T M x \ge 0 for all x∈Rdx \in \mathbb{R}^d (>0> 0 for βˆ€xβ‰ 0β€…β€ŠβŸΊβ€…β€Š\forall x \neq 0 \iff Positive Definite / PD).
  2. All eigenvalues satisfy Ξ»i(M)β‰₯0\lambda_i(M) \ge 0 (Ξ»i>0\lambda_i > 0 for PD).
  3. M=BTBM = B^T B for some matrix BB (e.g. Gram matrix XTXX^T X and Covariance matrix Ξ£\Sigma are always PSD!).
  4. All principal minors are β‰₯0\ge 0 (Sylvester’s Criterion for PD: leading principal minors >0> 0).

A twice-differentiable function f:Rdβ†’Rf: \mathbb{R}^d \to \mathbb{R} is Convex iff its Hessian βˆ‡2f(x)βͺ°0\nabla^2 f(x) \succeq 0 (PSD) everywhere! For convex ff, every local minimum is a global minimum.

Key Formulas Summary
Singular Value Decomposition & Eckart-Young Best Rank-k Approximation
A=βˆ‘i=1rΟƒiuiviT,min⁑rank⁑(B)≀kβˆ₯Aβˆ’Bβˆ₯2=Οƒk+1,min⁑rank⁑(B)≀kβˆ₯Aβˆ’Bβˆ₯F=βˆ‘i=k+1rΟƒi2A = \sum_{i=1}^{r} \sigma_i u_i v_i^T, \qquad \min_{\operatorname{rank}(B) \le k} \|A - B\|_2 = \sigma_{k+1}, \qquad \min_{\operatorname{rank}(B) \le k} \|A - B\|_F = \sqrt{\sum_{i=k+1}^{r} \sigma_i^2}
Note: Truncated SVD A_k = sum_{i=1}^k sigma_i u_i v_i^T is optimal in BOTH Spectral (L2) and Frobenius norms!
Gradient Descent Convergence on L-Smooth Convex Functions
xt+1=xtβˆ’Ξ·βˆ‡f(xt),ConvergesΒ forΒ 0<Ξ·<2Lβ€…β€Š(optimalΒ quadraticΒ Ξ·βˆ—=2Ξ»max⁑+Ξ»min⁑)x_{t+1} = x_t - \eta \nabla f(x_t), \qquad \text{Converges for } 0 < \eta < \frac{2}{L} \;\left(\text{optimal quadratic } \eta^* = \frac{2}{\lambda_{\max} + \lambda_{\min}}\right)
Note: For quadratic f(x) = 1/2 x^T Q x - b^T x with SPD Q, L = lambda_max(Q)
#Linear Algebra#SVD#PSD Matrices#Convex Optimization#KKT#Gradient Descent#GATE DA

Practice Questions on This Chapter (3)

Q1GATE DA Linear AlgebraMCQMEDIUM
+2M β€’ -0.67

A matrix A∈R10Γ—8A \in \mathbb{R}^{10 \times 8} has singular values Οƒ1=9,β€…β€ŠΟƒ2=5,β€…β€ŠΟƒ3=2\sigma_1 = 9,\; \sigma_2 = 5,\; \sigma_3 = 2, and Οƒ4=β‹―=Οƒ8=0\sigma_4 = \dots = \sigma_8 = 0. By the Eckart-Young Theorem, what is the minimum Spectral (L2L_2) error min⁑rank⁑(B)≀2βˆ₯Aβˆ’Bβˆ₯2\min_{\operatorname{rank}(B) \le 2} \|A - B\|_2?

⚑ Click an option above to verify instantly
Q2GATE DA Optimization NATNATMEDIUM
+2M β€’ 0 Neg

Consider minimizing the strictly convex quadratic f(x1,x2)=5x12+2x22f(x_1, x_2) = 5x_1^2 + 2x_2^2 using standard Gradient Descent xt+1=xtβˆ’Ξ·βˆ‡f(xt)x_{t+1} = x_t - \eta \nabla f(x_t). What is the strict upper bound Ξ·max⁑\eta_{\max} on step size Ξ·\eta (0<Ξ·<Ξ·max⁑0 < \eta < \eta_{\max}) so Gradient Descent converges from any non-zero start?

Q3GATE DA 2027 Expected NATNATMEDIUM
+2M β€’ 0 Neg

Let A∈R7Γ—3A \in \mathbb{R}^{7 \times 3} be a matrix with linearly independent columns (rank⁑(A)=3\operatorname{rank}(A) = 3), and let P=A(ATA)βˆ’1AT∈R7Γ—7P = A(A^T A)^{-1}A^T \in \mathbb{R}^{7 \times 7} be the orthogonal projection matrix onto Col⁑(A)\operatorname{Col}(A). What is the trace tr⁑(P)\operatorname{tr}(P)?

Previous TopicPython Internals & Exam Traps: Mutable Defaults, Slicing, Generators, LEGB & HashingNext Topic Statistical Inference: MLE, MAP Estimation, Confidence Intervals & Hypothesis Testing