What is the difference between a singular and an invertible matrix?

Quick Overview

Explain how a singular matrix differs from an invertible one. Tests linear algebra basics that come up in data science interviews: determinants, rank, linear independence, eigenvalues, solving linear systems, and why near-singular matrices destabilize regression.

What is the difference between a singular and an invertible matrix?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

What is the difference between a singular and an invertible matrix? ```hint Picture the transformation Think of the matrix as a map from vectors to vectors. Ask whether two different inputs can land on the same output, and what that would mean for undoing the map. ``` ### What a Strong Answer Covers - Both definitions, the fact that they apply to square matrices, and that every square matrix is exactly one of the two - The equivalent tests for each case (determinant, rank, column independence, eigenvalues) - What each case means for the solutions of $Ax = b$ - A concrete or geometric example - Why matrices that are close to singular cause trouble in practice ### Follow-up Questions - Why does perfect multicollinearity in linear regression make $X^\top X$ singular, and how does ridge regression change that? - Why is the determinant a poor numerical test of whether a matrix is close to singular, and what would you check instead? - What can you use in place of an inverse when the matrix is singular or not square?

Overview: Explain how a singular matrix differs from an invertible one. Tests linear algebra basics that come up in data science interviews: determinants, rank, linear independence, eigenvalues, solving linear systems, and why near-singular matrices destabilize regression.

General logo
General
Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

What is the difference between a singular and an invertible matrix?

What a Strong Answer Covers Guidance

  • Both definitions, the fact that they apply to square matrices, and that every square matrix is exactly one of the two
  • The equivalent tests for each case (determinant, rank, column independence, eigenvalues)
  • What each case means for the solutions of Ax=bAx = b
  • A concrete or geometric example
  • Why matrices that are close to singular cause trouble in practice

Follow-up Questions Guidance

  • Why does perfect multicollinearity in linear regression make X⊤XX^\top X singular, and how does ridge regression change that?
  • Why is the determinant a poor numerical test of whether a matrix is close to singular, and what would you check instead?
  • What can you use in place of an inverse when the matrix is singular or not square?