Velocer › 플래시카드 › University of Wisconsin–Madison › MATH 535: Math Methods in Data Science · UW-Madison
MATH 535: Math Methods in Data Science · UW-Madison
Cards from the MATH 535 lectures. · gradient_gecko 작성 · 292개 카드
- What is the Eckart–Young–Mirsky theorem about?It characterizes the best low-rank approximation of a matrix, which is obtained via truncated SVD.
- What does the Courant–Fischer theorem describe?It characterizes the eigenvalues of symmetric matrices as min-max or max-min values of the Rayleigh quotient.
- What does Cheeger's inequality relate?It relates the Cheeger constant (edge expansion) of a graph to the spectral gap of its Laplacian.
- What is a Stochastic Blockmodel used for?It is a random graph model for community structure, used in spectral graph theory and network analysis.
- What is m-strong convexity?A strengthened convexity condition where f(y) ≥ f(x) + ∇f(x)ᵀ(y−x) + (m/2)‖y−x‖², yielding faster convergence rates.
- What does L-smoothness mean for a function?Its gradient is L-Lipschitz, i.e., ‖∇f(x) − ∇f(y)‖ ≤ L‖x − y‖, which bounds function curvature.
- What is reverse-mode automatic differentiation used for?Computing gradients efficiently through computational graphs; it is the basis of backpropagation in neural networks.
- What is an exponential family?A class of probability distributions whose density can be written as h(x)exp(ηᵀT(x) − A(η)), underlying GLMs.
- What does the EM algorithm do?It iteratively maximizes a lower bound on the log-likelihood to fit latent-variable models such as mixture models.
- What role do Schur complements play in Kalman filtering?They enable efficient block matrix inversion and marginalization in Linear–Gaussian state-space models.
- What does the Perron–Frobenius theorem guarantee?For a positive (or irreducible nonnegative) matrix, there is a unique largest positive eigenvalue with a positive eigenvector.
- What is coupling used for in Markov chain theory?It proves convergence to stationarity by constructing two chains that meet, bounding the mixing time.
- What is PageRank?A Markov chain stationary distribution over web pages, computed from a random-surfer transition matrix.
- What is the Metropolis–Hastings algorithm?A Markov Chain Monte Carlo method that accepts or rejects proposed samples to target a desired distribution.
- What is Gibbs sampling?An MCMC method that updates each variable from its conditional distribution given the others.
- What is a Restricted Boltzmann Machine?A bipartite undirected graphical model with visible and hidden units, often trained with contrastive divergence.
- What is KL divergence?A nonnegative measure of the difference between two probability distributions, not symmetric in its arguments.
- What is a directed graphical model?A Bayesian network representing conditional dependencies among variables via a directed acyclic graph.
- What is the purpose of Householder QR factorization?It computes an orthogonal-triangular decomposition used to solve least-squares problems stably.
- What is the Euclidean dot product of vectors u and v in R^d?⟨u, v⟩ = u^T v = Σ_{i=1}^d u_i v_i.
- How is the ℓ2-norm of a vector u defined?‖u‖_2 = √(u^T u).
- State the Cauchy–Schwarz inequality for vectors u and v in R^d.|⟨u, v⟩| ≤ ‖u‖_2 ‖v‖_2, with equality if and only if u and v are collinear.
- What does the Cauchy–Schwarz inequality imply about the cosine of the angle between two nonzero vectors?It guarantees that cos θ = ⟨u, v⟩ / (‖u‖_2 ‖v‖_2) lies in [-1, 1].
- State the triangle inequality for the ℓ2-norm.‖u + v‖_2 ≤ ‖u‖_2 + ‖v‖_2.
- What is the Pythagorean theorem for orthogonal vectors u and v?If u ⟂ v (i.e., ⟨u, v⟩ = 0), then ‖u + v‖_2^2 = ‖u‖_2^2 + ‖v‖_2^2.
- What does the Extreme Value Theorem (EVT) state?Every continuous function f: [a, b] → ℝ on a compact (closed and bounded) interval attains its global minimum and global maximum.
- State the Mean Value Theorem (MVT).If f is continuous on [a,b] and differentiable on (a,b), then there exists ξ ∈ (a,b) such that f(b) - f(a) = f'(ξ)(b - a).
- Give the second-order Taylor expansion with Lagrange remainder for f ∈ C^2[a,b].For any x, x_0 ∈ (a,b), there exists ξ between x_0 and x such that f(x) = f(x_0) + f'(x_0)(x - x_0) + (1/2)f''(ξ)(x - x_0)^2.
- What does k-means clustering aim to minimize?The Within-Cluster Sum of Squares (WCSS): the sum over clusters of squared Euclidean distances from each point to its cluster centroid.
- In the matrix factorization view of k-means, what are X, Z, and U?X is the n×d data matrix (points as rows), Z is the n×k binary cluster indicator matrix (one 1 per row), and U is the k×d matrix of centroids as rows. k-means minimizes ||X − ZU||_F^2 over Z and U.
- What is the Centroid Optimality Lemma?For a cluster C_i, the sum of squared distances to any point z equals the sum of squared distances to the sample mean plus |C_i| times the squared distance from the mean to z. Thus the unique minimizer is the sample mean.
- Why does the sample mean minimize the sum of squared distances within a cluster?Expanding each squared distance around the sample mean produces a cross-term that vanishes by the definition of the mean, leaving only nonnegative terms. The minimum is achieved uniquely when z equals the sample mean.
- What are the two steps of Lloyd's algorithm for k-means?1) Assignment step: assign each point to the nearest centroid. 2) Centroid update step: set each centroid to the mean of its assigned points.
- In Lloyd's algorithm, what happens during the assignment step?With centroids fixed, each data point is assigned to the cluster whose centroid is nearest in Euclidean distance, i.e., to its Voronoi cell.
- In Lloyd's algorithm, what happens during the centroid update step?With cluster assignments fixed, each centroid is recomputed as the center of mass (sample mean) of the points currently assigned to it.
- Why is k-means joint optimization over clusters and centroids hard?Jointly minimizing the WCSS over both cluster assignments and centroids is NP-hard, so Lloyd's algorithm is a heuristic that alternates exact coordinate minimizations.
- Does Lloyd's algorithm guarantee finding the global optimum?No. It converges monotonically to a local minimum, so random restarts or k-means++ seeding are used to improve results.
- Why does Lloyd's algorithm converge in finitely many steps?Each step cannot increase the objective, and there are at most k^n possible partitions, so the objective value stabilizes after finitely many iterations.
- What is the WCSS formula for k-means?G(C, μ) = Σ_{i=1}^k Σ_{j∈C_i} ||x_j − μ_i||_2^2, where C_i are clusters and μ_i their centroids.
- What does the cluster indicator matrix Z look like in the matrix formulation of k-means?Z ∈ {0,1}^{n×k}, with Z_{ji}=1 if and only if point j belongs to cluster i, and each row contains exactly one 1.
- What is the role of the centroid matrix U in the matrix factorization view of k-means?U ∈ R^{k×d} stacks the centroid vectors as rows, so that ZU gives each data point's assigned centroid, and k-means minimizes ||X − ZU||_F^2.
- What is a Voronoi cell in the context of k-means?The region of space containing all points closer to a given centroid than to any other centroid. In the assignment step, each point is assigned to the centroid of its Voronoi cell.
- What is k-means++ used for?It is a seeding method for choosing initial centroids to improve the quality of Lloyd's algorithm and reduce the chance of poor local minima.
- What two conditions must a subset U of R^n satisfy to be a linear subspace?U must contain the zero vector (0 ∈ U) and be closed under linear combinations.
- What is the column space of a matrix A ∈ R^{n×m}?col(A) = {Ax : x ∈ R^m}, the set of all linear combinations of the columns of A.
- How is the rank of a matrix A defined in terms of its column space?rk(A) = dim(col(A)), the dimension of the column space.
- If Q = [q_1 ⋯ q_k] has orthonormal columns, what equation characterizes Q?Q^T Q = I_k.
- State the orthonormal expansion (Parseval) formula for u ∈ U with orthonormal basis (q_1, …, q_k).u = Σ_{j=1}^k ⟨u, q_j⟩ q_j = QQ^T u.
- For u in a subspace with orthonormal basis, how does ‖u‖_2^2 relate to its coordinates?‖u‖_2^2 = Σ_{j=1}^k |⟨u, q_j⟩|^2 (Parseval's identity).
- Give the formula for the orthogonal projection of b onto a subspace U with orthonormal basis matrix Q.p = proj_U(b) = Σ_{j=1}^k ⟨b, q_j⟩ q_j = QQ^T b.
- What is the key orthogonality property of the residual r = b − p in orthogonal projection?The residual r = b − p is orthogonal to every vector in U, i.e., r ∈ U^⊥ (equivalently Q^T(b − QQ^T b) = 0).
- Why is p = proj_U(b) the unique best approximation to b in U?For every u ∈ U, ‖b − u‖_2^2 = ‖b − p‖_2^2 + ‖p − u‖_2^2 ≥ ‖b − p‖_2^2, with strict inequality when u ≠ p.
- State the orthogonal decomposition lemma for a subspace U ⊆ R^n.R^n = U ⊕ U^⊥: every b decomposes uniquely as b = p + r with p ∈ U and r ∈ U^⊥, and dim(U) + dim(U^⊥) = n.
- What does the notation U^⊥ denote for a subspace U?The orthogonal complement of U: the set of all vectors orthogonal to every vector in U.
- If (q_1, …, q_k) is an orthonormal basis of U, what is the matrix Q and what property does it satisfy?Q = [q_1 ⋯ q_k] ∈ R^{n×k} with orthonormal columns, satisfying Q^T Q = I_k.
- Do all bases of a subspace U have the same cardinality? What is that cardinality called?Yes; all bases of U have the same cardinality, which is dim(U), the dimension of U.
- In the best approximation inequality, what role does the Pythagorean theorem play?Since b − p ⊥ p − u ∈ U, the Pythagorean theorem gives ‖b − u‖_2^2 = ‖b − p‖_2^2 + ‖p − u‖_2^2, proving p minimizes distance to b.
- What is the geometric interpretation of the linear least squares problem?Finding x* that minimizes ||Ax - b||_2^2 is equivalent to finding the closest vector p = Ax* in the column space of A to b, i.e., p is the orthogonal projection of b onto col(A).
- What condition characterizes the least squares solution x* in terms of the residual?The residual b - Ax* must be orthogonal to col(A), which is equivalent to A^T(Ax* - b) = 0.
- What are the normal equations for linear least squares?A^T A x* = A^T b.
- When is the matrix A^T A invertible?A^T A is invertible if and only if A has full column rank (rank(A) = m), meaning the columns of A are linearly independent.
- Why does full column rank of A imply A^T A is invertible?If A^T A x = 0, then x^T A^T A x = ||Ax||_2^2 = 0, so Ax = 0, and full column rank forces x = 0; hence A^T A is nonsingular.
- What does Gram–Schmidt applied to the columns of A produce?It produces orthonormal vectors q_1, ..., q_m from the independent columns a_1, ..., a_m of A, yielding the reduced QR decomposition A = QR.
- In the reduced QR decomposition A = QR, what are the properties of Q and R?Q is n×m with orthonormal columns (Q^T Q = I_m), and R is m×m upper triangular with positive diagonal entries r_jj > 0.
- How is the least squares solution obtained from the QR decomposition?Substituting A = QR into the normal equations gives R x* = Q^T b, an upper-triangular system solved by back-substitution.
- Why does the QR approach avoid forming A^T A?Because R x* = Q^T b is derived using Q^T Q = I_m and R^T invertible, so A^T A is never explicitly computed.
- What is the key advantage of solving least squares via QR factorization compared to normal equations?QR avoids forming A^T A, which can worsen conditioning, and solves an upper-triangular system directly, often leading to better numerical stability.
- What is the projection of b onto col(A) in least squares?It is p = A x*, where x* solves the normal equations; equivalently p = Q Q^T b using the reduced QR factorization.
- What is the null space of A^T in relation to col(A)?null(A^T) is the orthogonal complement of col(A), i.e., col(A)^⊥ = null(A^T).
- What are the Gram–Schmidt formulas for computing q_j and r_ij?v_j = a_j - Σ_{i=1}^{j-1} <a_j, q_i> q_i, r_ij = <a_j, q_i>, r_jj = ||v_j||_2, and q_j = v_j / r_jj.
- What does the condition b - Ax* ∈ null(A^T) mean geometrically?It means the residual is orthogonal to the column space of A, which is the defining property of the least squares solution.
- Why does forming the normal equations A^T A lead to numerical instability?It squares the condition number: κ(A^T A) = κ(A)^2, causing loss of about half the significant digits, especially for nearly collinear features.
- What numerical problem does classical Gram–Schmidt suffer from?Loss of orthogonality due to subtractive cancellation when a column is nearly in the span of previous orthogonal vectors.
- Define the Householder reflector for a unit vector z.H = I_n - 2 z z^T, which reflects vectors across the hyperplane span(z)^⊥.
- How do you choose the Householder vector v to reflect x onto ±||x||_2 e_1?Set v = x + sign(x_1)||x||_2 e_1, choosing the sign to avoid catastrophic cancellation in the first coordinate.
- After choosing v, how is the unit normal vector z computed for a Householder reflection?z = v / ||v||_2.
- What is the result of applying Householder reflections H_1,...,H_m to A from the left?H_m ... H_1 A = [R; 0], where R is upper triangular, yielding the full QR factorization A = (H_1 ... H_m)[R; 0].
- What is the condition number relationship between A^T A and A?κ(A^T A) = κ(A)^2.
- What does a Householder reflector do geometrically?It reflects a vector across the hyperplane perpendicular to z, i.e., span(z)^⊥.
- Why is the sign choice in v = x + sign(x_1)||x||_2 e_1 important?It avoids catastrophic cancellation in the first coordinate by adding quantities of the same sign.
- What is the gradient of a function f: R^d → R?The vector of first partial derivatives: ∇f(x) = (∂f/∂x₁, …, ∂f/∂x_d)^T ∈ R^d.
- How is the directional derivative of f along a unit vector v expressed using the gradient?∂f/∂v(x) = g'(0) = ∇f(x)^T v, where g(t) = f(x + tv).
- Which direction corresponds to steepest ascent and steepest descent for a differentiable function?∇f(x) points in the direction of steepest ascent; −∇f(x) points in the direction of steepest descent.
- What is the Hessian matrix of f: R^d → R?The d×d matrix of second partial derivatives: H_f(x) = [∂²f/∂x_i∂x_j(x)]_{i,j=1}^d.
- Why is the Hessian symmetric when f ∈ C²?Clairaut's Theorem guarantees equality of mixed partials, so H_f(x) is symmetric.
- State the multivariable second-order Taylor expansion of f around x with step p.f(x+p) = f(x) + ∇f(x)^T p + ½ p^T H_f(x+ξp) p for some ξ ∈ (0,1).
- What does the Descent Direction Lemma state?If ∇f(x₀)^T v < 0, then f(x₀ + αv) < f(x₀) for all sufficiently small α > 0.
- State the First-Order Necessary Condition (FONC) for a local minimizer on an open set.Any local minimizer x* must be a stationary point: ∇f(x*) = 0.
- State the Second-Order Necessary Condition (SONC) for a local minimizer.If x* is a local minimizer, then ∇f(x*) = 0 and H_f(x*) ⪰ 0 (positive semidefinite).
- State the Second-Order Sufficient Condition (SOSC) for a strict local minimizer.If ∇f(x*) = 0 and H_f(x*) ≻ 0 (strictly positive definite), then x* is a strict local minimizer.
- Define convexity of a function f on a convex set D.f is convex if f((1−λ)x + λy) ≤ (1−λ)f(x) + λf(y) for all x, y ∈ D and λ ∈ [0,1].
- Give the first-order (supporting hyperplane) characterization of convexity for f ∈ C¹.f is convex ⇔ f(y) ≥ f(x) + ∇f(x)^T(y − x) for all x, y.
- Why is every stationary point of a convex function a global minimizer?By the first-order characterization, if ∇f(x*) = 0 then f(y) ≥ f(x*) for all y, so x* is a global minimizer.
- Give the second-order characterization of convexity for f ∈ C².f is convex ⇔ H_f(x) ⪰ 0 for all x.
- Define m-strong convexity (m > 0) via the Hessian.f is m-strongly convex ⇔ H_f(x) ⪰ mI_d for all x.
- State the inequality characterizing m-strong convexity for all x, y.f(y) ≥ f(x) + ∇f(x)^T(y − x) + (m/2)‖y − x‖₂².
- What does strong convexity guarantee about the minimizer?It guarantees a unique global minimizer x*, and f grows at least quadratically away from it.
- What is the gradient descent iteration rule?x^{t+1} = x^t - α ∇f(x^t), where α > 0 is the step size (learning rate).
- What does it mean for a C² function f to be L-smooth?Its Hessian eigenvalues lie in [-L, L] (i.e., -L·I ⪯ H_f(x) ⪯ L·I), equivalently ‖∇f(y) - ∇f(x)‖₂ ≤ L‖y - x‖₂.
- State the quadratic upper bound lemma for an L-smooth function.For all x, y: f(y) ≤ f(x) + ∇f(x)ᵀ(y - x) + (L/2)‖y - x‖₂², derived from a second-order Taylor expansion.
- What is the Fundamental Descent Lemma inequality for gradient descent with step size α?f(x^{t+1}) ≤ f(x^t) - α(1 - αL/2)‖∇f(x^t)‖₂².
- What is the optimal fixed step size for gradient descent on an L-smooth function, and why?α* = 1/L, because it minimizes the right-hand side of the descent lemma over α.
- What single-step decrease does gradient descent guarantee when α = 1/L?f(x^{t+1}) ≤ f(x^t) - (1/(2L))‖∇f(x^t)‖₂².
- What convergence rate does gradient descent achieve for general L-smooth (possibly non-convex) functions?O(1/√S) stationarity: min_{0≤t<S} ‖∇f(x^t)‖₂ ≤ √(2L(f(x⁰) - f_min)/S).
- How is the O(1/√S) stationarity bound for non-convex L-smooth functions proven?Telescope (1/(2L))‖∇f(x^t)‖₂² ≤ f(x^t) - f(x^{t+1}) from t=0 to S-1 and use f(x^S) ≥ f_min.
- State the Polyak–Łojasiewicz (PL) inequality.‖∇f(x)‖₂² ≥ 2m(f(x) - f(x*)), which follows from minimizing the strong-convexity quadratic lower bound over y.
- What convergence rate does gradient descent achieve for an m-strongly convex and L-smooth function?Linear (geometric) convergence: f(x^S) - f(x*) ≤ (1 - m/L)^S (f(x⁰) - f(x*)).
- How is the linear convergence rate derived for strongly convex, L-smooth functions?Substitute the PL inequality into the descent lemma to get f(x^{t+1}) - f(x*) ≤ (1 - m/L)(f(x^t) - f(x*)), then apply induction.
- What is the condition number κ of an objective, and what is its range?κ = L/m, the ratio of smoothness to strong convexity parameters; κ ≥ 1.
- How does the condition number κ affect the convergence rate of gradient descent?The contraction factor is 1 - m/L = 1 - 1/κ, so larger κ (worse conditioning) means slower convergence.
- What is the logistic sigmoid function?σ(z) = 1 / (1 + e^{-z}). It maps real numbers to (0,1) and satisfies σ(-z) = 1 - σ(z).
- What is the derivative of the logistic sigmoid?σ'(z) = σ(z)(1 - σ(z)), which lies in (0, 1/4].
- In logistic regression, how is the probability of a positive label modeled?P(b_i = 1 | α_i; x) = σ(α_i^T x), where σ is the logistic sigmoid.
- Write the cross-entropy (negative log-likelihood) loss for logistic regression.ℓ(x) = -(1/n) Σ_i [b_i log σ(α_i^T x) + (1 - b_i) log(1 - σ(α_i^T x))].
- What is the gradient of the logistic regression cross-entropy loss?∇ℓ(x) = -(1/n) Σ_i (b_i - σ(α_i^T x)) α_i.
- What is the Hessian of the logistic regression cross-entropy loss?H_ℓ(x) = (1/n) Σ_i σ(α_i^T x)(1 - σ(α_i^T x)) α_i α_i^T.
- Why is the logistic regression cross-entropy loss convex?Its Hessian is a non-negative sum of rank-1 PSD matrices α_i α_i^T, so H_ℓ(x) ⪰ 0.
- What is the smoothness constant bound L for the logistic regression loss?L ≤ (1/(4n)) Σ_i ||α_i||_2^2, since σ(z)(1 - σ(z)) ≤ 1/4.
- How does adding ℓ2-regularization affect the logistic regression objective?It adds (μ/2)||x||_2^2, shifting the Hessian by +μI_d and making the objective μ-strongly convex.
- For a matrix A in R^(n×m), what is the orthogonal complement of the column space col(A)?col(A)^⊥ = null(A^T), a subspace of R^n.
- For a matrix A in R^(n×m), what is the orthogonal complement of the row space row(A)?row(A)^⊥ = null(A), a subspace of R^m.
- State the rank–nullity theorem for a matrix A in R^(n×m).rk(A) + nullity(A) = m, where m is the number of columns.
- How does the rank of A compare to the rank of its transpose A^T?They are equal: rk(A) = rk(A^T).
- What does the Spectral Theorem guarantee for a real symmetric matrix B = B^T in R^(m×m)?It has m real eigenvalues λ1 ≥ λ2 ≥ … ≥ λm and an orthonormal basis of eigenvectors v1, …, vm.
- Give the eigendecomposition form of a real symmetric matrix B guaranteed by the Spectral Theorem.B = VΛV^T = Σ_{j=1}^m λj vj vj^T, with V^T V = V V^T = I_m.
- In constructing the SVD greedily, what optimization problem defines the j-th right singular vector vj?vj maximizes ‖Av‖₂ over unit vectors v that are orthogonal to v1, …, v_{j-1}.
- In the greedy SVD construction, how are the singular value σj and left singular vector uj defined from vj?σj = ‖A vj‖₂ > 0 and uj = (1/σj) A vj.
- Why are the left singular vectors u1, …, ur automatically orthonormal in the greedy SVD construction?Because ⟨A vi, A vj⟩ = vi^T (A^T A vj) = σj² vi^T vj = 0 for i ≠ j, since the vi are orthonormal.
- Minimizing the projection residual of the rows of A onto a k-dimensional subspace W is equivalent to what maximization problem?Maximizing the projected variance Σ_{j=1}^k ‖A vj‖₂² over an orthonormal basis of W.
- How many nonzero singular values does a matrix A of rank r have in the greedy SVD construction?Exactly r, one for each j = 1, …, r = rk(A).
- What are the dimensions of the right singular vectors vj and left singular vectors uj for A in R^(n×m)?vj ∈ R^m (right singular vectors) and uj ∈ R^n (left singular vectors).
- In the Spectral Theorem expansion B = Σ λj vj vj^T, what are the matrices vj vj^T?Rank-one orthogonal projection matrices onto the eigenvector directions vj.
- What is the difference between the compact and full SVD of a matrix A?Compact SVD: A = U_r Σ_r V_r^T, where U_r is n×r, Σ_r is r×r, V_r is m×r, and r = rank(A). Full SVD: A = U Σ V^T, where U is n×n, Σ is n×m, and V is m×m, including bases for null spaces.
- From the full SVD, what are the fundamental subspaces of A?col(A) = span(u_1,...,u_r), null(A^T) = span(u_{r+1},...,u_n), row(A) = span(v_1,...,v_r), null(A) = span(v_{r+1},...,v_m).
- How are the singular values of A related to the eigenvalues of A^T A?The singular values satisfy σ_j = sqrt(λ_j(A^T A)), where λ_j(A^T A) are the eigenvalues of A^T A in descending order.
- What is the Gram matrix relation for A^T A in terms of the SVD?A^T A = V (Σ^T Σ) V^T = Σ_{j=1}^r σ_j^2 v_j v_j^T.
- What does power iteration on B = A^T A compute, and under what condition does it converge?It computes the dominant eigenvector v_1 of B (the top right singular vector of A). It converges if there is a strict spectral gap σ_1 > σ_2, at a geometric rate (σ_2/σ_1)^{2k}.
- What is the limit of the power iteration sequence x_k = B^k x_0 / ||B^k x_0||_2 for B = A^T A?It converges to sign(c_1) v_1, where c_1 = <x_0, v_1> ≠ 0, provided σ_1 > σ_2.
- How can deflation be used to find the top k singular triplets after finding the first?After finding (σ_1, u_1, v_1), form A' = A - σ_1 u_1 v_1^T and apply the same method to A' to find the next triplet, repeating for k triplets.
- What is orthogonal iteration and why is it used?Orthogonal iteration applies power iteration to a block of vectors and orthogonalizes them (e.g., via QR) to extract the top k singular triplets simultaneously, avoiding loss of orthogonality.
- What are the steps of PCA on a data matrix X ∈ R^{n×d}?1. Center the data: Y = X - 1 μ^T, where μ is the column mean. 2. Compute the SVD of Y (or eigendecomposition of covariance S = (1/(n-1)) Y^T Y). 3. Use the top k right singular vectors as principal component directions.
- In PCA, what are the principal component directions (loadings) and principal component scores?The columns v_1,...,v_k of V_k are the principal component directions (loadings). The rows of T_k = Y V_k = U_k Σ_k are the k-dimensional principal component scores.
- How is the rank-k reconstruction of the original data obtained in PCA?The rank-k reconstruction in original coordinates is X̂_k = 1 μ^T + Y V_k V_k^T.
- How is the proportion of variance explained by the first k principal components computed?It is (Σ_{j=1}^k σ_j^2) / (Σ_{j=1}^r σ_j^2) = (Σ_{j=1}^k λ_j(S)) / tr(S), where S is the sample covariance matrix.
- What is the induced 2-norm (spectral norm) of a matrix A?||A||_2 = max_{||x||_2=1} ||A x||_2 = σ_1, the largest singular value.
- What is the Frobenius norm of a matrix A in terms of its singular values?||A||_F = sqrt(Σ_{i,j} A_{ij}^2) = sqrt(tr(A^T A)) = sqrt(Σ_{j=1}^r σ_j^2).
- State the Eckart–Young–Mirsky theorem for the spectral norm.For any 1 ≤ k < r, the truncated SVD A_k = Σ_{j=1}^k σ_j u_j v_j^T is the best rank-k approximation in the spectral norm: min_{rank(B)≤k} ||A - B||_2 = ||A - A_k||_2 = σ_{k+1}.
- State the Eckart–Young–Mirsky theorem for the Frobenius norm.For any 1 ≤ k < r, min_{rank(B)≤k} ||A - B||_F = ||A - A_k||_F = sqrt(Σ_{j=k+1}^r σ_j^2).
- What is the Moore–Penrose pseudoinverse of A in terms of its SVD?A^+ = V_r Σ_r^{-1} U_r^T = Σ_{j=1}^r (1/σ_j) v_j u_j^T ∈ R^{m×n}.
- For a linear least-squares problem min_x ||A x - b||_2^2, what is the solution using the pseudoinverse, and what property does it have?The solution is x* = A^+ b. It is the unique least-squares minimizer of minimum Euclidean norm ||x*||_2, even if A is rank-deficient.
- Why does the pseudoinverse solution x* = A^+ b have minimum Euclidean norm among least-squares solutions?Because x* lies in row(A) = null(A)^⊥, so it is orthogonal to the null space, making it the minimum-norm solution.
- What is the adjacency matrix \(A\) of a graph \(G=(V,E)\) with \(|V|=n\)?An \(n \times n\) matrix where \(A_{ij} = w_{ij}\) if \(\{i,j\} \in E\) (or 1 for unweighted graphs), and 0 otherwise.
- How is the degree matrix \(D\) defined for a graph with adjacency matrix \(A\)?\(D = \text{diag}(d_1, \dots, d_n)\), where \(d_i = \sum_{j=1}^n A_{ij}\) is the weighted degree of vertex \(i\).
- What is an oriented incidence matrix \(B\) of a graph?A matrix \(B \in \{-1,0,+1\}^{n \times m}\) where each edge \(e = (i \to j)\) is assigned an arbitrary orientation, with \(B_{ie} = +1\), \(B_{je} = -1\), and zeros elsewhere.
- What are the spectral properties of the unnormalized graph Laplacian \(L\)?\(L\) is real symmetric and positive semidefinite, so its eigenvalues are real and non-negative: \(0 = \mu_1 \le \mu_2 \le \cdots \le \mu_n\).
- Why is \(\mu_1 = 0\) always an eigenvalue of the graph Laplacian \(L\)?Because \(L \mathbf{1} = (D - A)\mathbf{1} = \mathbf{0}\), so the constant vector \(\mathbf{1} = (1,\dots,1)^T\) is an eigenvector with eigenvalue 0.
- What does the multiplicity of the eigenvalue 0 of the graph Laplacian \(L\) represent?The multiplicity of 0 (i.e., \(\dim \text{null}(L)\)) equals the number of connected components of the graph.
- How can the null space of the graph Laplacian \(L\) be characterized in terms of connected components?The null space is spanned by the indicator vectors \(\mathbf{1}_{C_1}, \dots, \mathbf{1}_{C_k}\) of the connected components \(C_1, \dots, C_k\), which form an orthogonal basis.
- What is the relationship between the Laplacian quadratic form and the incidence matrix \(B\)?\(\mathbf{x}^T L \mathbf{x} = \mathbf{x}^T B B^T \mathbf{x} = \|B^T \mathbf{x}\|_2^2\).
- For an unweighted graph, what are the entries of the adjacency matrix \(A\)?\(A_{ij} = 1\) if \(\{i,j\} \in E\), and 0 otherwise.
- What does the equation \(L\mathbf{1} = \mathbf{0}\) imply about the constant vector \(\mathbf{1}\)?It implies that \(\mathbf{1}\) is an eigenvector of \(L\) with eigenvalue 0, confirming that 0 is always an eigenvalue.
- What is the Rayleigh quotient of a symmetric matrix M for a nonzero vector x?R_M(x) = (x^T M x) / ||x||_2^2, a scalar measuring how much x aligns with M's quadratic form.
- What is algebraic connectivity of a graph, and how does it relate to connectivity?It is μ_2, the second-smallest eigenvalue of the Laplacian L. The graph is connected if and only if μ_2 > 0.
- Give the variational (Courant–Fischer) formula for μ_2 in terms of the Laplacian.μ_2 = min over x ≠ 0 with x^T 1 = 0 of [Σ_{ {i,j}∈E } (x_i − x_j)^2] / [Σ_i x_i^2].
- What is the Fiedler vector of a graph?An eigenvector y_2 of the Laplacian achieving μ_2 (the second-smallest eigenvalue); it is orthogonal to the all-ones vector and its entries cluster by community.
- Why do vertices in the same tightly knit community get similar Fiedler vector entries?Because y_2 minimizes the edge-difference sum Σ(x_i − x_j)^2 subject to zero mean, so connected vertices are pushed to have similar values, yielding positive vs. negative sign clusters.
- Define the edge boundary ∂S of a vertex subset S.∂S = { {i,j} ∈ E : i ∈ S, j ∈ S^c }, the set of edges with exactly one endpoint in S.
- Define the cut ratio φ(S) and the Cheeger constant φ_G.φ(S) = |∂S| / min(|S|, |S^c|), and φ_G = min over nonempty proper S of φ(S).
- State Cheeger's inequality (discrete form) relating φ_G and μ_2.φ_G^2 / (2 d_max) ≤ μ_2 ≤ 2 φ_G, where d_max is the maximum vertex degree.
- Which direction of Cheeger's inequality is the 'easy' one, and what test vector proves it?The upper bound μ_2 ≤ 2φ_G; it follows by plugging the zero-mean two-valued vector x_i = +|S^c| for i ∈ S and x_i = −|S| for i ∈ S^c into the Rayleigh quotient.
- What is sweep-cut rounding using the Fiedler vector?Sort vertices by their Fiedler vector entries π(1) ≤ … ≤ π(n) and test the n−1 prefix cuts S_j = {π(1),…,π(j)}; some prefix cut is guaranteed to satisfy φ(S_j) ≤ sqrt(2 d_max μ_2).
- What guarantee does the sweep-cut algorithm provide in terms of μ_2 and d_max?It finds a cut with φ(S_j) ≤ sqrt(2 d_max μ_2), linking spectral information (μ_2) to a combinatorial cut ratio.
- What does the Fiedler vector's zero-mean property (Σ_i (y_2)_i = 0) imply about its entries?It forces entries to have both positive and negative values (unless zero), which is why the sign of (y_2)_i can be used to partition vertices into two communities.
- For a symmetric matrix, what does the Courant–Fischer theorem say about μ_1, the smallest eigenvalue?μ_1 = min over nonzero x of R_M(x), i.e., the minimum Rayleigh quotient over all nonzero vectors.
- In the Erdős–Rényi model G(n, p), how is each possible edge formed?Each pair of vertices is connected independently with probability p.
- What is the expected degree of a vertex in G(n, p)?(n - 1)p
- What is the expected adjacency matrix of G(n, p)?E[A] = p(11^T - I_n), where 1 is the all-ones vector and I_n is the identity matrix.
- In the symmetric stochastic blockmodel SSBM(n, 2, p, q), how are vertices partitioned?Into two equal-sized communities C1 and C2, each of size n/2.
- In SSBM(n, 2, p, q), what do p and q represent?p is the probability of an edge within a community (intra-community), and q is the probability of an edge between communities (inter-community), with p > q.
- What is the top eigenvector of the expected adjacency matrix in SSBM(n, 2, p, q)?u1 = (1/√n) 1, the all-ones vector normalized.
- What is the largest eigenvalue of the expected adjacency matrix in SSBM(n, 2, p, q)?λ1 = (n/2)(p + q)
- What is the second eigenvector of the expected adjacency matrix in SSBM(n, 2, p, q)?u2 = (1/√n)(+1, ..., +1, -1, ..., -1)^T, with +1 on C1 and -1 on C2.
- What is the second largest eigenvalue of the expected adjacency matrix in SSBM(n, 2, p, q)?λ2 = (n/2)(p - q)
- What does the Davis–Kahan theorem imply about the empirical Fiedler vector in SSBM?When p - q is sufficiently large, the empirical Fiedler vector of the Laplacian concentrates around the expected Fiedler vector u2.
- How can one recover the true communities in SSBM using the empirical Fiedler vector?Threshold the signs of the entries of the empirical Fiedler vector: sign((y2)_i) assigns each vertex to a community.
- What is the canonical form of an exponential family density or PMF?p_θ(x) = h(x) exp(θᵀφ(x) − A(θ)), where θ are natural parameters, φ(x) are sufficient statistics, and A(θ) is the log-partition function.
- What are the natural (canonical) parameters and sufficient statistics in an exponential family?θ ∈ ℝᵏ are the natural (canonical) parameters, and φ(x) are the sufficient statistics that capture all information about θ in the data.
- What is the log-partition function A(θ) in an exponential family?A(θ) = log ∫ h(x) exp(θᵀφ(x)) dx, and it normalizes the density; it is also the cumulant generating function.
- What key property does the log-partition function A(θ) always have?A(θ) is always convex in θ.
- What does the gradient of the log-partition function A(θ) equal?∇A(θ) = E_θ[φ(X)], the expected sufficient statistics under the model.
- What does the Hessian of the log-partition function A(θ) equal?H_A(θ) = Cov_θ(φ(X)) ⪰ 0, the covariance of the sufficient statistics, which is positive semidefinite.
- Why is maximum likelihood estimation in an exponential family a convex optimization problem?The negative log-likelihood ℓ(θ) = A(θ) − θᵀ(1/n ∑ φ(x_i)) is convex because A(θ) is convex and the remaining term is linear in θ.
- What is the stationary condition for the MLE in an exponential family?∇A(θ̂) = E_θ̂[φ(X)] = (1/n) ∑ φ(x_i), i.e., the model expectation of the sufficient statistics equals the empirical average.
- What does MLE in an exponential family amount to in terms of moments?It performs moment matching: the fitted model's expected sufficient statistics are set equal to the sample averages.
- Define the Kullback–Leibler (KL) divergence D_KL(p ‖ q).D_KL(p ‖ q) = ∑_x p(x) log(p(x)/q(x)) = E_p[log p(X)] − E_p[log q(X)].
- State Gibbs' inequality for KL divergence.D_KL(p ‖ q) ≥ 0 for all p, q, with equality if and only if p = q.
- How is minimizing empirical cross-entropy related to KL divergence?Minimizing empirical cross-entropy (equivalently maximizing log-likelihood) is equivalent to minimizing D_KL(p̂_data ‖ p_θ).
- What does it mean for a joint distribution to factorize according to a DAG G?p(x_1, …, x_d) = ∏_{i=1}^d p(x_i | x_{Pa(i)}), where Pa(i) are the parents of node i in G.
- In a chain motif X → Z → Y, what conditional independence holds?X ⊥ Y | Z: X and Y are marginally dependent but become conditionally independent given Z.
- In a fork motif X ← Z → Y, what conditional independence holds?X ⊥ Y | Z: X and Y are marginally dependent but become conditionally independent given the common parent Z.
- What is Naive Bayes in terms of graphical model motifs?A fork (common parent) motif where the class label Z generates conditionally independent features X_1, …, X_d given Z.
- In a v-structure (collider) X → Z ← Y, what marginal independence holds?X ⊥ Y unconditionally: marginally p(x, y) = p(x)p(y).
- What happens in a v-structure when you condition on the collider Z or its descendant?X and Y become dependent given Z (X ⊥̸ Y | Z), an effect known as 'explaining away'.
- What is the 'explaining away' phenomenon in a collider motif?Observing the collider Z (or a descendant) couples its parents X and Y, making them conditionally dependent even though they are marginally independent.
- In the context of EM, what are the posterior responsibilities \(r_{i,k}^t\)?They are the soft cluster assignments \(\mathbb{P}_{\boldsymbol{\theta}^t}(Z_i = k \mid \mathbf{X}_i = \mathbf{x}_i)\), computed via Bayes' rule using current parameters.
- What is the E-step of the EM algorithm for latent variable mixtures?Compute the posterior responsibilities \(r_{i,k}^t = \frac{\pi_k^t p_{\boldsymbol{\theta}_k^t}(\mathbf{x}_i)}{\sum_{j=1}^K \pi_j^t p_{\boldsymbol{\theta}_j^t}(\mathbf{x}_i)}\).
- What is the M-step of the EM algorithm for latent variable mixtures?Maximize the expected complete-data log-likelihood \(Q(\boldsymbol{\theta} \mid \boldsymbol{\theta}^t)\) to update parameters, e.g., \(\pi_k^{t+1} = \frac{1}{n}\sum_i r_{i,k}^t\) and \(\boldsymbol{\mu}_k^{t+1} = \frac{\sum_i r_{i,k}^t \mathbf{x}_i}{\sum_i r_{i,k}^t}\).
- What is the log-sum-exp trick and why is it used in the E-step?It computes \(\log \sum_k e^{a_{i,k}} = m_i + \log \sum_k e^{a_{i,k} - m_i}\) with \(m_i = \max_k a_{i,k}\), to avoid numerical underflow when probabilities are very small in high dimensions.
- What does the EM algorithm guarantee about the marginal log-likelihood?It guarantees monotonic improvement: \(\ell(\boldsymbol{\theta}^{t+1}) \ge \ell(\boldsymbol{\theta}^t)\) at every iteration.
- How does the expected complete-data log-likelihood \(Q(\boldsymbol{\theta} \mid \boldsymbol{\theta}^t)\) relate to the marginal log-likelihood \(\ell(\boldsymbol{\theta})\)?\(Q(\boldsymbol{\theta} \mid \boldsymbol{\theta}^t)\) minorizes \(\ell(\boldsymbol{\theta})\), meaning it is a lower bound that touches \(\ell\) at \(\boldsymbol{\theta}^t\), which is the basis for the MM derivation of EM.
- What is the formula for the expected complete-data log-likelihood \(Q(\boldsymbol{\theta} \mid \boldsymbol{\theta}^t)\) in a mixture model?\(Q(\boldsymbol{\theta} \mid \boldsymbol{\theta}^t) = \sum_{i=1}^n \sum_{k=1}^K r_{i,k}^t [\log \pi_k + \log p_{\boldsymbol{\theta}_k}(\mathbf{x}_i)]\).
- In the M-step update for the mixing coefficients, what is \(\pi_k^{t+1}\)?\(\pi_k^{t+1} = \frac{1}{n}\sum_{i=1}^n r_{i,k}^t\), the average responsibility of component \(k\) across all data points.
- In the M-step update for the component means, what is \(\boldsymbol{\mu}_k^{t+1}\)?\(\boldsymbol{\mu}_k^{t+1} = \frac{\sum_{i=1}^n r_{i,k}^t \mathbf{x}_i}{\sum_{i=1}^n r_{i,k}^t}\), a weighted average of the data points with weights given by responsibilities.
- What is the probability density function of a multivariate normal distribution \(\mathbf{X} \sim \mathcal{N}(\boldsymbol{\mu}, \Sigma)\) with \(\Sigma \succ 0\)?\(f(\mathbf{x}) = \frac{1}{(2\pi)^{d/2}\det(\Sigma)^{1/2}} \exp\left(-\frac{1}{2}(\mathbf{x} - \boldsymbol{\mu})^T \Sigma^{-1}(\mathbf{x} - \boldsymbol{\mu})\right)\)
- If \(\mathbf{X} \sim \mathcal{N}(\boldsymbol{\mu}, \Sigma)\), what is the distribution of \(A\mathbf{X} + \mathbf{b}\)?\(A\mathbf{X} + \mathbf{b} \sim \mathcal{N}(A\boldsymbol{\mu} + \mathbf{b}, A\Sigma A^T)\)
- In the partitioned Gaussian \(\begin{pmatrix} \mathbf{X}_1 \\ \mathbf{X}_2 \end{pmatrix} \sim \mathcal{N}\left(\begin{pmatrix} \boldsymbol{\mu}_1 \\ \boldsymbol{\mu}_2 \end{pmatrix}, \begin{pmatrix} \Sigma_{11} & \Sigma_{12} \\ \Sigma_{21} & \Sigma_{22} \end{pmatrix}\right)\), what is the conditional mean \(\boldsymbol{\mu}_{2|1}\) of \(\mathbf{X}_2 \mid \mathbf{X}_1 = \mathbf{x}_1\)?\(\boldsymbol{\mu}_{2|1} = \boldsymbol{\mu}_2 + \Sigma_{21}\Sigma_{11}^{-1}(\mathbf{x}_1 - \boldsymbol{\mu}_1)\)
- In the partitioned Gaussian, what is the conditional covariance \(\Sigma_{2|1}\) of \(\mathbf{X}_2 \mid \mathbf{X}_1 = \mathbf{x}_1\)?\(\Sigma_{2|1} = \Sigma_{22} - \Sigma_{21}\Sigma_{11}^{-1}\Sigma_{12}\), the Schur complement of \(\Sigma_{11}\) in \(\Sigma\).
- Does the conditional covariance \(\Sigma_{2|1}\) depend on the observed value \(\mathbf{x}_1\)?No, \(\Sigma_{2|1}\) does not depend on \(\mathbf{x}_1\); it is constant given the partition.
- What is the Schur complement of \(\Sigma_{11}\) in \(\Sigma = \begin{pmatrix} \Sigma_{11} & \Sigma_{12} \\ \Sigma_{21} & \Sigma_{22} \end{pmatrix}\)?\(\Sigma / \Sigma_{11} = \Sigma_{22} - \Sigma_{21}\Sigma_{11}^{-1}\Sigma_{12}\)
- In the block Gaussian conditioning derivation, what is \(\mathbf{Y} = \mathbf{X}_2 - \Sigma_{21}\Sigma_{11}^{-1}\mathbf{X}_1\) used for?\(\mathbf{Y}\) is constructed so that \(\text{Cov}(\mathbf{Y}, \mathbf{X}_1) = 0\), hence \(\mathbf{Y} \perp\!\!\perp \mathbf{X}_1\), enabling block Gaussian elimination to find the conditional distribution.
- What are the state and observation equations of the linear–Gaussian state-space model?\(\mathbf{X}_t = A \mathbf{X}_{t-1} + \mathbf{W}_t\), \(\mathbf{W}_t \sim \mathcal{N}(\mathbf{0}, Q)\); \(\mathbf{Y}_t = C \mathbf{X}_t + \mathbf{V}_t\), \(\mathbf{V}_t \sim \mathcal{N}(\mathbf{0}, R)\).
- In the Kalman filter, what are the predict step equations for the mean and covariance?\(\hat{\boldsymbol{\mu}}_{t|t-1} = A \hat{\boldsymbol{\mu}}_{t-1|t-1}\), \(\hat{\Sigma}_{t|t-1} = A \hat{\Sigma}_{t-1|t-1} A^T + Q\)
- In the Kalman filter, what is the Kalman gain \(K_t\)?\(K_t = \hat{\Sigma}_{t|t-1} C^T (C \hat{\Sigma}_{t|t-1} C^T + R)^{-1}\)
- In the Kalman filter update step, what are the equations for the posterior mean and covariance after observing \(\mathbf{Y}_t = \mathbf{y}_t\)?\(\hat{\boldsymbol{\mu}}_{t|t} = \hat{\boldsymbol{\mu}}_{t|t-1} + K_t (\mathbf{y}_t - C\hat{\boldsymbol{\mu}}_{t|t-1})\), \(\hat{\Sigma}_{t|t} = (I - K_t C)\hat{\Sigma}_{t|t-1}\)
- What is the role of the Schur complement in the Kalman filter update step?The Schur complement is used to compute the conditional distribution of the latent state given the observation, yielding the Kalman gain and posterior covariance.
- What condition must a transition matrix P satisfy to be row-stochastic?All entries must be nonnegative (P_ij ≥ 0) and each row must sum to 1, equivalently P𝟙 = 𝟙.
- Given initial row distribution μ₀, what is the distribution at step t?μ_t = μ₀P^t, where P is the transition matrix.
- What does it mean for a Markov chain to be irreducible?Every state i can reach every state j in some number of steps t_ij ≥ 1, i.e., the transition digraph is strongly connected.
- What is the definition of aperiodicity for a Markov chain?For every state i, gcd{t ≥ 1 : (P^t)_ii > 0} = 1.
- What is a sufficient condition for an irreducible chain to be aperiodic?Having at least one self-loop P_ii > 0; e.g., a lazy random walk P_lazy = ½I + ½P is aperiodic.
- What equation defines a stationary distribution π?πP = π, with π_i ≥ 0 and Σπ_i = 1; π is a left eigenvector of P with eigenvalue 1.
- What conditions are needed for pointwise state distributions to converge, μ₀P^t → π?Both irreducibility AND aperiodicity; then for any μ₀, lim_{t→∞}(P^t)_ij = π_j, i.e., P^t → 𝟙πᵀ.
- Describe the coupling proof idea for convergence to π.Run two copies (X_t, Y_t) with X₀ ~ μ₀ and Y₀ ~ π until first meeting time T; after T they move together. Irreducibility + aperiodicity make P(T > t) → 0 exponentially, giving ‖μ₀P^t − π‖_TV ≤ P(T > t) → 0.
- How is the stationary probability π_i expressed in terms of expected return time?π_i = 1/E_i[τ_i^+], where τ_i^+ is the first return time to state i.
- What is a lazy random walk and why is it useful?P_lazy = ½I + ½P; it adds self-loops, making an irreducible chain aperiodic.
- What does the limit P^t → 𝟙πᵀ mean entrywise?For all i, j, lim_{t→∞}(P^t)_ij = π_j, so each row of P^t converges to the stationary distribution π.
- What is the detailed balance condition for a Markov chain to be reversible with respect to a distribution π?π_i P_{ij} = π_j P_{ji} for all states i and j.
- Why does a distribution satisfying detailed balance automatically become stationary?Because summing π_i P_{ij} over i gives π_j, showing that πP = π.
- For a simple random walk on a connected undirected graph, what is the stationary distribution?π_i = d_i / (2|E|), so the stationary probability of a vertex is proportional to its degree.
- What is the transition matrix for a simple random walk on an undirected graph with adjacency matrix A and degree matrix D?P = D^{-1}A, so P_{ij} = A_{ij}/d_i.
- What are dead-end (dangling) nodes and spider traps in a web graph?Dead-end nodes have out-degree 0, and spider traps are sets of pages with no links leading out to the rest of the web.
- How does PageRank modify the transition matrix to handle dangling nodes?It replaces zero rows with the uniform distribution (1/n)1^T, making the matrix stochastic.
- What is the PageRank transition matrix formula using damping factor α?P_PR = α P̃ + (1−α)(1/n)11^T, where P̃ is the stochastic-adjusted web transition matrix.
- What is the typical value of the damping factor α in PageRank?α is typically 0.85.
- Why does the PageRank matrix P_PR guarantee a unique stationary distribution?Every entry of P_PR is strictly positive (> (1−α)/n > 0), making the chain irreducible and aperiodic.
- How is the PageRank vector typically computed?By power iteration: π_{t+1} = π_t P_PR.
- What does the damping factor α control in PageRank?It controls the probability of following a link versus teleporting uniformly at random; higher α means more link-following.
- Why is MCMC needed in high-dimensional Bayesian statistics and statistical physics?We want to sample from or compute expectations under π(x) = π̃(x)/Z, where π̃ is easy to evaluate but the partition function Z is an intractable sum over exponentially many (e.g., 2^d) states.
- What property does MCMC enforce so that a Markov chain has the target π as its stationary distribution?Detailed balance: π(x)P(x,y) = π(y)P(y,x).
- In Metropolis–Hastings, what is the Hastings acceptance probability A(x,y)?A(x,y) = min(1, [π(y)Q(y,x)] / [π(x)Q(x,y)]), which equals min(1, [π̃(y)Q(y,x)] / [π̃(x)Q(x,y)]) since Z cancels.
- Why does the intractable partition function Z not need to be computed in Metropolis–Hastings?Z cancels in the ratio π(y)/π(x) = π̃(y)/π̃(x), so only the unnormalized weights π̃ are needed.
- In Metropolis–Hastings, what happens if the proposed state y is rejected?The chain stays at the current state: x_{t+1} = x.
- How is the MH transition probability P(x,y) defined for x ≠ y?P(x,y) = Q(x,y)·A(x,y), the proposal probability times the acceptance probability.
- What is Gibbs sampling and how does it relate to Metropolis–Hastings?Gibbs sampling updates one coordinate (or block) at a time from its exact full conditional π(x_i | x_{-i}); it is a special case of MH with acceptance probability A ≡ 1.
- What is a Restricted Boltzmann Machine (RBM)?A bipartite undirected graphical model between visible binary units v ∈ {0,1}^m and hidden binary units h ∈ {0,1}^k, with energy E(v,h) = -a^T v - b^T h - v^T W h and Boltzmann distribution p(v,h) = (1/Z)e^{-E(v,h)}.
- Why do RBMs allow fast block Gibbs sampling?Because there are no intra-layer edges, the conditionals factor into independent logistic sigmoids, so all hidden (or all visible) units can be sampled in parallel.
- What are the RBM conditional distributions for hidden and visible units?P(h_j = 1 | v) = σ(b_j + (v^T W)_j) and P(v_i = 1 | h) = σ(a_i + (W h)_i), where σ is the logistic sigmoid.
- How does block Gibbs sampling work in an RBM?Alternate sampling all hidden units h ~ p(h | v) and all visible units v ~ p(v | h), using the factorized sigmoid conditionals for fast vectorized updates.
- What is the role of the proposal distribution Q(x,y) in Metropolis–Hastings?It generates candidate states y ~ Q(x, ·); the Hastings correction Q(y,x)/Q(x,y) adjusts acceptance to keep detailed balance when Q is asymmetric.
- What is the target distribution π in the MCMC setup described?π(x) = π̃(x)/Z, where π̃(x) > 0 is an easy-to-evaluate unnormalized weight and Z = Σ_x π̃(x) is the intractable normalizing constant.
- What is the Jacobian matrix of a vector-valued function f: R^d -> R^m?The Jacobian J_f(x) is an m×d matrix whose (i,j) entry is ∂f_i/∂x_j(x). Each row i is the transpose of the gradient of f_i.
- For a scalar function f: R^d -> R, what is its Jacobian and what is the Jacobian of its gradient?The Jacobian of f is ∇f(x)^T, a 1×d row vector. The Jacobian of the gradient ∇f is the Hessian matrix H_f(x), a d×d matrix.
- State the multivariable chain rule in terms of Jacobian matrices for h(x) = g(f(x)).If f: R^d -> R^m and g: R^m -> R^p, then J_h(x) = J_g(f(x)) J_f(x), which is a p×d matrix.
- In a deep network with layers z_{k+1} = g_k(z_k, w_k) and scalar loss L, what are the matrices A_k and B_k?A_k = J_{z_k} g_k(z_k, w_k) is the Jacobian of g_k with respect to its input z_k. B_k = J_{w_k} g_k(z_k, w_k) is the Jacobian of g_k with respect to its parameters w_k.
- Write the formula for the gradient of the loss with respect to layer-k parameters w_k using the chain rule.∇_{w_k} L = B_k^T A_{k+1}^T ... A_{L-1}^T ∇_{z_L} L. This is obtained by multiplying the transposed Jacobians from the loss back to layer k.
- What is computed and stored during the forward pass of backpropagation?The forward pass evaluates and caches the intermediate activations z_1, ..., z_{L+1} and the local Jacobians A_k and B_k for each layer.
- Define the adjoint (sensitivity) vector p_k in backpropagation and give its initialization.The adjoint vector is p_k = ∇_{z_k} L, the gradient of the loss with respect to the layer-k activation. It is initialized at the output as p_{L+1} = 1 (since L is scalar).
- State the backward recursion for the adjoint vector p_k and the parameter gradient in backpropagation.For k = L, L-1, ..., 1: p_k = A_k^T p_{k+1} and ∇_{w_k} L = B_k^T p_{k+1}.
- What is the softmax function for a vector of logits z in R^K?The softmax probability for class c is \(\hat{y}_c = \frac{e^{z_c}}{\sum_{j=1}^K e^{z_j}}\). It converts logits into a probability distribution over K classes.
- What is the cross-entropy loss for softmax outputs with a one-hot true label y?\(\mathcal{L}(\mathbf{z}, \mathbf{y}) = -\sum_{c=1}^K y_c \log \hat{y}_c\), where \(\hat{y}_c\) are the softmax probabilities.
- What is the Jacobian of the softmax function?\(J_{\boldsymbol{\gamma}}(\mathbf{z}) = \text{diag}(\hat{\mathbf{y}}) - \hat{\mathbf{y}}\hat{\mathbf{y}}^T\), where \(\hat{\mathbf{y}} = \text{softmax}(\mathbf{z})\).
- What is the gradient of the softmax cross-entropy loss with respect to the logits z?\(\nabla_{\mathbf{z}} \mathcal{L} = \hat{\mathbf{y}} - \mathbf{y} = \text{softmax}(\mathbf{z}) - \mathbf{y}\). This simple difference is a key result.
- What proof mechanism justifies the normal-equations/least-squares solution?The Pythagorean theorem applied to the orthogonal decomposition col(A) ⊕ null(A^T): ‖b − Ax‖² = ‖b − p‖² + ‖p − Ax‖², where p is the projection of b onto col(A).
- Why does convex smooth optimization rarely have a closed-form solution?Setting ∇f(x*) = 0 usually yields a nonlinear system with no closed form—e.g., it fails for Logistic Regression. Iterative methods like gradient descent are used instead.
- What step size is used in gradient descent for L-smooth convex functions, and why?α = 1/L, where L is the smoothness (Lipschitz gradient) constant. This guarantees the quadratic upper bound decreases the objective.
- What mathematical tools prove convergence rates for strongly convex smooth optimization?The quadratic upper bound from L-smoothness combined with the supporting hyperplane / Polyak–Łojasiewicz (PL) inequality from m-strong convexity.
- Which theorems underpin the SVD/PCA derivation?The spectral theorem on A^T A, the Courant–Fischer variational characterization of eigenvalues, and the Eckart–Young–Mirsky theorem for low-rank approximation.
- Why is exact community detection / graph partitioning hard, and what is the relaxed approach?Minimizing the cut ratio φ_G is NP-hard combinatorial optimization. Spectral relaxation uses the Fiedler vector y₂ of the Laplacian L = D − A followed by a sweep cut.
- What identity expresses the graph Laplacian quadratic form?x^T L x = Σ_{ {i,j} ∈ E } (x_i − x_j)². This links the Laplacian to cut sizes and smoothness over edges.
- State Cheeger's inequality as given for graph partitioning.φ_G²/(2 d_max) ≤ μ₂ ≤ 2 φ_G, relating the optimal conductance φ_G to the second smallest Laplacian eigenvalue μ₂.
- Why is latent variable MLE intractable in closed form?The log of a sum over latent components couples the parameters across components, so maximizing Σ_i log Σ_k p_θ(x_i, k) has no closed form.
- What iterative algorithm solves latent variable MLE, and what is its hard-assignment limit?Expectation–Maximization (EM). k-Means is the hard-assignment limit of EM.
- What proof mechanism underlies the EM algorithm?Jensen's inequality and non-negativity of KL divergence yield a surrogate minorizer Q(θ | θ^t) that lower-bounds the log-likelihood and is maximized each step.
- What is detailed balance and what does it guarantee?The condition π_i P_ij = π_j P_ji for all i, j. It guarantees π is a stationary distribution of the chain P.
- When is the least-squares minimizer x* = argmin ||Ax - b||₂² unique?It is unique if and only if A has full column rank (null(A) = {0}, equivalently AᵀA ≻ 0).
- Is the fitted projection p = Ax* unique when A has dependent columns?Yes. The fitted projection p = proj_col(A) b is always unique, even when A does not have full column rank.
- Why should data be centered before applying PCA?Applying SVD to an uncentered matrix makes the first singular vector point toward the sample mean rather than the direction of maximum variance around the mean.
- What is always an eigenvalue of the graph Laplacian L = D - A, and what is its eigenvector?μ₁ = 0 is always an eigenvalue, with eigenvector 1 (the all-ones vector).
- How does the second Laplacian eigenvalue μ₂ relate to graph connectivity?The graph is connected if and only if μ₂ > 0.
- Which Laplacian eigenvector should be used for clustering, and why not the first?Use the second eigenvector y₂ (the Fiedler vector); y₁ = 1 is constant and carries no community structure.
- What does irreducibility alone guarantee for a Markov chain?Existence and uniqueness of a stationary distribution π > 0, plus the Ergodic Theorem (time averages converge to E_π).
- What is needed for step-t distributions μ₀Pᵗ to converge to π from any starting distribution?Both irreducibility and aperiodicity.
Velocer는 무료예요: 간격 반복과 어떤 문서에서든 만드는 나만의 카드.
PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import
University of Wisconsin–Madison의 다른 덱
- Math 234 - every chapter (multivariable calc)
- MATH 345: Linear Programming & Optimization · 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