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.

MediumTechnical
59 practiced

Why does standardizing input features usually speed up gradient-based training? Explain it in terms of the Hessian of a quadratic objective and the step size.

EasyTechnical
70 practiced

You fit a linear regression with an intercept and one-hot encode a categorical feature with all of its levels, and the solver complains the design matrix is singular. In linear-algebra terms (rank, column space, null space), what went wrong, what does it mean for the coefficients, and how do you fix it?

MediumTechnical
81 practiced

Users move between the pages of a product according to a transition matrix. Show that the long-run share of users on each page is an eigenvector of that matrix, explain what guarantees it exists and is unique, and explain why PageRank adds a damping factor.

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?

Unlock Full Question Bank

Get access to all 20 Linear Algebra and Numerical Computing interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.