Principal Component Analysis
- 41Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
How can a rank-r matrix A be represented using its singular value decomposition?
How can a rank-r matrix A be represented using its singular value decomposition?
41 questions
- 1
How can a rank-r matrix A be represented using its singular value decomposition?
- A
As a sum of r rank-one terms, each formed from a left singular vector, a singular value, and a right singular vector
- B
As a product of r rank-one matrices whose vectors need not be orthogonal
- C
As a sum of r diagonal matrices, each formed from two eigenvectors of A
- D
As a sum of r rank-one terms whose left and right vectors are necessarily identical
Correct answer
AAs a sum of r rank-one terms, each formed from a left singular vector, a singular value, and a right singular vector
Explanation
The SVD expresses A as a sum of r rank-one pieces built from its singular vectors and singular values. The left singular vectors are orthonormal, as are the right singular vectors.
- A
- 2
What distinguishes the singular vectors in the SVD from arbitrary vectors in a rank-one decomposition?
- A
The left singular vectors are orthogonal, but the right singular vectors are unrestricted
- B
The left singular vectors are identical to the right singular vectors, and both sets are normalized
- C
The left singular vectors are orthonormal, and the right singular vectors are also orthonormal
- D
The singular vectors are chosen to make every rank-one piece have the same size
Correct answer
CThe left singular vectors are orthonormal, and the right singular vectors are also orthonormal
Explanation
A key feature of the SVD is that its left singular vectors form an orthonormal set and its right singular vectors form an orthonormal set.
- A
- 3
If a matrix has many singular-value terms but only a limited computational budget is available, what does retaining the first k SVD terms accomplish?
- A
It keeps the k largest singular-value pieces as a compact representation of important data information
- B
It keeps the k smallest singular-value pieces to remove the most prominent patterns
- C
It guarantees an exact representation whenever k is smaller than the matrix rank
- D
It replaces the matrix with a rank-k representation whose terms all have equal size
Correct answer
AIt keeps the k largest singular-value pieces as a compact representation of important data information
Explanation
The lecture presents the largest singular-value pieces as the important information to retain when a full matrix representation is impractical. Keeping the first k pieces gives a rank-k approximation.
- A
- 4
What does the Eckart–Young theorem say about Ak, the matrix formed from the first k SVD pieces of A?
- A
It is an exact representation of A whenever A has more than k singular values
- B
It is the best approximation to A among matrices of every possible rank
- C
It is a best rank-k approximation to A under the stated matrix norms
- D
It is the only rank-k matrix that can be written using singular vectors
Correct answer
CIt is a best rank-k approximation to A under the stated matrix norms
Explanation
The theorem states that Ak, formed from the first k SVD pieces, is at least as close to A as any other rank-k matrix, for the specified norms.
- A
- 5
Which comparison expresses the best-approximation claim for a rank-k matrix B?
- A
The comparison is valid only when B is diagonal and A is not
- B
The error from A to B is always smaller than the error from A to Ak
- C
The two errors are equal whenever B and Ak both have rank k
- D
The error from A to B is at least as large as the error from A to Ak
Correct answer
DThe error from A to B is at least as large as the error from A to Ak
Explanation
For the norms discussed, the theorem says that any rank-k candidate B has error no smaller than Ak; in symbols, |A-B|\geq|A-A_k|$.
- A
- 6
For the diagonal matrix with diagonal entries 4,3,2,1, what is its best rank-2 approximation according to the SVD truncation described in the lecture?
- A
The diagonal matrix with entries 4,0,2,0
- B
The diagonal matrix with entries 3.5,3.5,0,0
- C
The diagonal matrix with entries 4,3,0,0
- D
The diagonal matrix with entries 0,0,2,1
Correct answer
CThe diagonal matrix with entries 4,3,0,0
Explanation
The singular values of this diagonal example are 4,3,2,1. A rank-2 truncation retains the two largest, giving diagonal entries 4,3,0,0.
- A
- 7
Why might a rank-2 matrix that seems closer to a diagonal matrix on its diagonal entries still be a worse approximation overall?
- A
Any nonzero diagonal entries automatically increase the rank beyond two
- B
The SVD theorem compares only diagonal entries and ignores all other entries
- C
A rank-2 approximation is not allowed to contain diagonal entries
- D
Keeping the rank low may require off-diagonal entries that add to the total approximation error
Correct answer
DKeeping the rank low may require off-diagonal entries that add to the total approximation error
Explanation
A competing rank-2 construction can improve some diagonal entries but require nonzero off-diagonal entries. Those additional discrepancies can make its overall norm error larger than that of the SVD truncation.
- A
- 8
What is the vector L2 norm of v=(v_1,\ldots,v_n)$?
- A
The square root of the sum of the squared components
- B
The largest absolute value among the components
- C
The sum of the absolute values of the components
- D
The sum of the components divided by their number
Correct answer
AThe square root of the sum of the squared components
Explanation
The vector L2 norm is the usual Euclidean length: \sqrt{v_1^2+\cdots+v_n^2}.
- A
- 9
How is the vector L1 norm defined in the lecture?
- A
By selecting the component with the greatest absolute value
- B
By adding the absolute values of the components without squaring them
- C
By adding the squared components without taking a square root
- D
By taking the square root of the sum of the squared components
Correct answer
BBy adding the absolute values of the components without squaring them
Explanation
The vector L1 norm adds the magnitudes of the components: \sum_i |v_i|$.
- A
- 10
What is the vector L_\infty$ norm?
- A
The sum of all absolute values in the vector
- B
The square root of the sum of all squared components
- C
The average of the vector’s absolute component values
- D
The largest absolute value among the vector’s components
Correct answer
DThe largest absolute value among the vector’s components
Explanation
The L_\inftynormisthemaximummagnitudeofanycomponent:maxi∣vi∣.
- A
- 11
What outcome is associated in the lecture with minimizing an objective using the L1 norm?
- A
A minimizing vector that must have the largest possible number of nonzero components
- B
A minimizing vector that is often sparse, with mostly zero components
- C
A minimizing vector whose components are all small but nonzero
- D
A minimizing vector whose components are all equal in magnitude
Correct answer
BA minimizing vector that is often sparse, with mostly zero components
Explanation
The lecture explains that L1 minimization often produces sparse solutions, meaning that most components are zero. This is useful because the remaining nonzero components can be easier to interpret.
- A
- 12
What contrast does the lecture draw between typical L1 and L2 minimizers?
- A
L1 yields many small components, whereas L2 always yields mostly zero components
- B
L1 and L2 necessarily produce the same minimizing vector
- C
L1 often yields mostly zero components, whereas L2 least squares may yield many small components
- D
L1 minimizes the largest component, whereas L2 minimizes the number of nonzero components
Correct answer
CL1 often yields mostly zero components, whereas L2 least squares may yield many small components
Explanation
The lecture contrasts sparse L1 solutions with least-squares L2 solutions that can contain many small components. The sparse solution may be easier to interpret.
- A
- 13
Which statement describes homogeneity, a property required of a norm?
- A
A vector’s norm is the number of its nonzero components
- B
Scaling a vector by a scalar scales its norm by the scalar’s absolute value
- C
A vector’s norm is unchanged when the vector is multiplied by any scalar
- D
Adding two vectors always gives a norm equal to the sum of their norms
Correct answer
BScaling a vector by a scalar scales its norm by the scalar’s absolute value
Explanation
Norm homogeneity means |cv|=|c||v|.Thusscalingby2$ doubles the norm, while scaling by a negative number also scales it by that number’s absolute value.
- A
- 14
What does the triangle inequality require of a norm?
- A
The norm of a sum is always greater than each individual norm
- B
The norm of a sum is always equal to the sum of the individual norms
- C
The norm of a sum is no greater than the sum of the individual norms
- D
The norm of a sum is the product of the individual norms
Correct answer
CThe norm of a sum is no greater than the sum of the individual norms
Explanation
The triangle inequality states that |v+w|\leq|v|+|w|$. Geometrically, the direct distance across a triangle cannot exceed the combined lengths of its other two sides.
- A
- 15
Which description matches the matrix L2 norm introduced in the lecture?
- A
The sum of all singular values of the matrix
- B
The largest singular value of the matrix
- C
The square root of the sum of the squared matrix entries
- D
The largest absolute value among the matrix entries
Correct answer
BThe largest singular value of the matrix
Explanation
The matrix L2 norm discussed is the largest singular value, \sigma_1$.
- A
- 16
How is the Frobenius norm computed from a matrix’s entries?
- A
Add the absolute values of all entries without squaring them
- B
Take the square root of the sum of the squares of all entries
- C
Take the largest singular value of the matrix
- D
Add the singular values and divide by the matrix rank
Correct answer
BTake the square root of the sum of the squares of all entries
Explanation
The Frobenius norm treats the matrix as a long vector: it squares all entries, adds them, and takes the square root.
- A
- 17
How is the nuclear norm of a matrix defined in the lecture?
- A
As the sum of the absolute values of its diagonal entries
- B
As its largest singular value
- C
As the square root of the sum of its squared entries
- D
As the sum of its singular values
Correct answer
DAs the sum of its singular values
Explanation
The nuclear norm is the sum of the singular values, \sum_i σi.
- A
- 18
For which matrix norms does the lecture state the Eckart–Young best rank-k approximation result?
- A
The matrix L2, Frobenius, and nuclear norms discussed in the lecture
- B
Only the Frobenius norm and the sum of absolute entries
- C
Only the matrix L2 norm and the maximum-entry norm
- D
Every possible matrix norm, without exception
Correct answer
AThe matrix L2, Frobenius, and nuclear norms discussed in the lecture
Explanation
The lecture identifies the matrix L2, Frobenius, and nuclear norms as norms for which the truncated SVD gives a best rank-k approximation. It explicitly notes that the result does not hold for every possible matrix norm.
- A
- 19
Why can low-rank matrix methods help with a recommender system built from user ratings?
- A
The ratings matrix has missing entries, and the system aims to infer unobserved preferences
- B
The system replaces each rating with the average rating of all users
- C
The ratings are necessarily orthogonal, so their singular values directly name products
- D
Every user rates every item, so the system needs only to sort complete rows
Correct answer
AThe ratings matrix has missing entries, and the system aims to infer unobserved preferences
Explanation
A ratings matrix is incomplete because users have not rated every item. Matrix completion methods can estimate missing entries from the observed ratings and thereby support recommendations.
- A
- 20
What does the nuclear norm contribute to the matrix-completion examples discussed?
- A
It guarantees that every missing entry equals the average of its row
- B
It ensures that a matrix with missing entries has full rank
- C
It converts all observed entries into singular values without estimation
- D
It can be used in a completion problem to estimate missing entries in a large matrix
Correct answer
DIt can be used in a completion problem to estimate missing entries in a large matrix
Explanation
The lecture describes nuclear-norm minimization as a useful approach to completing incomplete matrices, including recommendation data and MRI measurements.
- A
- 21
Why may an MRI image require matrix completion when a scan is shortened?
- A
A short scan changes the image matrix into a vector with no recoverable structure
- B
A shorter scan may leave some measurements unobserved, so the missing information must be estimated
- C
A shorter scan records every entry but makes all observed values identical
- D
A longer scan produces missing entries that a shorter scan automatically restores
Correct answer
BA shorter scan may leave some measurements unobserved, so the missing information must be estimated
Explanation
The lecture explains that shorter scanning can leave some matrix measurements unobserved. Completion methods can estimate the missing information to help reconstruct the image.
- A
- 22
Which two kinds of applications are specifically mentioned as using nuclear-norm matrix completion?
- A
Recommendation data and MRI imaging
- B
Image compression and population growth
- C
Speech recognition and planetary motion
- D
Weather forecasting and chemical reaction modeling
Correct answer
ARecommendation data and MRI imaging
Explanation
The lecture points to incomplete movie-rating data for recommendations and incomplete measurements in MRI as examples where nuclear-norm completion is useful.
- A
- 23
What kind of extra consideration did the lecture say played a role in the Netflix recommendation competition, in addition to matrix mathematics?
- A
A method for replacing all ratings with movie release dates
- B
A proof that every subscriber had rated every movie
- C
A rule that users’ preferences were independent of their viewing
- D
Some understanding of how people make ratings or preferences
Correct answer
DSome understanding of how people make ratings or preferences
Explanation
The lecture says the competition involved both a large incomplete-matrix problem and some psychology of how people voted or expressed preferences.
- A
- 24
What happens to the singular values of A=Uh\Sigma V^T if an orthogonal matrix Q multiplies A on the left?
- A
They become the eigenvalues of Q
- B
They stay the same because QA=(QU)ΣVT is still an SVD
- C
They are all multiplied by the largest singular value of Q
- D
They are reversed because left multiplication swaps the singular-vector sets
Correct answer
BThey stay the same because QA=(QU)ΣVT is still an SVD
Explanation
Since Q and U are orthogonal, QU is orthogonal. Thus QA=(QU)ΣVT has the same diagonal singular-value matrix \Sigma$.
- A
- 25
Why does multiplying a vector by an orthogonal matrix preserve its L2 length?
- A
Orthogonal transformations set every vector’s length equal to one
- B
Orthogonal transformations preserve inner products, so they preserve the squared length
- C
Orthogonal matrices replace each component with its absolute value
- D
Orthogonal matrices preserve only the sum of a vector’s components
Correct answer
BOrthogonal transformations preserve inner products, so they preserve the squared length
Explanation
For an orthogonal matrix Q, QTQ=I. Therefore (Qv)T(Qv)=vTQTQv=vTv, so the L2 length is unchanged.
- A
- 26
How does an orthogonal change of coordinates affect the singular values of a matrix?
- A
It leaves them unchanged because it changes singular-vector directions but not the middle diagonal matrix
- B
It changes them unless the matrix is diagonal to begin with
- C
It multiplies them by the entries of the orthogonal matrices
- D
It replaces them with the singular values of the orthogonal matrices
Correct answer
AIt leaves them unchanged because it changes singular-vector directions but not the middle diagonal matrix
Explanation
In an SVD, orthogonal multiplication on the left or right can be absorbed into the orthogonal singular-vector factors. The diagonal matrix of singular values remains unchanged.
- A
- 27
What does it mean in this setting to say the approximation problem is orthogonally invariant?
- A
Applying orthogonal transformations preserves only the matrix’s trace
- B
Applying orthogonal transformations does not change the singular values or the relevant matrix norms
- C
Applying orthogonal transformations changes the rank but preserves the number of entries
- D
Applying orthogonal transformations makes every matrix diagonal
Correct answer
BApplying orthogonal transformations does not change the singular values or the relevant matrix norms
Explanation
The lecture uses orthogonal invariance to explain that multiplying by orthogonal matrices preserves the singular values and the norms based on them, so the approximation structure is unchanged.
- A
- 28
If Q is orthogonal, which expression is an SVD of QA, given A=UΣVT?
- A
(QU)QΣVT
- B
(QU)ΣVT
- C
UΣ(QV)T
- D
U(QΣ)VT
Correct answer
B(QU)ΣVT
Explanation
Left multiplication gives QA=QUΣVT. Because the product QU is orthogonal, this has the same SVD diagonal \Sigma$.
- A
- 29
In the height-and-age example, what does arranging measurements as a data matrix with people as columns mean?
- A
Each row contains one person’s pair of measurements
- B
Each column contains one person’s height and age measurements
- C
Each entry gives the average height and age for the entire group
- D
Each column contains all people’s heights followed by all people’s ages
Correct answer
BEach column contains one person’s height and age measurements
Explanation
The example places the variables in rows and the samples in columns. Thus each column is a two-component vector containing one person’s height and age.
- A
- 30
What is the purpose of subtracting each variable’s average before analyzing the data in the PCA example?
- A
It forces every sample to have the same height and age
- B
It removes the relationship between the variables
- C
It makes all variables have variance one
- D
It centers the data so each variable has mean zero
Correct answer
DIt centers the data so each variable has mean zero
Explanation
Subtracting the mean of each row centers the observations around zero. The centered values in each variable then sum to zero.
- A
- 31
After subtracting a variable’s mean from all its sample values, what is true of the centered values for that variable?
- A
They are all nonnegative
- B
They sum to zero
- C
They all equal the original mean
- D
Their squared values sum to zero
Correct answer
BThey sum to zero
Explanation
The mean is the average of the sample values. Subtracting it from every value makes the centered values sum to zero.
- A
- 32
Why can centered age values be negative without implying that a person has a negative actual age?
- A
A negative centered value means that the person’s actual age is zero
- B
Centering converts all ages into measurement errors
- C
Centering reverses the direction of the age scale
- D
A negative centered value means the person’s age is below the sample average
Correct answer
DA negative centered value means the person’s age is below the sample average
Explanation
The centered value is the actual measurement minus the average measurement. It can be negative when a person’s age is below the average age.
- A
- 33
What two kinds of information does the sample covariance matrix capture for height and age?
- A
Variation within each variable and the relationship between the variables
- B
The maximum value of each variable and the number of samples
- C
The measurement units and the order in which samples were collected
- D
The average of each variable and the rank of the data matrix
Correct answer
AVariation within each variable and the relationship between the variables
Explanation
The covariance matrix includes the variances of height and age on its diagonal and describes how the two variables vary together in its off-diagonal entries.
- A
- 34
What does the word “empirical” indicate when describing a covariance matrix?
- A
It is necessarily an exact description of the population distribution
- B
It contains no information about variation among samples
- C
It is calculated from observed data rather than specified by a theoretical probability distribution
- D
It is calculated only from a theoretical model rather than observed samples
Correct answer
CIt is calculated from observed data rather than specified by a theoretical probability distribution
Explanation
Empirical means based on information from the data. The sample covariance is computed from observed samples rather than derived solely from a proposed theoretical distribution.
- A
- 35
According to the lecture, what covariance matrix is formed from centered data with variables in rows and N samples in columns?
- A
The product ATA without any normalization
- B
A normalized form of ATA, using the number of variables as the divisor
- C
A normalized form of AAT, using N or, conventionally, N−1 as the divisor
- D
The product A+AT, divided by the number of rows
Correct answer
CA normalized form of AAT, using N or, conventionally, N−1 as the divisor
Explanation
With variables as rows and samples as columns, the sample covariance is formed from AAT and normalized by the sample count, commonly N−1 rather than N.
- A
- 36
Why does the lecture give N−1 as the conventional covariance divisor after centering the data?
- A
Using N−1 forces the covariance matrix to have rank N−1 in every case
- B
One degree of freedom is accounted for when the sample mean is estimated and removed
- C
The divisor corrects for the number of variables rather than the number of samples
- D
The data matrix has exactly N−1 rows after centering
Correct answer
BOne degree of freedom is accounted for when the sample mean is estimated and removed
Explanation
The lecture motivates the N−1 divisor by noting that one degree of freedom has been used in estimating and subtracting the mean. It also notes that this divisor does not affect the computation being discussed there.
- A
- 37
What quantity does the PCA line-fitting setup minimize, in contrast to ordinary least squares?
- A
The difference between the mean of each variable and the fitted line
- B
The sum of squared vertical errors in predicting one variable from the other
- C
The sum of squared perpendicular distances from the data points to the line
- D
The sum of absolute differences between every pair of data points
Correct answer
CThe sum of squared perpendicular distances from the data points to the line
Explanation
The PCA setup described measures each point’s perpendicular distance to the line and minimizes the sum of squared distances. Ordinary least squares instead measures errors in a designated response direction.
- A
- 38
In ordinary least squares for a model Ax≈b, what errors are minimized?
- A
The squared components of the residual b−Ax
- B
The squared perpendicular distances from all data points to the fitted line
- C
The squared deviations of the columns of A from their means only
- D
The squared differences between the singular values of A and b
Correct answer
AThe squared components of the residual b−Ax
Explanation
Least squares minimizes the sum of squared residual components in b−Ax. In a line-fitting interpretation, these are errors in the chosen response direction, rather than perpendicular distances to the line.
- A
- 39
What equations characterize a least-squares solution to Ax≈b in the lecture?
- A
The eigenvalue equations Ax^=λb
- B
The covariance equations AATx^=ATb
- C
The normal equations ATAx^=ATb
- D
The SVD truncation equations Akx=b
Correct answer
CThe normal equations ATAx^=ATb
Explanation
Ordinary least squares leads to the normal equations ATAx^=ATb. The lecture contrasts solving these equations with PCA’s perpendicular-distance objective.
- A
- 40
Why are PCA line fitting and ordinary least-squares regression not the same problem, even when both seek a best line?
- A
They minimize different errors: PCA uses perpendicular distances, while least squares uses residuals in a chosen response direction
- B
PCA requires uncentered data, while least squares requires centered data
- C
PCA fits only nonlinear curves, while least squares fits only straight lines
- D
PCA uses no matrix operations, while least squares always uses an SVD
Correct answer
AThey minimize different errors: PCA uses perpendicular distances, while least squares uses residuals in a chosen response direction
Explanation
PCA minimizes squared perpendicular distances to the line. Least-squares regression minimizes squared errors in a designated response direction, so the two objectives can produce different best-fit lines.
- A
- 41
What limitation of PCA does the lecture contrast with the capabilities needed to model more complex data?
- A
PCA is a linear method, whereas complex deep-learning models may require nonlinear functions
- B
PCA works only with complete data, whereas deep learning requires missing data
- C
PCA cannot use matrices, whereas deep learning is based entirely on matrices
- D
PCA requires nonlinear functions, whereas deep learning is necessarily linear
Correct answer
APCA is a linear method, whereas complex deep-learning models may require nonlinear functions
Explanation
The lecture characterizes PCA as a linear method and notes that modeling serious data with deep learning requires nonlinear functions.
- A

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