Linear Algebra Quiz: Singular Value Decomposition Svd
8 questions · exam conditions
0:00
Singular Value Decomposition SvdQuestion 1 of 8

For a matrix AA with singular value decomposition A=UΣVTA = U\Sigma V^T, suppose the singular values are σ1=8\sigma_1 = 8, σ2=3\sigma_2 = 3, and σ3=0\sigma_3 = 0. If B=ATAB = A^T A, what is the trace of BB?

73
64
11
24
← Back to quizzes

Linear Algebra Quiz

Linear Algebra Quiz: Singular Value Decomposition Svd

Practice Singular Value Decomposition Svd in Linear Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Singular Value Decomposition Svd, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

For a matrix AA with singular value decomposition A=UΣVTA = U\Sigma V^T, suppose the singular values are σ1=8\sigma_1 = 8, σ2=3\sigma_2 = 3, and σ3=0\sigma_3 = 0. If B=ATAB = A^T A, what is the trace of BB?

  1. 73 (correct answer)
  2. 64
  3. 11
  4. 24
Explanation: Since A=UΣVTA = U\Sigma V^T, we have AT=VΣTUTA^T = V\Sigma^T U^T. Therefore, B=ATA=VΣTUTUΣVT=VΣTΣVTB = A^T A = V\Sigma^T U^T U\Sigma V^T = V\Sigma^T\Sigma V^T. The eigenvalues of BB are the diagonal entries of ΣTΣ\Sigma^T\Sigma, which are σ12=64\sigma_1^2 = 64, σ22=9\sigma_2^2 = 9, and σ32=0\sigma_3^2 = 0. The trace equals the sum of eigenvalues: 64+9+0=7364 + 9 + 0 = 73. Choice B uses only σ12\sigma_1^2. Choice C uses σ1+σ2\sigma_1 + \sigma_2. Choice D uses 3×σ13 \times \sigma_1.

Question 2

Consider a matrix AA with SVD A=UΣVTA = U\Sigma V^T where Σ=diag(6,4,2,0)\Sigma = \text{diag}(6, 4, 2, 0). If we form the rank-2 approximation A2A_2 using the first two singular values, what percentage of the Frobenius norm of AA is preserved in A2A_2?

  1. Approximately 76.9%
  2. Approximately 83.3%
  3. Exactly 50%
  4. Approximately 92.3% (correct answer)
Explanation: When you encounter SVD approximation problems, you're dealing with how well lower-rank matrices can represent the original data. The key insight is that the Frobenius norm has a direct relationship with singular values. For any matrix with SVD A=UΣVTA = U\Sigma V^T, the Frobenius norm squared equals the sum of squared singular values: AF2=σ12+σ22+σ32+σ42||A||_F^2 = \sigma_1^2 + \sigma_2^2 + \sigma_3^2 + \sigma_4^2. With Σ=diag(6,4,2,0)\Sigma = \text{diag}(6, 4, 2, 0), we get AF2=36+16+4+0=56||A||_F^2 = 36 + 16 + 4 + 0 = 56. The rank-2 approximation A2A_2 uses only the first two singular values, so A2F2=36+16=52||A_2||_F^2 = 36 + 16 = 52. The percentage preserved is 5256=13140.923=92.3%\frac{52}{56} = \frac{13}{14} \approx 0.923 = 92.3\%. Looking at the wrong answers: Choice A (76.9%) might come from incorrectly using 6+46+4+2+0=1012\frac{6+4}{6+4+2+0} = \frac{10}{12}, which adds singular values instead of squaring them. Choice B (83.3%) could result from the calculation 1012=0.833\frac{10}{12} = 0.833, also from the linear addition error. Choice C (50%) might stem from thinking half the singular values means half the norm is preserved, ignoring that larger singular values contribute disproportionately. Remember: In SVD approximations, always square the singular values when working with Frobenius norms. The largest singular values capture most of the matrix's "energy," so low-rank approximations often preserve surprisingly high percentages of the original norm.

Question 3

Consider the matrix A=[3142]A = \begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix} . If the largest singular value of AA is approximately 5.46, what is the smallest singular value approximately?

  1. 0.73
  2. 1.46
  3. 2.00
  4. 0.37 (correct answer)
