Maths · Module 3Module material
Matrices interview questions
15 questions interviewers ask on this module’s topics, from first principles to the follow-ups. Each comes with a model answer.
- Give two ways to read a matrix–vector product.
- What is the shape rule for
A @ B? - What does a 2 × 2 matrix do to the plane, and how do you read it?
- What does the determinant measure?
- Why is
ABnotBA, and which acts first? - What is
(AB)⁻¹? - How do you tell whether a matrix is close to singular?
- You add a temperature column in Fahrenheit to data that already has Celsius. What happens to linear regression?
- Derive the normal equations.
- Why do libraries not solve linear regression with
inv(X.T @ X)? - What is an eigenvector, and when are a matrix's eigenvectors perpendicular?
- Why is gradient descent slow on unscaled features?
- What is the SVD, and how is it related to the eigendecomposition?
- How does PCA relate to the SVD and the covariance matrix?
- What is the difference between
np.cov(X)andnp.cov(X, rowvar=False, bias=True)?