MLCrack

    ML MATH & LINEAR ALGEBRA · INTERVIEW QUESTION

    What is the difference between eigenvalues and singular values?

    🟢 beginner · Linear Algebra

    Hint: Think about what decomposition each comes from and what they tell you about a matrix.

    Answer

    Eigenvalues come from eigendecomposition (Av=λvAv = \lambda v) and exist only for square matrices. They can be complex and describe how the matrix scales along its eigenvectors.

    Singular values come from SVD (A=UΣV⊤A = U\Sigma V^\top) and exist for any matrix. They are always non-negative real numbers and represent the scaling factors along the principal axes.

    For symmetric positive semi-definite matrices, singular values equal eigenvalues.

    Eigendecomposition A=PDP−1A = PDP^{-1} requires AA to be diagonalizable; defective matrices do not have one.

    PropertyEigenvaluesSingular Values
    Matrix typeSquare onlyAny matrix
    ValuesCan be complexAlways ≥0\geq 0
    DecompositionA=PDP−1A = PDP^{-1} (when diagonalizable)A=UΣV⊤A = U\Sigma V^\top

    Likely follow-up: When would you prefer SVD over eigendecomposition in ML?