Explanation: For a 2×22 \times 2 matrix, the product of singular values equals det(A)|\det(A)|. Here, det(A)=3214=2\det(A) = 3 \cdot 2 - 1 \cdot 4 = 2. If σ15.46\sigma_1 \approx 5.46, then σ1σ2=2\sigma_1 \sigma_2 = 2, so σ2=25.460.37\sigma_2 = \frac{2}{5.46} \approx 0.37. Choice A uses 45.46\frac{4}{5.46}. Choice B subtracts: 5.4645.46 - 4. Choice C assumes the singular values are eigenvalues and uses symmetry incorrectly.

Question 4

A data matrix XX has SVD X=UΣVTX = U\Sigma V^T with singular values {10,6,3,1}\{10, 6, 3, 1\}. For principal component analysis, if we want to retain at least 90% of the variance, how many principal components should we keep?

  1. 3
  2. 2 (correct answer)
  3. 4
  4. 1
Explanation: In PCA, the variance explained by each component is proportional to σi2\sigma_i^2. Total variance: 102+62+32+12=100+36+9+1=14610^2 + 6^2 + 3^2 + 1^2 = 100 + 36 + 9 + 1 = 146. We need 90% of 146 = 131.4. First component: 100 (68.5%). First two: 100 + 36 = 136 (93.2%). Since 136 > 131.4, we need 2 components. Choice A uses 3 components (unnecessary). Choice C uses all components. Choice D uses only 1 component (insufficient at 68.5%).

Question 5

If AA is a 3×43 \times 4 matrix with singular values σ1=7\sigma_1 = 7, σ2=5\sigma_2 = 5, σ3=0\sigma_3 = 0, what is the dimension of the null space of ATA^T?

  1. 3
  2. 2
  3. 1 (correct answer)
  4. 0
Explanation: When you encounter singular values in a linear algebra problem, you're dealing with the Singular Value Decomposition (SVD), which reveals crucial information about a matrix's fundamental subspaces. The key insight is that zero singular values directly tell you about the dimensions of the null spaces. For any m×nm \times n matrix, the SVD gives you rr non-zero singular values, where rr is the rank of the matrix. Since AA has singular values σ1=7\sigma_1 = 7, σ2=5\sigma_2 = 5, and σ3=0\sigma_3 = 0, only two are non-zero, so rank(A)=2\text{rank}(A) = 2. The dimension of the null space of ATA^T equals mrank(A)m - \text{rank}(A), where mm is the number of rows. Since AA is 3×43 \times 4, we have dim(null(AT))=32=1\dim(\text{null}(A^T)) = 3 - 2 = 1. This makes C correct. Looking at the wrong answers: A) 3 incorrectly assumes the null space dimension equals the number of rows. B) 2 mistakenly uses the rank itself rather than subtracting it from the row count. D) 0 would only be true if AA had full row rank (rank 3), which would require all three singular values to be non-zero. Remember this pattern: for an m×nm \times n matrix with rr non-zero singular values, dim(null(AT))=mr\dim(\text{null}(A^T)) = m - r and dim(null(A))=nr\dim(\text{null}(A)) = n - r. The number of zero singular values always equals the total dimension of both null spaces combined.

Question 6

Let AA be a 4×54 \times 5 matrix with rank 3. In the singular value decomposition A=UΣVTA = U\Sigma V^T, what are the dimensions of the matrices UU, Σ\Sigma, and VV?

  1. UU is 4×44 \times 4, Σ\Sigma is 4×54 \times 5, VV is 5×55 \times 5 (correct answer)
  2. UU is 4×34 \times 3, Σ\Sigma is 3×33 \times 3, VV is 5×35 \times 3
  3. UU is 4×54 \times 5, Σ\Sigma is 5×55 \times 5, VV is 5×45 \times 4
  4. UU is 3×43 \times 4, Σ\Sigma is 4×54 \times 5, VV is 3×53 \times 5
Explanation: In the full SVD, UU is always m×mm \times m (here 4×44 \times 4), Σ\Sigma is m×nm \times n (here 4×54 \times 5), and VV is n×nn \times n (here 5×55 \times 5). The rank only affects how many singular values are nonzero, not the matrix dimensions. Choice B gives the reduced SVD dimensions. Choice C reverses some dimensions. Choice D incorrectly uses the rank as a matrix dimension.

Question 7

In the reduced SVD of an m×nm \times n matrix AA with rank rr, which statement about the orthogonal matrices is correct?

  1. UU has mm orthonormal columns and VV has nn orthonormal columns
  2. UU has rr orthonormal columns and VV has rr orthonormal columns (correct answer)
  3. UU has rr orthonormal rows and VV has rr orthonormal rows
  4. UU has min(m,r)\min(m,r) orthonormal columns and VV has min(n,r)\min(n,r) orthonormal columns
Explanation: When you encounter SVD questions, focus on understanding what "reduced" means and how rank affects matrix dimensions. The reduced SVD is a compact form that eliminates unnecessary zero singular values and their corresponding vectors. In the reduced SVD A=UΣVTA = U\Sigma V^T, the matrix AA has rank rr, meaning it has exactly rr non-zero singular values. The reduced form constructs matrices to match this rank: UU becomes m×rm \times r, Σ\Sigma becomes r×rr \times r, and VTV^T becomes r×nr \times n. Since UU has dimensions m×rm \times r, it contains rr orthonormal columns. Similarly, VV has dimensions n×rn \times r, so it also contains rr orthonormal columns. Choice A describes the full SVD, not the reduced version. In the full SVD, UU would indeed have mm orthonormal columns and VV would have nn orthonormal columns, but this includes columns corresponding to zero singular values that are eliminated in the reduced form. Choice C incorrectly focuses on rows rather than columns. While UU and VV do have rr rows each in their transpose forms, the question asks about the orthogonal matrices themselves, where we count orthonormal columns. Choice D suggests the dimensions depend on min(m,r)\min(m,r) and min(n,r)\min(n,r), but since rr cannot exceed either mm or nn (rank is bounded by both dimensions), these expressions simply equal rr. Study tip: Remember that "reduced" SVD means "rank-sized" - everything scales to match the rank rr.

Question 8

For a matrix AA with SVD A=UΣVTA = U\Sigma V^T, which expression correctly represents the pseudoinverse A+A^+?

  1. VTΣ+UV^T\Sigma^+ U where Σ+\Sigma^+ has 1/σi1/\sigma_i for nonzero σi\sigma_i and 0 elsewhere
  2. UΣ1VTU\Sigma^{-1} V^T where Σ1\Sigma^{-1} has 1/σi1/\sigma_i for all σi\sigma_i
  3. VΣ+UTV\Sigma^+ U^T where Σ+\Sigma^+ has 1/σi1/\sigma_i for nonzero σi\sigma_i and 0 elsewhere (correct answer)
  4. (VΣUT)1(V\Sigma U^T)^{-1} computed using standard matrix inversion
Explanation: When you encounter pseudoinverse problems, remember that the pseudoinverse extends the concept of matrix inversion to non-square or singular matrices using the Singular Value Decomposition (SVD). The pseudoinverse formula derives directly from the SVD structure. If A=UΣVTA = U\Sigma V^T, then the pseudoinverse is A+=VΣ+UTA^+ = V\Sigma^+ U^T. Notice how this "reverses" the SVD: the VV and UU matrices swap positions and lose their transposes, while Σ+\Sigma^+ is the pseudoinverse of the diagonal matrix Σ\Sigma. For Σ+\Sigma^+, you take the reciprocal of each nonzero singular value and leave zeros as zeros (since 1/01/0 is undefined). This construction ensures A+A^+ exists even when AA isn't invertible. Answer C correctly gives VΣ+UTV\Sigma^+ U^T with the proper handling of Σ+\Sigma^+. Answer A incorrectly uses VTΣ+UV^T\Sigma^+ U, which has the wrong transposes—this would give you something like (AT)+(A^T)^+ instead of A+A^+. Answer B attempts UΣ1VTU\Sigma^{-1} V^T, but Σ1\Sigma^{-1} doesn't exist when AA has zero singular values, and the matrix order is wrong anyway. Answer D suggests using standard matrix inversion on VΣUTV\Sigma U^T, but this expression isn't even equal to AA, and standard inversion fails for non-invertible matrices. Study tip: Remember the pseudoinverse formula as "flip and transpose": from UΣVTU\Sigma V^T to VΣ+UTV\Sigma^+ U^T. The matrices swap positions and drop their transposes, while Σ+\Sigma^+ uses reciprocals of nonzero values only.