Condition Numbers and Sensitivity
Estimate how input perturbations affect an exact output and distinguish a sensitive task from an unstable implementation.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Derivatives predict small relative changes
For differentiable scalar \(f\) at nonzero \(x\) and nonzero \(f(x)\), the local relative condition number is \(|xf'(x)/f(x)|\). For \(f(x)=x^2\) it equals two. For \(f(x)=x-c\) it is \(|x/(x-c)|\) when only \(x\) varies, potentially huge near \(c\). A small relative uncertainty in the input can then become a large relative uncertainty in the output through exact arithmetic alone.
Define which norm and perturbations matter
For solving \(Ax=b\) with nonsingular \(A\), the norm condition number \(\|A\|\|A^{-1}\|\) bounds sensitivity to perturbations in \(b\) under a consistent norm. Sensitivity to perturbing \(A\) has additional conditions. A small residual can coexist with a poor solution when \(A\) is ill conditioned. Forward and backward error track the difference between those quantities. Singular values expose the extreme stretching directions for the two-norm.[1][2]