What is the condition number of a matrix and why does it matter for numerical stability?

Quick Overview

Define the condition number of a matrix and explain how it controls error amplification when solving linear systems in floating point. Tests numerical linear algebra intuition used in least squares, regularization and optimization for data science work.

What is the condition number of a matrix and why does it matter for numerical stability?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is the condition number of a matrix and why does it matter for numerical stability? ```hint Perturb the input Change $b$ slightly in $Ax = b$ and ask how far $x$ can move, with both changes measured relative to the size of the vector. ``` ```hint Nearly singular Ask why a matrix that is close to singular causes trouble even though it is invertible in exact arithmetic. ``` ### What a Strong Answer Covers - A definition, in terms of norms or singular values, and the range of values it can take. - The error amplification bound and what it means in significant digits under floating-point arithmetic. - The difference between an ill-conditioned problem and an unstable algorithm. - Where ill-conditioning shows up in practice (least squares, collinear features, optimization) and how to reduce it. ### Follow-up Questions - Why does solving least squares through $A^\top A$ lose more accuracy than a QR decomposition, and by how much? - A matrix has determinant ${10^{-12}}$. Is it ill-conditioned? - How does ridge regularization change the condition number of $A^\top A$? - How does the condition number of the Hessian affect how fast gradient descent converges?

Overview: Define the condition number of a matrix and explain how it controls error amplification when solving linear systems in floating point. Tests numerical linear algebra intuition used in least squares, regularization and optimization for data science work.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

What is the condition number of a matrix and why does it matter for numerical stability?

What a Strong Answer Covers Guidance

  • A definition, in terms of norms or singular values, and the range of values it can take.
  • The error amplification bound and what it means in significant digits under floating-point arithmetic.
  • The difference between an ill-conditioned problem and an unstable algorithm.
  • Where ill-conditioning shows up in practice (least squares, collinear features, optimization) and how to reduce it.

Follow-up Questions Guidance

  • Why does solving least squares through A⊤AA^\top A lose more accuracy than a QR decomposition, and by how much?
  • A matrix has determinant 10−12{10^{-12}} . Is it ill-conditioned?
  • How does ridge regularization change the condition number of A⊤AA^\top A ?
  • How does the condition number of the Hessian affect how fast gradient descent converges?