Principal Component Analysis
- 42Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
How can a rank-r matrix be expressed using its singular value decomposition?
As a sum of r 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
How can a rank-r matrix be expressed using its singular value decomposition?
As a sum of r 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.
What is Ak in a truncated singular value decomposition?
Ak is the approximation formed from the first k SVD pieces, corresponding to the k largest singular values.
What does the Eckart–Young theorem say about Ak?
Among all matrices of rank at most k, Ak is a closest approximation to A in the matrix L2, Frobenius, and nuclear norms.
How does the Eckart–Young theorem compare the error of a rank-k approximation B with that of Ak?
For each of the three norms covered, the error using B is at least as large: ∥A−B∥≥∥A−Ak∥.
For the diagonal matrix with diagonal entries 4,3,2,1, what is its rank-2 truncated SVD approximation?
The diagonal matrix with entries 4,3,0,0, retaining the two largest singular values.
Why is simply choosing the largest diagonal entries not enough to prove that a rank-k approximation is best?
A competing rank-k 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.
What happens to the singular values of A when A is multiplied on the left by an orthogonal matrix Q?
They do not change: if A=UΣVT, then QA=(QU)ΣVT, and QU is still orthogonal.
Why does an orthogonal transformation preserve a vector's L2 length?
An orthogonal transformation preserves inner products because QTQ=I; geometrically, it rotates or reflects the vector without changing its length.
What is the vector L2 norm?
The usual Euclidean length: ∥v∥2=v12+⋯+vn2.
What is the vector L1 norm?
The sum of the absolute values of the components: ∥v∥1=∑i∣vi∣.
What is the vector infinity norm?
The largest absolute component: ∥v∥∞=maxi∣vi∣.
What is the matrix L2 norm described in the lecture?
The largest singular value of the matrix, σ1.
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.
What is the nuclear norm of a matrix?
The sum of its singular values: ∥A∥∗=∑iσi.
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∥.
What is the triangle inequality for a norm?
For two objects A and B, the norm of their sum is no greater than the sum of their norms: ∥A+B∥≤∥A∥+∥B∥.
What positivity condition must a norm satisfy?
A norm is nonnegative, and it is zero only for the zero vector or zero matrix.
How does minimizing with the L1 norm tend to affect the solution?
It tends to produce a sparse solution, meaning one with mostly zero components.
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.
What kind of solution does least-squares minimization with the L2 norm often produce?
It can produce a solution with many small components, since small values contribute little when squared.
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.
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.
Which matrix norm is identified as useful for the Netflix matrix-completion problem?
The nuclear norm, used in a matrix-completion minimization problem.
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.
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.
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.
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.
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.
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.
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.
What two statistical summaries are introduced as important when examining data?
The mean and the variance.
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.
For centered data stored in a p×N matrix A, what is the sample covariance matrix?
It is N−11AAT, a p×p matrix.
What does “sample” or “empirical” covariance mean?
The covariance is computed from observed data samples rather than from a theoretical probability distribution.
Why is the sample covariance normalized by N−1 rather than N?
The lecture attributes the adjustment to one degree of freedom being used when the mean is estimated and the data are centered.
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.
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.
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.
What are the normal equations for the least-squares problem of fitting Ax≈b?
ATAx^=ATb.
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.
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.
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.

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