1. Home
  2. Explore
  3. Mathematics
  4. Principal Component Analysis

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Principal Component Analysis

  • 42Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: SVD Approximation
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

How can a rank-rrr matrix be expressed using its singular value decomposition?

Tap to flipClick to flipspace

As a sum of rrr rank-one pieces, each formed from a left singular vector, its singular value, and a right singular vector. The left singular vectors are orthonormal, as are the right singular vectors.

Or swipe the card

42 cards

  1. How can a rank-rrr matrix be expressed using its singular value decomposition?

    As a sum of rrr rank-one pieces, each formed from a left singular vector, its singular value, and a right singular vector. The left singular vectors are orthonormal, as are the right singular vectors.

  2. What is AkA_kAk​ in a truncated singular value decomposition?

    AkA_kAk​ is the approximation formed from the first kkk SVD pieces, corresponding to the kkk largest singular values.

  3. What does the Eckart–Young theorem say about AkA_kAk​?

    Among all matrices of rank at most kkk, AkA_kAk​ is a closest approximation to AAA in the matrix L2L_2L2​, Frobenius, and nuclear norms.

  4. How does the Eckart–Young theorem compare the error of a rank-kkk approximation BBB with that of AkA_kAk​?

    For each of the three norms covered, the error using BBB is at least as large: ∥A−B∥≥∥A−Ak∥\lVert A-B\rVert \geq \lVert A-A_k\rVert∥A−B∥≥∥A−Ak​∥.

  5. For the diagonal matrix with diagonal entries 4,3,2,14,3,2,14,3,2,1, what is its rank-222 truncated SVD approximation?

    The diagonal matrix with entries 4,3,0,04,3,0,04,3,0,0, retaining the two largest singular values.

  6. Why is simply choosing the largest diagonal entries not enough to prove that a rank-kkk approximation is best?

    A competing rank-kkk matrix can change several entries to reduce some errors, but may introduce off-diagonal errors or other costs. The theorem establishes that the truncated SVD is best overall in the specified norms.

  7. What happens to the singular values of AAA when AAA is multiplied on the left by an orthogonal matrix QQQ?

    They do not change: if A=UΣVTA=U\Sigma V^{\mathsf T}A=UΣVT, then QA=(QU)ΣVTQA=(QU)\Sigma V^{\mathsf T}QA=(QU)ΣVT, and QUQUQU is still orthogonal.

  8. Why does an orthogonal transformation preserve a vector's L2L_2L2​ length?

    An orthogonal transformation preserves inner products because QTQ=IQ^{\mathsf T}Q=IQTQ=I; geometrically, it rotates or reflects the vector without changing its length.

  9. What is the vector L2L_2L2​ norm?

    The usual Euclidean length: ∥v∥2=v12+⋯+vn2\lVert v\rVert_2=\sqrt{v_1^2+\cdots+v_n^2}∥v∥2​=v12​+⋯+vn2​​.

  10. What is the vector L1L_1L1​ norm?

    The sum of the absolute values of the components: ∥v∥1=∑i∣vi∣\lVert v\rVert_1=\sum_i |v_i|∥v∥1​=∑i​∣vi​∣.

  11. What is the vector infinity norm?

    The largest absolute component: ∥v∥∞=max⁡i∣vi∣\lVert v\rVert_\infty=\max_i |v_i|∥v∥∞​=maxi​∣vi​∣.

  12. What is the matrix L2L_2L2​ norm described in the lecture?

    The largest singular value of the matrix, σ1\sigma_1σ1​.

  13. How is the Frobenius norm of a matrix computed?

    Square every matrix entry, add the squares, and take the square root: ∥A∥F=∑i,jaij2\lVert A\rVert_F=\sqrt{\sum_{i,j} a_{ij}^2}∥A∥F​=∑i,j​aij2​​.

  14. What is the nuclear norm of a matrix?

    The sum of its singular values: ∥A∥∗=∑iσi\lVert A\rVert_* = \sum_i \sigma_i∥A∥∗​=∑i​σi​.

  15. What does it mean for a norm to be homogeneous?

    Scaling a vector or matrix by a scalar scales its norm by the scalar's absolute value: ∥cA∥=∣c∣∥A∥\lVert cA\rVert=|c|\lVert A\rVert∥cA∥=∣c∣∥A∥.

  16. What is the triangle inequality for a norm?

    For two objects AAA and BBB, the norm of their sum is no greater than the sum of their norms: ∥A+B∥≤∥A∥+∥B∥\lVert A+B\rVert\leq\lVert A\rVert+\lVert B\rVert∥A+B∥≤∥A∥+∥B∥.

  17. What positivity condition must a norm satisfy?

    A norm is nonnegative, and it is zero only for the zero vector or zero matrix.

  18. How does minimizing with the L1L_1L1​ norm tend to affect the solution?

    It tends to produce a sparse solution, meaning one with mostly zero components.

  19. Why can a sparse solution be easier to interpret than a solution with many small components?

    A sparse solution highlights the few components that matter, whereas many small nonzero components can make the result difficult to interpret.

  20. What kind of solution does least-squares minimization with the L2L_2L2​ norm often produce?

    It can produce a solution with many small components, since small values contribute little when squared.

  21. What is a missing-data problem in the Netflix ratings example?

    The user–movie matrix has missing entries because users have not rated movies they have not seen.

  22. How can matrix completion support a recommender system?

    It estimates missing ratings from the observed ratings, helping predict how a user might rate an unseen movie or item.

  23. Which matrix norm is identified as useful for the Netflix matrix-completion problem?

    The nuclear norm, used in a matrix-completion minimization problem.

  24. Why can a short MRI scan create a matrix-completion problem?

    A scan that collects data for only a short time may leave some image information unmeasured, creating missing entries that must be estimated.

  25. What role can the nuclear norm play in MRI reconstruction?

    It can be used to help complete missing image data from a shortened or incomplete MRI measurement.

  26. What is principal component analysis (PCA) used for in this lecture?

    PCA is presented as a basic tool for extracting important information and relationships from a matrix of data.

  27. In the height-and-age example, what do the rows and columns of the data matrix represent?

    Rows represent measured features such as height and age; columns represent individual people or samples.

  28. Why is data centered before analyzing it with PCA?

    Each feature's mean is subtracted so that the centered data have mean zero, making the analysis focus on variation around the average.

  29. After centering a data matrix by subtracting each row's mean, what is the sum of the entries in each row?

    Zero, because the entries in each feature have been shifted to have mean zero.

  30. What does a negative centered height or age value mean?

    The measurement is below its original average; it does not mean that the person's actual height or age is negative.

  31. What two statistical summaries are introduced as important when examining data?

    The mean and the variance.

  32. What does a covariance matrix describe?

    It describes the variance of each feature and how pairs of features vary together, such as the relationship between height and age.

  33. For centered data stored in a p×Np\times Np×N matrix AAA, what is the sample covariance matrix?

    It is 1N−1AAT\frac{1}{N-1}AA^{\mathsf T}N−11​AAT, a p×pp\times pp×p matrix.

  34. What does “sample” or “empirical” covariance mean?

    The covariance is computed from observed data samples rather than from a theoretical probability distribution.

  35. Why is the sample covariance normalized by N−1N-1N−1 rather than NNN?

    The lecture attributes the adjustment to one degree of freedom being used when the mean is estimated and the data are centered.

  36. What geometric quantity does PCA minimize when finding a best-fitting line?

    The sum of the squared perpendicular distances from the data points to the line.

  37. How does ordinary least squares measure errors when fitting a line?

    It measures residuals in the response or vertical direction and minimizes the sum of their squares.

  38. How does the error measured by PCA differ from the error measured by ordinary least squares?

    PCA measures perpendicular distances to the line; ordinary least squares measures vertical or response-direction residuals.

  39. What are the normal equations for the least-squares problem of fitting Ax≈bAx\approx bAx≈b?

    ATAx^=ATbA^{\mathsf T}A\hat{x}=A^{\mathsf T}bATAx^=ATb.

  40. Why can PCA and ordinary least squares produce different best-fitting lines?

    They minimize different errors: perpendicular distances in PCA versus vertical residuals in least squares.

  41. Is PCA a linear or nonlinear method in the treatment described here?

    PCA is a linear method; the lecture contrasts it with deep learning models that use nonlinear functions to represent more complex data.

  42. What role does the SVD play in the PCA problem described in the lecture?

    The SVD provides the central mathematical tool for extracting the important directions or components used to represent the data.

Card 1 of 42
Card 1 of 42

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent