Principal Component Analysis
- 37Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
How can a rank-r matrix be expressed using its singular value decomposition as a sum of rank-one matrices?
37 questions
- 1
How can a rank-r matrix be expressed using its singular value decomposition as a sum of rank-one matrices?
Model answer
It can be written as a sum of r rank-one terms, each formed from a left singular vector, its singular value, and a right singular vector transpose. The left and right singular vectors are each orthonormal sets.
Explanation
The SVD decomposes a matrix into orthogonal directions and their corresponding singular values; each singular-value term contributes a rank-one piece.
- 2
Why might we approximate a large matrix using only its first k SVD terms rather than retaining every term?
Model answer
Keeping the first k terms retains the largest singular-value contributions while reducing the amount of information that must be stored or processed.
Explanation
The lecture presents this as a way to preserve important information without copying or handling the entire dataset.
- 3
State the Eckart–Young theorem for rank-k approximation.
Model answer
The truncated SVD matrix Ak, formed from the first k SVD terms, is a closest rank-k approximation to A in the matrix norms discussed: the spectral, Frobenius, and nuclear norms.
Explanation
For any matrix B of rank at most k, the distance from A to B is at least the distance from A to Ak in each of these norms.
- 4
What role do singular values play in constructing the truncated SVD approximation Ak?
Model answer
The terms corresponding to the k largest singular values are retained, and the remaining SVD terms are discarded.
Explanation
The lecture identifies the largest singular-value pieces as the important components used for the rank-k approximation.
- 5
For the diagonal matrix with diagonal entries 4,3,2,1, what is its rank-two truncated SVD approximation?
Model answer
It is the diagonal matrix with diagonal entries 4,3,0,0.
Explanation
The two largest singular values are 4 and 3, so the rank-two approximation retains those entries and drops the others.
- 6
Why might a rank-two matrix that seems closer on the diagonal still be worse than the truncated SVD approximation?
Model answer
Making other diagonal entries closer can require off-diagonal entries to keep the matrix rank at two. Those off-diagonal errors can make the overall distance larger.
Explanation
The rank constraint applies to the whole matrix, not just its diagonal; the lecture's alternative rank-two construction incurs additional off-diagonal error.
- 7
What happens to the singular values of A=UΣVT when A is multiplied on the left by an orthogonal matrix Q?
Model answer
They do not change: QA=(QU)ΣVT, and QU is orthogonal.
Explanation
Left multiplication changes the orthogonal factor but leaves the diagonal singular-value matrix Σ intact.
- 8
Why does multiplying a vector by an orthogonal matrix preserve its L2 norm?
Model answer
An orthogonal transformation preserves vector length because QTQ=I, so (Qv)T(Qv)=vTv.
Explanation
Geometrically, an orthogonal transformation can rotate or reflect a vector without changing its length.
- 9
What is the L2 norm of a vector?
Model answer
It is the square root of the sum of the squares of the vector's components: ∥v∥2=∑ivi2.
Explanation
This is the usual Euclidean length of a vector.
- 10
How is the L1 norm of a vector calculated?
Model answer
Add the absolute values of its components: ∥v∥1=∑i∣vi∣.
Explanation
Unlike the L2 norm, the L1 norm does not square the components before summing them.
- 11
What is the infinity norm of a vector?
Model answer
It is the largest absolute value among the vector's components: ∥v∥∞=maxi∣vi∣.
Explanation
The infinity norm measures a vector by its largest component in magnitude.
- 12
What does it mean for a vector to be sparse, and what connection to L1 minimization was described?
Model answer
A sparse vector has mostly zero components. The lecture states that minimizing certain functions using the L1 norm can produce sparse solutions.
Explanation
Such solutions can be easier to interpret because only a few components are nonzero; the lecture also connects this approach with basis pursuit and signal processing.
- 13
What is the Frobenius norm of a matrix?
Model answer
It is the square root of the sum of the squares of all matrix entries: ∥A∥F=∑i,jaij2.
Explanation
It treats the matrix entries as though they formed one long vector and takes that vector's L2 norm.
- 14
What is the nuclear norm of a matrix?
Model answer
It is the sum of the matrix's singular values: ∥A∥∗=∑iσi.
Explanation
The lecture describes this as a matrix norm that resembles the L1 norm and sums the singular values.
- 15
How is the matrix L2 norm described in the lecture?
Model answer
It is the largest singular value of the matrix.
Explanation
This norm measures the matrix size using its largest singular-value contribution.
- 16
What two general properties of norms are illustrated by scaling and the triangle inequality?
Model answer
A norm is homogeneous, so scaling a vector by c scales its norm by ∣c∣, and it satisfies the triangle inequality, ∥v+w∥≤∥v∥+∥w∥.
Explanation
The lecture also notes that a norm is positive, with zero size only for the zero object.
- 17
Why are the spectral, Frobenius, and nuclear norms especially useful for the rank-k approximation result?
Model answer
Each depends only on the singular values, and in each of these norms the truncated SVD gives a best rank-k approximation.
Explanation
The lecture cautions that the same best-approximation statement need not hold for every possible matrix norm.
- 18
What invariance principle explains why orthogonal changes of coordinates do not alter the singular-value-based norms discussed?
Model answer
Multiplication by orthogonal matrices preserves the singular values, so norms that depend only on those values remain unchanged.
Explanation
In the SVD, an orthogonal multiplication can be absorbed into an orthogonal factor while the singular-value matrix remains the same.
- 19
What feature of the Netflix ratings data made the task a matrix-completion problem?
Model answer
The user–movie ratings matrix had missing entries because users had not rated every movie; the task was to estimate those unobserved ratings.
Explanation
The lecture describes the ratings data as a large but incomplete matrix used to predict preferences and make recommendations.
- 20
How was the nuclear norm used in the Netflix example described in the lecture?
Model answer
It was used in a matrix-completion optimization approach to estimate missing ratings.
Explanation
The lecture identifies nuclear-norm minimization as a useful approach for completing the incomplete ratings matrix.
- 21
How can a recommender system use a matrix of user ratings?
Model answer
It can use ratings a person has already provided to estimate their preferences for items they have not rated and recommend likely matches.
Explanation
The lecture gives recommendations based on past purchases or ratings as an application of completing or analyzing a large data matrix.
- 22
Why can MRI data require matrix completion, and what norm did the lecture identify as useful for this task?
Model answer
A short scan may leave some image data unobserved, so the missing entries must be estimated; the lecture identifies the nuclear norm as useful for this completion.
Explanation
The example contrasts a longer scan that obtains all the data with a shorter scan that can produce missing information.
- 23
What did the Netflix example illustrate about solving data problems?
Model answer
It illustrated that large-scale matrix methods can be combined with knowledge of human behavior; the competition's results also depended partly on psychology.
Explanation
The lecture presents the task as both a mathematical matrix problem and a problem involving how people rate movies.
- 24
In the height-and-age example, how are the data arranged in a matrix?
Model answer
Each column represents one person or sample, while the rows contain the measured variables, such as height and age.
Explanation
The example describes a matrix with two rows of measurements and many columns of data points.
- 25
How is a dataset centered before the PCA analysis described in the lecture?
Model answer
Subtract the mean of each variable from every entry in its row so that each row has mean zero.
Explanation
Centering shifts the data so that its average position is at the origin, without changing the relative deviations from the mean.
- 26
Why can centered data contain negative ages or heights without representing impossible measurements?
Model answer
The values represent deviations from the average, not actual ages or heights; a negative value means the measurement is below its mean.
Explanation
Subtracting a variable's average can make observations below that average negative.
- 27
What kind of relationship does the PCA example seek to identify between height and age?
Model answer
It seeks a linear relationship that best describes how the two variables vary together.
Explanation
The lecture frames PCA as a linear analysis of the centered height-and-age data, while noting that more complex modeling may require nonlinear functions.
- 28
How does the PCA best-line criterion differ from ordinary least-squares regression?
Model answer
PCA minimizes squared perpendicular distances from the data points to the line, whereas ordinary least squares minimizes squared errors in the response direction.
Explanation
The two methods can give different answers because they measure the data-point errors in different directions.
- 29
What equations arise in ordinary least-squares regression for minimizing ∥Ax−b∥22?
Model answer
The solution satisfies the normal equations ATAx^=ATb.
Explanation
The lecture identifies these equations with the standard least-squares or regression problem, distinguishing it from the PCA best-line problem.
- 30
Why is PCA not simply the same as ordinary least-squares regression, even though both involve the data matrix?
Model answer
They optimize different errors: regression minimizes response-direction residuals, while PCA minimizes perpendicular distances to a line.
Explanation
Because their objective functions differ, their best-fit lines need not be the same.
- 31
What does PCA contribute to the analysis of a matrix of data, according to the lecture?
Model answer
It provides a way to identify important linear patterns or directions in the data, using ideas connected to the SVD.
Explanation
The lecture presents PCA as a basic tool for extracting important information from a data matrix rather than retaining every detail.
- 32
What information does a covariance matrix provide for paired variables such as height and age?
Model answer
It describes the variation of each variable and how the variables vary together.
Explanation
For two variables, the covariance matrix records their individual variances as well as their relationship.
- 33
What does the word “sample” indicate in the term “sample covariance matrix”?
Model answer
It indicates that the matrix is computed from observed data samples rather than from a theoretical probability distribution.
Explanation
The lecture also describes this as an empirical covariance matrix because it is based on information from the data.
- 34
For a centered data matrix A with samples in its columns, how is the sample covariance matrix computed as described?
Model answer
It is computed as N−11AAT, where N is the number of data points.
Explanation
The product AAT combines the variables' variation and covariation; the sample covariance scaling uses N−1.
- 35
Why does the sample covariance formula use N−1 rather than N in the lecture's explanation?
Model answer
The lecture explains that one degree of freedom has been used in estimating and subtracting the mean.
Explanation
Centering the data imposes a constraint on the deviations, which is the stated reason for the N−1 normalization.
- 36
Why does the covariance matrix for two measured variables have size 2×2?
Model answer
It has one row and one column for each variable, so two variables produce a 2×2 matrix.
Explanation
Its entries summarize the variance of each variable and the covariance between them.
- 37
How does the lecture connect the covariance matrix and SVD to the PCA problem?
Model answer
The covariance matrix summarizes the centered data's variation, and the lecture indicates that the PCA best-line problem is solved using SVD-related information.
Explanation
The lecture identifies the covariance matrix as the statistic to work with and points to the SVD as the relevant tool, without fully deriving the solution in this segment.

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