Velocer › Thẻ ghi nhớ › University of Wisconsin–Madison › MATH 345: Linear Programming & Optimization · UW-Madison
MATH 345: Linear Programming & Optimization · UW-Madison
MATH 345 flashcards for the midterm. · bởi mendota_notes · 224 thẻ
- What does the Jacobian matrix J_F(a) represent?The linear map that best approximates a nonlinear map F near the point a: F(a+h) ≈ F(a) + J_F(a)h.
- How does the Multivariable Chain Rule relate to matrix multiplication?For composed maps, the Jacobian of the composition equals the product of the individual Jacobian matrices.
- In gradient descent, in which direction is the steepest descent step taken?Along the negative gradient, −∇f(a), the direction of steepest local decrease.
- What are the two structural questions asked of a linear map T(x) = Ax?Which outputs are reachable (the column space col(A)) and which input directions are forgotten (the null space null(A)).
- What does the Rank–Nullity Theorem state?For an m×n matrix A, rank(A) + nullity(A) = n, i.e., dim col(A) + dim null(A) = n.
- When Ax = b has no exact solution, what does orthogonal projection onto col(A) produce?The least-squares solution x̂, characterized by the normal equations AᵀA x̂ = Aᵀb.
- How is the least-squares solution computed using QR factorization?Factor A = QR, then solve R x̂ = Qᵀb.
- What does the Spectral Theorem say about symmetric matrices?A symmetric matrix can be orthogonally diagonalized: A = QDQᵀ, with Q orthogonal and D diagonal.
- What is the Hessian Second Derivative Test used for?Classifying critical points of a scalar function via the definiteness of the Hessian matrix.
- What is the Lagrange multiplier condition for constrained optimization?At an extremum, ∇f = Σ λᵢ ∇gᵢ, so the gradient of f is a linear combination of the constraint gradients.
- How is the maximum matrix stretch σ₁ derived?By maximizing the quadratic form xᵀAx (or ‖Ax‖) over the unit sphere, which yields the largest singular value σ₁.
- What does Principal Component Analysis (PCA) compute?The directions of maximal variance, obtained as eigenvectors of the covariance matrix (equivalently via SVD).
- What does the Singular Value Decomposition (SVD) express?Any matrix A as A = UΣVᵀ, with U and V orthogonal and Σ diagonal containing the singular values.
- What is cosine similarity used to measure?The cosine of the angle between two vectors, computed as (a·b)/(‖a‖‖b‖).
- How is matrix multiplication interpreted as map composition?Applying AB to a vector means first applying B, then applying A, so AB represents the composition of the two linear maps.
- What does Gaussian elimination with RREF accomplish?It reduces a matrix to reduced row echelon form, revealing its rank, pivot columns, and solution structure.
- What is the geometric meaning of the column space col(A)?The set of all reachable outputs Ax, i.e., the span of the columns of A.
- What does a vector in R^n represent in the algebraic view?A list of numerical features, such as word-count frequencies in a document or token embedding coordinates.
- What does a vector in R^n represent in the geometric view?A directed displacement in space.
- Define the dot product of two vectors u and v in R^n.u · v = u^T v = Σ_{i=1}^n u_i v_i.
- Define the Euclidean norm of a vector v.||v|| = sqrt(v · v).
- Define the Euclidean distance between vectors u and v.dist(u, v) = ||u - v||.
- State the formula for cosine similarity of nonzero vectors u and v.cosim(u, v) = (u · v) / (||u|| ||v||) = (u/||u||) · (v/||v||).
- What is the range of cosine similarity?It lies in [-1, 1].
- What does the angle θ between two vectors represent in cosine similarity?θ ∈ [0, π] is the angle between u and v, and cosim(u, v) = cos θ.
- Why is cosine similarity invariant to positive scaling?Because scaling a vector by c > 0 changes both its dot product and norm proportionally, leaving the ratio unchanged; it depends only on direction.
- Why is cosine similarity ideal for comparing document vectors of different lengths?Because it depends only on direction, not magnitude, so documents with different word counts can be compared fairly.
- How does Euclidean distance differ from cosine similarity in terms of what it measures?Euclidean distance measures magnitude and direction differences, while cosine similarity depends only on direction.
- What is the condition for two vectors u and v to be orthogonal?u ⟂ v if and only if u · v = 0.
- Express cosine similarity using normalized vectors.cosim(u, v) = (u/||u||) · (v/||v||).
- What is the geometric interpretation of the dot product in terms of angle?u · v = ||u|| ||v|| cos θ, where θ is the angle between u and v.
- If two vectors are orthogonal, what is their cosine similarity?0, since cos(π/2) = 0.
- What does the column view of the matrix–vector product Ax say?Ax is a linear combination of the columns of A, weighted by the entries of x: Ax = x₁a₁ + ⋯ + xₙaₙ.
- What is the significance of A·eⱼ, the product of A with the j-th standard basis vector?It equals aⱼ, the j-th column of A. So column j of A is the image of eⱼ under the map x ↦ Ax.
- What two conditions define a linear map T: ℝⁿ → ℝᵐ?Additivity: T(u + v) = T(u) + T(v), and homogeneity: T(cv) = cT(v) for all scalars c.
- What must every linear map satisfy at the origin, and why?T(0) = 0, because T(0) = T(0·0) = 0·T(0) = 0.
- What is the general form of an affine map, and when is it linear?F(x) = Ax + b. It is linear if and only if the shift vector b = 0, since F(0) = b.
- What is the standard matrix for diagonal scaling in ℝ²?The matrix [[a, 0], [0, b]], which scales the x-direction by a and the y-direction by b.
- What is the standard matrix for counterclockwise rotation by θ in ℝ²?R_θ = [[cos θ, −sin θ], [sin θ, cos θ]].
- What does the horizontal shear matrix [[1, k], [0, 1]] do to a point (x, y)?It sends (x, y) to (x + ky, y), shifting x proportionally to y while leaving y unchanged.
- Which matrix reflects ℝ² across the x-axis?[[1, 0], [0, −1]], which sends (x, y) to (x, −y).
- Which matrix reflects ℝ² across the y-axis?[[−1, 0], [0, 1]], which sends (x, y) to (−x, y).
- Which matrix reflects ℝ² across the line y = x?[[0, 1], [1, 0]], which swaps coordinates: (x, y) ↦ (y, x).
- How can you geometrically determine the effect of a 2×2 matrix on the plane?Track where the unit square goes by reading the images of e₁ (first column) and e₂ (second column).
- In the composition of linear maps, which matrix acts first when writing \(A(B\mathbf{x})\)?The rightmost matrix \(B\) acts first, then \(A\) acts second.
- Is matrix multiplication commutative? Give a counterexample.No, \(AB \ne BA\) in general. For example, stretching horizontally then rotating is not the same as rotating then stretching.
- What identity relates the transpose of a product of matrices to the transposes of the factors?\((AB)^T = B^T A^T\).
- What property allows matrices to be grouped differently in a product without changing the result?Associativity: \(A(BC) = (AB)C\).
- In simplified single-head attention, what does the score vector \(\mathbf{s} = K\mathbf{q}\) represent?It contains dot-product alignment scores between the query \(\mathbf{q}\) and each key row of \(K\).
- What property do the attention weights \(\boldsymbol{\alpha}\) satisfy?They sum to 1.
- How is the output of simplified single-head attention computed from the weights and values?\(\text{out} = \boldsymbol{\alpha}^T V\), which is a weighted average of the rows of the value matrix \(V\).
- For a batch of queries \(Q \in \mathbb{R}^{L \times d}\), what is the score matrix \(S\)?\(S = QK^T \in \mathbb{R}^{L \times L}\).
- For a batch of queries, how is the attention output matrix \(H\) computed?\(H = A_{\text{att}}V\), where \(A_{\text{att}}\) is the matrix of normalized attention weights.
- What does the output \(\text{out} = \boldsymbol{\alpha}^T V\) represent geometrically?It is a weighted average of the value rows of \(V\), with weights given by \(\boldsymbol{\alpha}\).
- What are the two guiding questions for a linear transformation T(x) = Ax?1. Reachability (Existence): Which b can be reached by Ax = b? (b in col(A)). 2. Forgotten Directions (Uniqueness): Which nonzero z satisfy Az = 0 so that A(x+z) = Ax? (z in null(A)).
- What does it mean for a linear system to be consistent in terms of RREF of the augmented matrix?The system is consistent if and only if RREF([A | b]) has no pivot in the augmented column. A pivot in the last column corresponds to an equation 0 = d with d ≠ 0, which is inconsistent.
- What are basic variables and free variables in a linear system?Basic variables correspond to pivot columns in the coefficient matrix A. Free variables correspond to non-pivot columns and can be chosen freely as parameters.
- If a consistent system has r pivot columns in an m×n matrix A, how many basic and free variables are there?There are r basic variables and n - r free variables.
- When does a consistent linear system have a unique solution?A consistent system has a unique solution if and only if there are no free variables, i.e., n - r = 0 (r = n).
- When does a consistent linear system have infinitely many solutions?A consistent system has infinitely many solutions if and only if there is at least one free variable, i.e., n - r > 0.
- What is the general solution structure for a consistent system Ax = b?Every solution can be written as x = x_p + x_h, where x_p is a particular solution (Ax_p = b) and x_h is a homogeneous solution (x_h ∈ null(A)).
- What are elementary row operations and why are they used?Elementary row operations are: row swap, scaling a row by a nonzero constant, and adding a multiple of one row to another. They are used in Gaussian elimination because they preserve the solution set of the linear system.
- What is the null space of a matrix A?The null space of A, denoted null(A), is the set of all vectors z such that Az = 0. It consists of the 'forgotten directions' that do not change the output of the linear transformation.
- What is the column space of a matrix A?The column space of A, denoted col(A), is the set of all linear combinations of the columns of A. It consists of all possible outputs b for which Ax = b is consistent.
- How can you determine the number of free variables from the RREF of a matrix?The number of free variables equals the number of non-pivot columns in the coefficient matrix, which is n - r, where n is the number of columns and r is the number of pivots.
- What does a pivot in the augmented column of RREF([A | b]) indicate?It indicates that the system is inconsistent, meaning there is no solution. This corresponds to a row of the form [0 ... 0 | d] with d ≠ 0.
- What is the relationship between the null space and uniqueness of solutions?The null space contains nonzero vectors if and only if the homogeneous system Ax = 0 has nontrivial solutions. If null(A) contains only the zero vector, then the solution to Ax = b (if it exists) is unique.
- What are the three conditions of the Subspace Test for a subset U of R^n?1) The zero vector is in U. 2) U is closed under addition: if u, v are in U, then u+v is in U. 3) U is closed under scalar multiplication: if u is in U and c is a real number, then cu is in U.
- Define the null space of a matrix A in R^{m x n}.null(A) = {x in R^n : Ax = 0}. It is a subspace of R^n consisting of all input vectors that A maps to the zero vector.
- Define the column space (image) of a matrix A in R^{m x n}.col(A) = im(A) = {Ax : x in R^n} = span{a_1, ..., a_n}, where a_i are the columns of A. It is a subspace of R^m consisting of all reachable outputs.
- How is the row space of a matrix A defined?row(A) = col(A^T). It is a subspace of R^n spanned by the rows of A.
- How do you find a basis for the row space of A from RREF(A)?The nonzero rows of RREF(A) form a basis for row(A).
- How do you find a basis for the column space of A from RREF(A)?Identify the pivot column indices in RREF(A), then take the corresponding columns of the original matrix A. These columns form a basis for col(A).
- How do you find a basis for the null space of A?Solve RREF(A)x = 0 in terms of the free variables. The n - r basic solution vectors (one for each free variable) form a basis for null(A), where r is the rank of A.
- State the Rank–Nullity Theorem for an m x n matrix A.rank(A) + nullity(A) = n, where rank(A) = dim(col(A)) = dim(row(A)) (number of pivot columns) and nullity(A) = dim(null(A)) (number of free variables).
- What does the rank of a matrix A represent in terms of its subspaces?rank(A) = dim(col(A)) = dim(row(A)). It equals the number of pivot columns in RREF(A).
- What does the nullity of a matrix A represent?nullity(A) = dim(null(A)). It equals the number of free variables in the solution to Ax = 0.
- In the context of a data matrix X in R^{n x d}, what does a nonzero vector z in null(X) represent?It represents an exact linear redundancy among features: Xz = 0. This means predictions Xw are unchanged along z, since X(w + tz) = Xw.
- Why is col(RREF(A)) not necessarily equal to col(A)?Row operations change the column relationships with respect to the output space, so the column space of RREF(A) is generally different from that of A. To get a basis for col(A), use pivot columns from the original matrix A.
- What is the dimension of the null space of an m x n matrix A in terms of its rank?dim(null(A)) = n - rank(A). This follows directly from the Rank–Nullity Theorem.
- If A is a 5 x 7 matrix with rank 3, what are the dimensions of the null space, column space, and row space?dim(null(A)) = 7 - 3 = 4. dim(col(A)) = rank(A) = 3. dim(row(A)) = rank(A) = 3.
- What is the relationship between the row space of A and the column space of A^T?row(A) = col(A^T). They are the same subspace.
- Explain why the nonzero rows of RREF(A) form a basis for the row space of A.Row operations do not change the row space, so row(A) = row(RREF(A)). The nonzero rows of RREF(A) are linearly independent and span the row space, hence form a basis.
- What does it mean for a square matrix A to be invertible?There exists a matrix A⁻¹ such that A⁻¹A = AA⁻¹ = Iₙ.
- What is the determinant of a 2×2 matrix [[a, b], [c, d]]?det = ad − bc.
- What is the inverse of a 2×2 matrix [[a, b], [c, d]]?A⁻¹ = (1/(ad−bc)) [[d, −b], [−c, a]], provided ad − bc ≠ 0.
- What is the determinant product rule?det(AB) = det(A)det(B).
- How does the determinant relate to the transpose?det(Aᵀ) = det(A).
- What is the determinant of an inverse matrix?det(A⁻¹) = 1/det(A).
- What does |det(A)| represent geometrically?It is the n-dimensional volume scaling factor of the linear transformation defined by A.
- How does swapping two rows affect the determinant?It flips the sign of the determinant.
- How does scaling one row by a constant c affect the determinant?It scales the determinant by c.
- How does scaling an entire n×n matrix by c affect its determinant?det(cA) = cⁿ det(A).
- How does adding a multiple of one row to another affect the determinant?It leaves the determinant unchanged.
- What is the relationship between invertibility and the determinant?An n×n matrix A is invertible if and only if det(A) ≠ 0.
- What is the relationship between invertibility and eigenvalues?A is invertible if and only if λ = 0 is not an eigenvalue of A.
- What is an open ball in \(\mathbb{R}^n\) centered at \(\mathbf{a}\) with radius \(r\)?The set \(B_r(\mathbf{a}) = \{\mathbf{x} \in \mathbb{R}^n : \|\mathbf{x} - \mathbf{a}\| < r\}\).
- What is an interior point of a set \(D\)?A point \(\mathbf{a}\) for which there exists \(r > 0\) such that \(B_r(\mathbf{a}) \subseteq D\).
- What is a boundary point of a set \(D\)?A point \(\mathbf{a}\) such that every ball \(B_r(\mathbf{a})\) intersects both \(D\) and its complement \(D^c\).
- What is a closed set?A set that contains all of its boundary points.
- What is a bounded set in \(\mathbb{R}^n\)?A set contained inside some ball \(B_R(\mathbf{0})\).
- What is the formula for the directional derivative of f at a in the direction of a unit vector u?D_u f(a) = lim_{t→0} [f(a + t u) - f(a)] / t = ∇f(a) · u = ||∇f(a)|| cos θ.
- Why must the direction vector u be a unit vector in the directional derivative?The directional derivative measures the rate of change per unit distance; using a non-unit vector would scale the rate incorrectly.
- In what direction does f increase most rapidly at a point a, and what is the maximum rate of increase?The steepest ascent direction is u = ∇f(a) / ||∇f(a)||, and the maximum rate of increase is ||∇f(a)||.
- What is the directional derivative of f in any direction tangent to the level set f(x) = c at a point a?It is zero: D_u f(a) = 0 for any tangent direction u, so the gradient ∇f(a) is orthogonal to the level set.
- What geometric relationship exists between the gradient ∇f(a) and the level set f(x) = c at a?The gradient is perpendicular (orthogonal) to the level set at a.
- Define a critical point of a differentiable function f at an interior point a.An interior point a is a critical point if ∇f(a) = 0.
- Is ∇f(a) = 0 a necessary or sufficient condition for a local extremum at an interior point a?It is necessary for a differentiable interior local extremum, but not sufficient; critical points can also be saddle points.
- What is the gradient descent update rule for minimizing a function f?w_{k+1} = w_k - η ∇f(w_k), where η > 0 is the learning rate.
- How is the directional derivative expressed in terms of the angle θ between ∇f(a) and the unit direction u?D_u f(a) = ||∇f(a)|| cos θ.
- What are the two directions of steepest ascent and steepest descent in terms of the gradient?Steepest ascent: u = +∇f(a)/||∇f(a)||; steepest descent: u = -∇f(a)/||∇f(a)||.
- What does it mean for a critical point to be a saddle point?It is a point where ∇f = 0 but the function does not have a local extremum there; it increases in some directions and decreases in others.
- What is an orthogonal basis for a subspace?A basis whose vectors are pairwise orthogonal (dot product zero) and nonzero. Such vectors are automatically linearly independent.
- If f₁,…,f_k is an orthogonal basis for U, what is the formula for the coordinates of x in U?x = Σ c_i f_i, where c_i = (x · f_i)/(f_i · f_i). If the basis is orthonormal, c_i = x · q_i.
- Define the orthogonal complement U⊥ of a subspace U.U⊥ = {r : r · u = 0 for all u in U}. It consists of all vectors orthogonal to every vector in U.
- For a matrix A, what is col(A)⊥?col(A)⊥ = null(Aᵀ). The orthogonal complement of the column space is the null space of the transpose.
- For a matrix A, what is row(A)⊥?row(A)⊥ = null(A). The orthogonal complement of the row space is the null space of A.
- State the orthogonal decomposition theorem for a vector b and subspace U.Every b decomposes uniquely as b = p + r, where p = proj_U b is in U and r = b − p is in U⊥.
- Give the formula for the projection of b onto U when f₁,…,f_k is an orthogonal basis for U.proj_U b = Σ [(b · f_i)/(f_i · f_i)] f_i. If Q has orthonormal columns spanning U, then proj_U b = Q Qᵀ b.
- Why is the projection p = proj_U b the unique closest vector in U to b?By the Pythagorean theorem, ‖b − u‖² = ‖b − p‖² + ‖p − u‖² for any u in U. Thus ‖b − u‖ is minimized uniquely when u = p.
- If Q has orthonormal columns, what is QᵀQ?QᵀQ = I_k, where k is the number of columns. This means the columns of Q are orthonormal.
- What does it mean for vectors to be orthonormal?They are pairwise orthogonal and each has unit length (norm 1).
- Why are the vectors in an orthogonal basis automatically linearly independent?If Σ c_i f_i = 0, taking the dot product with f_j gives c_j (f_j · f_j) = 0. Since f_j ≠ 0, c_j = 0 for all j.
- How do you compute the projection of b onto a one-dimensional subspace spanned by a nonzero vector f?proj b = [(b · f)/(f · f)] f. This is the component of b along f.
- What is the relationship between the orthogonal complement and the original subspace in terms of dimensions?If U is a subspace of ℝᵐ, then dim(U) + dim(U⊥) = m, and (U⊥)⊥ = U.
- What is the best approximation of b by a vector in U?It is the orthogonal projection p = proj_U b. It is the unique vector in U that minimizes the distance ‖b − u‖.
- If b is already in U, what is proj_U b?proj_U b = b. The residual r = b − p is zero.
- If b is orthogonal to U, what is proj_U b?proj_U b = 0. The entire vector b lies in U⊥.
- What are the normal equations for least squares?\(A^T A \widehat{\mathbf{x}} = A^T\mathbf{b}\).
- When is the least-squares coefficient vector \(\widehat{\mathbf{x}}\) unique?It is unique if and only if \(\operatorname{rank}(A) = n\), i.e., the columns of \(A\) are linearly independent.
- What is the residual vector in least squares, and what property does it always satisfy?The residual is \(\mathbf{r} = \mathbf{b} - A\widehat{\mathbf{x}}\). It always satisfies \(A^T\mathbf{r} = \mathbf{0}\), meaning it is orthogonal to the column space of \(A\).
- How is the fitted vector \(\widehat{\mathbf{b}}\) expressed using the reduced QR factorization?\(\widehat{\mathbf{b}} = QQ^T\mathbf{b}\).
- What is the geometric interpretation of the least-squares residual?It is the vector from the fitted point \(\widehat{\mathbf{b}}\) to \(\mathbf{b}\), and it is orthogonal to the column space of \(A\).
- What is the definition of an eigenvalue and eigenvector for a matrix A?λ is an eigenvalue with eigenvector v ≠ 0 if Av = λv, equivalently (A − λI)v = 0, equivalently det(A − λI) = 0.
- What is the eigenspace E_λ of a matrix A for eigenvalue λ?E_λ = null(A − λI), the set of all eigenvectors for λ plus the zero vector.
- If A = PDP^{-1}, what is A^k?A^k = P D^k P^{-1}.
- What does the Spectral Theorem say about the eigenvalues of a real symmetric matrix?Every real symmetric matrix has all real eigenvalues.
- What does the Spectral Theorem say about eigenvectors from distinct eigenspaces of a real symmetric matrix?Eigenvectors from distinct eigenspaces are automatically orthogonal.
- What does it mean for a matrix to be orthogonally diagonalizable?A is orthogonally diagonalizable if A = Q D Q^T where Q is orthogonal (Q^T Q = Q Q^T = I_n) and D is diagonal.
- State the spectral decomposition of a real symmetric matrix A.A = Q D Q^T = Σ_{i=1}^n λ_i q_i q_i^T, where q_i are orthonormal eigenvectors and λ_i are the corresponding eigenvalues.
- What condition on Q makes a diagonalization orthogonal?Q must satisfy Q^T Q = Q Q^T = I_n, i.e., Q is an orthogonal matrix.
- What is the characteristic equation used to find eigenvalues?det(A − λI) = 0.
- How can you compute A^k efficiently if A is diagonalizable?Diagonalize A = PDP^{-1}, then A^k = P D^k P^{-1}, where D^k is obtained by raising each diagonal entry to the k-th power.
- What does the equation Av = λv mean geometrically?The vector v is scaled by the factor λ under the linear transformation A; its direction is unchanged (or reversed if λ < 0).
- For a \(2\times 2\) symmetric matrix \(\begin{bmatrix} a & b \\ b & d \end{bmatrix}\), what conditions on \(\Delta = ad - b^2\) and \(a\) test for positive definiteness?\(\Delta = ad - b^2 > 0\) and \(a > 0\).
- A symmetric matrix \(A\) is positive semidefinite if and only if its eigenvalues satisfy what condition?All eigenvalues \(\lambda_i \ge 0\).
- A symmetric matrix \(A\) is negative definite if and only if its eigenvalues satisfy what condition?All eigenvalues \(\lambda_i < 0\).
- For a \(2\times 2\) symmetric matrix \(\begin{bmatrix} a & b \\ b & d \end{bmatrix}\), what conditions on \(\Delta = ad - b^2\) and \(a\) test for negative definiteness?\(\Delta = ad - b^2 > 0\) and \(a < 0\).
- When is a symmetric matrix \(A\) called indefinite, in terms of its eigenvalues?When it has at least one positive eigenvalue and at least one negative eigenvalue, so \(q_A(\mathbf{x})\) takes both positive and negative values.
- For a \(2\times 2\) symmetric matrix, what condition on \(\Delta = ad - b^2\) indicates the matrix is indefinite?\(\Delta = ad - b^2 < 0\).
- At an interior critical point \(\nabla f(\mathbf{a}) = \mathbf{0}\), what does it mean if all eigenvalues of the Hessian \(H_f(\mathbf{a})\) are positive?It is a strict local minimum.
- At an interior critical point \(\nabla f(\mathbf{a}) = \mathbf{0}\), what does it mean if all eigenvalues of the Hessian \(H_f(\mathbf{a})\) are negative?It is a strict local maximum.
- At an interior critical point, what does it mean if the Hessian \(H_f(\mathbf{a})\) has both positive and negative eigenvalues?It is a saddle point.
- At an interior critical point, what conclusion follows if the Hessian has zero eigenvalues but no eigenvalues of opposite signs (semidefinite but not definite)?The second derivative test is inconclusive.
- In two variables, with \(D = f_{xx}f_{yy} - f_{xy}^2\), what conditions indicate a local minimum at a critical point?\(D > 0\) and \(f_{xx} > 0\).
- In two variables, with \(D = f_{xx}f_{yy} - f_{xy}^2\), what conditions indicate a local maximum at a critical point?\(D > 0\) and \(f_{xx} < 0\).
- In two variables, with \(D = f_{xx}f_{yy} - f_{xy}^2\), what does \(D < 0\) indicate at a critical point?A saddle point.
- What is the geometric projection characterization of the least squares solution \(\widehat{\mathbf{x}}\)?\(A\widehat{\mathbf{x}} = \text{proj}_{\text{col}(A)}\mathbf{b}\), i.e., \(A\widehat{\mathbf{x}}\) is the orthogonal projection of \(\mathbf{b}\) onto the column space of \(A\).
- What orthogonality condition characterizes the least squares residual \(\mathbf{r} = \mathbf{b} - A\widehat{\mathbf{x}}\)?\(\mathbf{r} \perp \text{col}(A)\), equivalently \(A^T\mathbf{r} = \mathbf{0}\).
- Setting the gradient of \(L\) to zero yields what equation?The normal equations: \(A^T A \widehat{\mathbf{x}} = A^T\mathbf{b}\).
- Show that the Hessian \(2A^T A\) is positive semidefinite.For any \(\mathbf{z}\), \(\mathbf{z}^T H_L \mathbf{z} = 2\|A\mathbf{z}\|^2 \ge 0\), so \(H_L \succeq 0\).
- When is the least squares minimizer \(\widehat{\mathbf{x}}\) unique?When \(\text{rank}(A) = n\) (i.e., \(\text{null}(A) = \{\mathbf{0}\}\)); then \(H_L = 2A^T A \succ 0\) is strictly positive definite and \(\widehat{\mathbf{x}}\) is the unique global minimizer.
- What happens to the least squares solution when \(\text{rank}(A) < n\)?There is a zero-curvature flat valley: every vector in \(\widehat{\mathbf{x}} + \text{null}(A)\) achieves the exact same global minimum loss, so the minimizer is not unique.
- Why does \(\text{rank}(A) < n\) imply non-uniqueness of the least squares solution?There exists a nonzero \(\mathbf{z} \in \text{null}(A)\), and \(H_L\mathbf{z} = 2A^T A\mathbf{z} = \mathbf{0}\), giving zero curvature along \(\widehat{\mathbf{x}} + \text{null}(A)\) where the loss is constant.
- What do redundant features correspond to in the curvature view of least squares?Nonzero vectors \(\mathbf{z} \in \text{null}(A)\); these directions have zero curvature, creating a flat valley of equally optimal solutions.
- How do the geometric and calculus viewpoints of least squares connect?Both give the same condition: \(\mathbf{r} \perp \text{col}(A)\) (\(A^T\mathbf{r} = \mathbf{0}\)) is equivalent to \(\nabla L(\widehat{\mathbf{x}}) = \mathbf{0}\), which is \(A^T A \widehat{\mathbf{x}} = A^T\mathbf{b}\).
- What does the second-order curvature view tell you about the type of critical point at \(\widehat{\mathbf{x}}\)?Since \(H_L = 2A^T A \succeq 0\) everywhere, the loss is convex and any critical point is a global minimizer; if \(H_L \succ 0\) it is the unique global minimizer.
- What does the Extreme Value Theorem guarantee for a continuous function on a nonempty closed bounded set?It guarantees that the function attains its absolute maximum and minimum on that set.
- What is the maximum value of x^T B x over all unit vectors x, for a symmetric matrix B?The maximum is λ_max(B), the largest eigenvalue of B, attained at a unit eigenvector for λ_max.
- What is the minimum value of x^T B x over all unit vectors x, for a symmetric matrix B?The minimum is λ_min(B), the smallest eigenvalue of B, attained at a unit eigenvector for λ_min.
- For any matrix A, what is the maximum stretch max_{||x||=1} ||Ax||?It equals the largest singular value σ_1(A) = sqrt(λ_max(A^T A)).
- Why does max_{||x||=1} ||Ax|| equal sqrt(λ_max(A^T A))?Because ||Ax||^2 = x^T (A^T A) x, and A^T A is symmetric positive semidefinite, so the unit-sphere maximum of this quadratic form is λ_max(A^T A).
- In PCA, how is the covariance matrix C defined from the centered data matrix Z?C = (1/n) Z^T Z, where n is the number of data points and Z is the centered data matrix.
- What are the principal directions in PCA?They are the orthonormal eigenvectors v_1, ..., v_d of the covariance matrix C, ordered by decreasing eigenvalues.
- In PCA, what is the score matrix T_k for the first k principal components?T_k = Z V_k, where V_k = [v_1 ... v_k] contains the first k principal directions.
- In PCA, what is the reconstruction ź_k of the centered data using k components?ź_k = T_k V_k^T = Z V_k V_k^T.
- What fraction of total variation is captured by the first k principal components?(λ_1 + ... + λ_k) / (λ_1 + ... + λ_d), which also equals (σ_1^2 + ... + σ_k^2) / (σ_1^2 + ... + σ_r^2) using singular values of Z.
- How does PCA differ from linear regression in terms of the errors minimized?Linear regression minimizes vertical errors in a designated response variable y, while PCA minimizes orthogonal reconstruction distances to a subspace, treating all coordinates symmetrically.
- What is the singular value decomposition (SVD) of a matrix A of rank r?A = U Σ V^T = Σ_{i=1}^r σ_i u_i v_i^T, where σ_1 ≥ ... ≥ σ_r > 0 are the singular values, and U and V are orthogonal matrices.
- How are the singular values of A related to the eigenvalues of A^T A?The singular values are σ_i = sqrt(λ_i(A^T A)), the square roots of the eigenvalues of A^T A.
- In the SVD A = U Σ V^T, what are the columns of V and U?The columns of V are orthonormal eigenvectors of A^T A, and the columns of U are orthonormal eigenvectors of A A^T, satisfying A v_i = σ_i u_i for i ≤ r.
- Using the SVD, what is the column space of A?col(A) = span{u_1, ..., u_r}, the first r left singular vectors.
- Using the SVD, what is the null space of A?null(A) = span{v_{r+1}, ..., v_n}, the right singular vectors corresponding to zero singular values.
- Using the SVD, what is the row space of A?row(A) = span{v_1, ..., v_r}, the first r right singular vectors.
- Using the SVD, what is the left null space of A (null(A^T))?null(A^T) = span{u_{r+1}, ..., u_m}, the left singular vectors corresponding to zero singular values.
- If Z = U Σ V^T is the SVD of the centered data matrix Z, how are the eigenvalues of the covariance matrix C = (1/n)Z^T Z expressed?They are λ_i = σ_i^2 / n, where σ_i are the singular values of Z.
- If Z = U Σ V^T, what are the principal directions of PCA in terms of the SVD of Z?They are the right singular vectors v_i of Z, i.e., the columns of V.
- If Z = U Σ V^T, what is the score matrix T_k in terms of the SVD?T_k = Z V_k = U_k Σ_k, where U_k and Σ_k contain the first k columns of U and the first k singular values.
- What is the dimension of the matrix space \(M_{m,n}\)?The dimension is \(mn\).
- What is the standard basis for \(M_{m,n}\)?The standard basis consists of the matrices \(E_{ij}\), where entry \((i,j)\) is 1 and all other entries are 0.
- What is the dimension of the polynomial space \(\mathcal{P}_{\le d}\)?The dimension is \(d + 1\).
- What is the standard basis for \(\mathcal{P}_{\le d}\)?The standard basis is \(\mathcal{B} = (1, x, x^2, \dots, x^d)\).
- For \(p(x) = c_0 + c_1 x + \cdots + c_d x^d\), what is its coordinate vector relative to the standard basis of \(\mathcal{P}_{\le d}\)?\([p]_{\mathcal{B}} = (c_0, c_1, \dots, c_d)^T \in \mathbb{R}^{d+1}\).
- How many entries does a matrix in \(M_{m,n}\) have, and how does that relate to its dimension?A matrix in \(M_{m,n}\) has \(mn\) entries, and the dimension of \(M_{m,n}\) is \(mn\).
- What does the matrix \(E_{ij}\) look like in the standard basis of \(M_{m,n}\)?\(E_{ij}\) has a 1 in entry \((i,j)\) and 0 in all other entries.
- What is the coordinate vector of a polynomial in \(\mathcal{P}_{\le d}\) relative to the standard basis?It is the column vector of the polynomial's coefficients, ordered from the constant term up to the \(x^d\) coefficient.
- What are the three axioms of a real inner product on a vector space V?Symmetry: ⟨u,v⟩ = ⟨v,u⟩; linearity in the first argument: ⟨au+bw,v⟩ = a⟨u,v⟩ + b⟨w,v⟩; positive definiteness: ⟨v,v⟩ ≥ 0 with equality iff v = 0.
- What is the Frobenius inner product of two matrices A and B?⟨A,B⟩ = Tr(AᵀB) = Σᵢⱼ aᵢⱼ bᵢⱼ.
- Define the coefficient inner product on the polynomial space P≤d.For p(x) = Σⱼ aⱼxʲ and q(x) = Σⱼ bⱼxʲ, ⟨p,q⟩coef = Σⱼ₌₀ᵈ aⱼbⱼ.
- Define the continuous L²[a,b] inner product for functions f and g.⟨f,g⟩L²[a,b] = ∫ₐᵇ f(x)g(x) dx.
- What are the Gram normal equations for projecting f onto U = span(φ₀, …, φₘ)?Gc = b, where Gᵢⱼ = ⟨φⱼ, φᵢ⟩ and bᵢ = ⟨f, φᵢ⟩; the projection is q = Σⱼ cⱼφⱼ.
- If (φ₀, …, φₘ) is an orthogonal basis, what is the formula for the projection of f onto their span?q = Σⱼ₌₀ᵐ (⟨f, φⱼ⟩ / ⟨φⱼ, φⱼ⟩) φⱼ, because the Gram matrix is diagonal.
- What defines the Taylor polynomial Tₘf(x) of degree m at x = a?Tₘf(x) = Σⱼ₌₀ᵐ (f⁽ʲ⁾(a) / j!) (x − a)ʲ; it is a purely local approximation at a, with (f − Tₘf)⁽ʲ⁾(a) = 0 for 0 ≤ j ≤ m.
- What does the continuous L²[a,b] least-squares polynomial q_L² minimize, and what orthogonality condition does its residual satisfy?It minimizes ∫ₐᵇ (f(x) − q(x))² dx over polynomials of degree ≤ m; the residual r = f − q_L² satisfies ∫ₐᵇ xᵏ r(x) dx = 0 for 0 ≤ k ≤ m.
- What does the sampled least-squares polynomial q_sample minimize, and what condition does its residual satisfy?It minimizes Σᵢ₌₁ᴺ (f(xᵢ) − q(xᵢ))² = ‖Ac − y‖²; the residual r satisfies Aᵀr = 0, equivalently Σᵢ₌₁ᴺ xᵢᵏ rᵢ = 0 for 0 ≤ k ≤ m.
- How do Taylor, continuous L², and sampled least-squares approximations differ in their scope?Taylor is local at a point a; continuous L² is global over an interval [a,b]; sampled least-squares is discrete over sample points x₁, …, x_N.
- What is the formula for cosine similarity between vectors u and v?cosim(u, v) = (u·v) / (‖u‖‖v‖), the dot product divided by the product of their norms.
- When is an affine map F(x) = Ax + b linear?It is linear if and only if b = 0, reducing it to F(x) = Ax.
- How is the general solution set of Ax = b expressed?{x : Ax = b} = x_p + null(A), where x_p is any particular solution and null(A) is the null space of A.
- State the Rank–Nullity theorem.rank(A) + nullity(A) = n, where n is the number of columns of A.
- What is the Jacobian matrix J_F of a function F: R^n → R^m?J_F = [∂F_i/∂x_j], an m×n matrix of partial derivatives.
- Give the first-order (local linearization) approximation of F near a.F(a + h) ≈ F(a) + J_F(a)h.
- State the chain rule for Jacobians of a composition G∘F.J_{G∘F}(a) = J_G(F(a)) · J_F(a).
- What is the directional derivative D_u f(a) for a unit vector u?D_u f(a) = ∇f(a)·u, the dot product of the gradient with the unit direction u.
- Write the gradient descent update rule.w_{k+1} = w_k − η ∇L(w_k), where η is the learning rate.
- What is the normal equations characterization of the least-squares solution x̂?A^T A x̂ = A^T b, equivalently A^T r = 0 where r = b − Ax̂.
- How is the least-squares projection b̂ expressed using Q from a QR factorization?b̂ = proj_{col(A)} b = QQ^T b, and R x̂ = Q^T b.
- State the Spectral Theorem for symmetric matrices.A symmetric matrix can be written A = QDQ^T, with Q orthogonal and D diagonal of eigenvalues.
- Express the quadratic form x^T A x in terms of eigenvalues.x^T A x = Σ λ_i y_i², where y_i are coordinates in the eigenbasis.
- Give the second-order Taylor approximation of f at a.f(a + h) ≈ f(a) + ∇f(a)^T h + (1/2) h^T H_f(a) h.
- What are the gradient and Hessian of L(x) = ‖Ax − b‖²?∇L(x) = 2A^T(Ax − b) and H_L = 2A^T A, which is positive semidefinite.
- What condition must the vector u satisfy in the directional derivative D_u f(a) = ∇f(a)·u?u must be a unit vector, i.e., ||u|| = 1. If given a non-unit direction v, normalize it as u = v/||v|| first.
- At a least-squares solution, what is true about the residual r = b − A x̂?The residual is orthogonal to col(A), so A^T r = 0. It is not necessarily the zero vector unless b lies in col(A).
- When can the Hessian second derivative test classify a point a as a local extremum or saddle point?Only after verifying that ∇f(a) = 0. If ∇f(a) ≠ 0, the linear term dominates and a is neither a local min, local max, nor saddle point.
Velocer miễn phí: ôn tập ngắt quãng và thẻ của riêng bạn từ bất kỳ tài liệu nào.
PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import
Thêm bộ thẻ của University of Wisconsin–Madison
- Math 234 - every chapter (multivariable calc)
- MATH 535: Math Methods in Data Science · UW-Madison
- comp sci 240 midterm 1
- comp sci 240 midterm 2
- COMP SCI 240 Midterm 3
- COMP SCI 240 Final
- comp sci 300 full course review
- PSYCH 202 Exam 1 Review
- PSYCH 202 Exam 2 Review
- PSYCH 202 Exam 3 Review
- STAT 441: Advanced Sports Analytics · UW-Madison
- ECE 752: Advanced Computer Architecture I · UW-Madison