Linear Algebra and Numerical Computing Questions

The linear algebra and numerical methods that machine-learning and scientific code rest on. Covers vectors, matrices and their operations, eigenvalues and eigenvectors and their geometry, singular value decomposition and PCA as linear algebra (variance explained, randomized SVD), least squares, the normal equations and rank deficiency, matrix calculus and gradients of quadratic objectives, conditioning and its effect on solvers, feature scaling and gradient descent, ill-conditioned covariance matrices and the fixes for them (shrinkage, truncated pseudo-inverse, dimension reduction), floating-point error and numerically stable algorithms (compensated and pairwise summation), iterative methods such as power iteration, and the mathematics of optimization: convexity, smoothness, strong convexity, convergence rates of gradient descent, preconditioning, saddle points and Hessian tests for stationary points, Lagrange multipliers and KKT conditions. Questions are about deriving, computing and reasoning about precision and convergence. Probability and statistical inference, learning-theory bounds, neural-network training practice, and library API mechanics are covered elsewhere.

EasyTechnical
58 practiced

What are eigenvalues and eigenvectors, and what is the geometric intuition? Where do they show up in machine learning?

MediumTechnical
66 practiced

Your sample covariance matrix is ill-conditioned because the data is high-dimensional with few samples. What goes wrong downstream, and how would you fix or work around it?

MediumTechnical
66 practiced

Explain singular value decomposition. How is it used to compute PCA, and how do singular values relate to variance explained?

EasyTechnical
70 practiced

Derive the gradient of f(x) = ||Ax - b||^2 with respect to x. What does setting it to zero give you, and when is the solution well defined?

That is every published Linear Algebra and Numerical Computing question for Data Scientist so far. Browse the other topics in this category, or practice this one interactively.