Principal Component Analysis
- 44Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
44 questions
- 1The singular value decomposition expresses a rank-r matrix as a sum of_____rank-one pieces.
Hint
The number matches the matrix's rank.
Answer
r
Explanation
A matrix of rank r can be decomposed into r rank-one pieces using its singular value decomposition.
- 2Each rank-one piece in the singular value decomposition has the form_____times a row vector.
Hint
Think of the left-hand vector in the decomposition.
Answer
a column vector
Explanation
Each piece is formed from a column vector from the left singular vectors and a row vector given by the transpose of a right singular vector.
- 3In the singular value decomposition, the columns of both the left and right singular-vector matrices are_____.
Hint
They are mutually perpendicular and have unit length.
Answer
orthonormal
Explanation
The left and right singular vectors are each orthonormal sets.
- 4The Eckart-Young Theorem compares the error for any rank-k matrix B with the error for_____.
Hint
This is the truncated SVD approximation.
Answer
Ak
Explanation
For the stated norms, the theorem says that the distance from A to any rank-k matrix B is at least the distance from A to Ak.
- 5In machine learning, the goal is to learn important facts about the data rather than simply_____all the training data.
Hint
Contrast extracting useful patterns with reproducing every example.
Answer
copying
Explanation
The lecture contrasts learning important information from data with merely copying the entire training set.
- 6The rank-k approximation keeps the_____singular-value pieces of the matrix.
Hint
These components preserve the most important information according to the lecture.
Answer
largest
Explanation
The leading singular values and their associated pieces are treated as the important information in the matrix.
- 7The theorem's rank restriction matters because adding two rank-2 matrices can produce a matrix with rank as high as_____.
Hint
Ranks can add when matrices are summed.
Answer
4
Explanation
The sum of two rank-2 matrices can have rank up to 4, so rank-constrained matrices do not behave like a simple linear space.
- 8The L2 norm of a vector is its ordinary Euclidean_____in the corresponding dimensional space.
Hint
It is the hypotenuse measure familiar from the Pythagorean theorem.
Answer
length
Explanation
The L2 norm is the square root of the sum of the squared vector components, giving the vector's Euclidean length.
- 9The L1 norm of a vector is found by adding the magnitudes of its components without first_____.
Hint
Unlike the L2 norm, this calculation does not use component squares.
Answer
squaring them
Explanation
The L1 norm adds the absolute values of the components directly; it does not square them and then take a square root.
- 10The infinity norm of a vector is the_____component magnitude.
Hint
It selects one extreme component rather than combining all of them.
Answer
largest
Explanation
The infinity norm is the largest magnitude among the vector's components.
- 11A vector is called sparse when it has mostly_____components.
Hint
Sparse vectors contain relatively few nonzero entries.
Answer
zero
Explanation
The lecture defines sparsity as having mostly zero components.
- 12Minimizing a function using the L1 norm often produces a_____vector.
Hint
The result tends to have only a few nonzero components.
Answer
sparse
Explanation
A key property highlighted for L1 minimization is that the minimizing vector is often sparse.
- 13The method associated with minimizing using the L1 norm is also called_____.
Hint
It is a named approach used in signal processing and sensing.
Answer
basis pursuit
Explanation
The lecture identifies basis pursuit as another name associated with the L1 approach.
- 14Compared with an L1-minimizing solution, an L2 least-squares solution may contain many_____components that are small in magnitude.
Hint
These entries are not exactly zero, even if each is small.
Answer
nonzero
Explanation
Squaring small components makes them contribute little to the L2 objective, so least squares can yield many small nonzero entries rather than a sparse solution.
- 15One advantage of a sparse answer is that its few nonzero components are easier to_____.
Hint
The small number of active entries makes the result more understandable.
Answer
interpret
Explanation
A solution with only a few nonzero components can make it clearer which features or components account for the result.
- 16A norm is homogeneous: multiplying a vector by a scalar multiplies its norm by the scalar's_____.
Hint
The norm measures size, so a negative scalar cannot make it negative.
Answer
absolute value
Explanation
Homogeneity means that the norm of a scalar multiple is the absolute value of the scalar times the original norm.
- 17The triangle inequality states that the norm of a sum of two vectors is no greater than the_____of their norms.
Hint
The combined length cannot exceed the route that travels along both sides of a triangle.
Answer
sum
Explanation
For vectors v and w, the triangle inequality is ∥v+w∥≤∥v∥+∥w∥.
- 18A norm must be_____for every nonzero vector.
Hint
A nonzero object cannot have size zero under a norm.
Answer
positive
Explanation
Positivity is a required norm property; the lecture also notes that the norm of a nonzero vector is positive.
- 19For a matrix, the L2 norm is its largest_____.
Hint
It measures the matrix using the most dominant SVD component.
Answer
singular value
Explanation
The matrix L2 norm is the largest singular value of the matrix.
- 20The Frobenius norm treats all matrix entries as one long vector, squares them, sums them, and takes the_____.
Hint
This is the same final operation used in the vector L2 norm.
Answer
square root
Explanation
The Frobenius norm is the square root of the sum of the squares of all matrix entries.
- 21The nuclear norm of a matrix is the_____of its singular values.
Hint
It combines every singular value rather than selecting only the largest.
Answer
sum
Explanation
The nuclear norm is defined as the sum of the matrix's singular values.
- 22The three matrix norms emphasized for the rank-k approximation theorem are L2, Frobenius, and_____.
Hint
This norm adds the singular values.
Answer
nuclear
Explanation
The lecture states the Eckart-Young result for the L2, Frobenius, and nuclear norms.
- 23The matrix L2, Frobenius, and nuclear norms discussed in the lecture can each be computed from the matrix's_____.
Hint
These quantities come directly from the SVD.
Answer
singular values
Explanation
The selected norms depend only on singular values: the L2 norm uses the largest, the nuclear norm sums them, and the Frobenius norm is determined by their squared magnitudes.
- 24For a matrix, the triangle inequality bounds the L2 norm of A+B by the L2 norm of A plus the L2 norm of_____.
Hint
The bound uses the two matrices being added.
Answer
B
Explanation
The matrix L2 norm satisfies ∥A+B∥2≤∥A∥2+∥B∥2.
- 25In the Netflix recommendation example, the data form a large matrix of subscriber-to-movie_____with missing entries.
Hint
Subscribers had not seen every movie, so some entries were absent.
Answer
rankings
Explanation
The matrix records movie rankings from subscribers, but many subscriber-movie entries are missing because people had not seen every movie.
- 26The Netflix example used a minimum problem based on the_____norm to complete the incomplete matrix.
Hint
This matrix norm sums singular values and was selected instead of least squares.
Answer
nuclear
Explanation
The lecture describes nuclear norm minimization as the appropriate approach for completing the incomplete Netflix rankings matrix.
- 27In the MRI example, a shorter scan can leave missing entries because the system did not collect enough measurements to form a complete_____.
Hint
The missing measurements belong to the data representation being completed.
Answer
matrix
Explanation
If a scan is stopped too soon, some image data are missing, and matrix completion can be used to estimate them; the nuclear norm is cited as useful for this task.
- 28A diagonal matrix with diagonal entries 4,3,2,1 has singular values_____.
Hint
For this diagonal example, the singular values are visible on the diagonal.
Answer
4,3,2,1
Explanation
The diagonal entries in the example are the singular values, listed from largest to smallest.
- 29For the diagonal matrix with entries 4,3,2,1, the best rank-2 approximation retains the entries_____.
Hint
Keep the two largest singular-value components.
Answer
4 and 3
Explanation
The truncated SVD keeps the two largest components, so the rank-2 approximation retains 4 and 3.
- 30The suggested competing rank-2 construction using diagonal values 3.5,3.5,1.5 also requires off-diagonal entries to keep its rank low; those entries make its total error_____.
Hint
The apparent improvement on the diagonal comes at a cost elsewhere in the matrix.
Answer
larger
Explanation
Although the proposed matrix is closer on some diagonal entries, the off-diagonal entries needed to maintain rank 2 make its overall error greater than that of the truncated SVD approximation.
- 31If A=UΣVT with orthogonal U and V, multiplying by orthogonal matrices does not change the singular values in_____.
Hint
Orthogonal factors alter the singular vectors, not the central diagonal matrix.
Answer
Σ
Explanation
Left or right multiplication by an orthogonal matrix changes the orthogonal factors in the SVD but leaves the singular-value matrix unchanged.
- 32Multiplying a vector by an orthogonal matrix preserves its L2 norm because it acts like a rotation that leaves its_____unchanged.
Hint
A rotation changes direction but not size.
Answer
length
Explanation
The Euclidean length of a vector is invariant under orthogonal transformations; algebraically, this follows from QTQ=I.
- 33For a matrix with SVD A=UΣVT, left multiplication by an orthogonal matrix Q changes the left factor to_____while leaving Σ unchanged.
Hint
Combine the new matrix with the original left singular-vector factor.
Answer
QU
Explanation
The product is QA=QUΣVT. Since QU is orthogonal, this is an SVD with the same singular values.
- 34The rank-approximation problem is called orthogonally invariant because orthogonal transformations preserve the relevant matrix_____.
Hint
The measure of matrix size remains unchanged.
Answer
norms
Explanation
Orthogonal multiplication changes the singular vectors but not the singular values, so the norms discussed that depend on singular values remain unchanged.
- 35In PCA, the data are centered by subtracting the mean so that each data row has mean_____.
Hint
Centering shifts the average to the origin.
Answer
zero
Explanation
Subtracting the average height and average age from their respective rows gives each row mean zero.
- 36For height-and-age data, centering can make some centered ages or heights negative because values are measured relative to the_____.
Hint
A value below the central reference becomes negative after subtraction.
Answer
average
Explanation
After subtracting a variable's average, observations below the average have negative centered values and observations above it have positive values.
- 37The PCA example represents n people measured on two variables, height and age, as a data matrix with_____rows.
Hint
There is one row for each measured variable.
Answer
two
Explanation
The two rows represent height and age, while the columns represent the n data points.
- 38In the PCA example, the desired relationship between centered height and age is modeled as a_____.
Hint
The lecture seeks a linear relation between the two measurements.
Answer
line
Explanation
PCA is presented as seeking the best line relating the centered height and age data in this example.
- 39Ordinary least squares measures the residual from a data point to the fitted relation in the direction used by the regression setup, whereas PCA minimizes distances measured_____to the line.
Hint
These errors are measured at right angles to the fitted line.
Answer
perpendicular
Explanation
PCA minimizes the sum of squared perpendicular distances from the points to the line, which differs from the usual least-squares regression objective.
- 40The ordinary least-squares problem for Ax≈b leads to the normal equations_____.
Hint
They involve the transpose of the design matrix multiplied by the matrix itself.
Answer
ATAx=ATb
Explanation
Minimizing the usual squared residuals yields the normal equations ATAx=ATb.
- 41In statistics, the sample covariance matrix is computed from observed samples rather than from a theoretical probability_____.
Hint
The alternative is a mathematical model for how the data are generated.
Answer
distribution
Explanation
The word sample indicates that the covariance is estimated from the collected data, rather than derived from a theoretical probability distribution.
- 42Covariance captures not only the variation in each variable but also the_____between variables, such as whether greater age tends to accompany greater height.
Hint
It describes how two quantities vary together.
Answer
link
Explanation
The covariance matrix records each variable's variance and the relationship between pairs of variables.
- 43For centered data stored with variables as rows and observations as columns, the sample covariance matrix in the lecture is formed from AAT and normalized by_____.
Hint
The lecture notes that one degree of freedom is accounted for when centering.
Answer
N−1
Explanation
The sample covariance matrix is given as AAT/(N−1), where N is the number of data points.
- 44The PCA objective differs from ordinary least squares because it minimizes squared distances from the data points to the line in the_____direction.
Hint
The distance is measured at a right angle rather than along a coordinate axis.
Answer
perpendicular
Explanation
Ordinary least squares uses residuals defined by the regression setup, while PCA's line-fitting objective sums squared perpendicular distances to the line.

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