MLCrack

    ML Math & Linear Algebra Interview Questions

    120 questions on vectors, matrices, eigenvalues, SVD, calculus, optimization foundations. The first 20 are free, no account needed.

    Practice free →

    What this topic covers

    Almost every machine learning interview loop has a point where the interviewer stops asking what a model does and starts asking why it works. That conversation happens in the language of linear algebra, calculus and optimization. This topic collects the questions that test whether you can reason about vectors, matrices and gradients without reaching for a library call.

    The linear algebra questions start with the objects themselves: rank, null space, orthogonality, projections and the determinant as a volume scaling factor. From there they move to decompositions. You should be able to explain what an eigenvector is geometrically, when a matrix can be diagonalized, why symmetric matrices have real eigenvalues, and how the singular value decomposition generalizes all of this to rectangular matrices. Principal component analysis shows up constantly, usually as a request to connect the covariance matrix, its eigenvectors and the right singular vectors of the centered data.

    The calculus and optimization questions focus on gradients, Jacobians and Hessians, the chain rule as it is used in backpropagation, and the difference between convex and non-convex objectives. Expect to derive the gradient of a common loss such as cross-entropy with softmax, to explain why the learning rate is bounded by curvature, and to compare gradient descent with Newton's method, momentum and adaptive optimizers. Constrained optimization appears through Lagrange multipliers and the KKT conditions, most often in the context of support vector machines.

    A smaller group of questions covers numerical methods: conditioning, floating point error, why you solve a linear system instead of inverting a matrix, and tricks such as log-sum-exp that keep computations stable.

    How interviewers use these questions

    Math questions are rarely about memorized formulas. A strong answer states the definition, gives a geometric or intuitive picture, and then ties the idea to a model you have actually trained. If you are asked about singular values, mention low-rank approximation and why truncating small singular values denoises data. If you are asked about convexity, say what it buys you in linear and logistic regression and what replaces that guarantee in deep networks.

    Research and applied scientist loops go deeper on derivations, while ML engineer and data scientist loops lean on intuition and practical consequences. The sample questions below span beginner to expert difficulty, and each one has a worked answer you can read for free. When you are ready to test yourself, open the practice list, hide the answers and try to explain each idea out loud in under two minutes.

    Sample ML Math interview questions

    Practice ML Math & Linear Algebra questions

    Open full page ↗

    120 questions · 0 self-assessed