Forward Error, Backward Error, and Residuals
Evaluate a computed linear solution by both its distance from the true result and the smallest input change making it exact.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A residual supplies a specific backward perturbation
For \(Ax=b\), an approximate solution \(\widehat x\) has residual \(r=b-A\widehat x\). It exactly solves the problem with right-hand side \(b-r\). Thus \(\|r\|/\|b\|\) measures a relative data perturbation when only \(b\) may change and \(b\ne0\). If entries of \(A\) may change too, other backward error definitions apply.
Convert the residual using the inverse operator
The forward error is \(x-\widehat x=A^{-1}r\). A tiny residual controls it only in combination with a bound on \(A^{-1}\). For \(A=\operatorname{diag}(1,10^{-6})\), an error of one in the second coordinate gives residual magnitude \(10^{-6}\) in that coordinate. A backward stable method can still face this limitation on sensitive problems. Conditioning quantifies the amplification. QR least squares avoids a formulation that squares a relevant condition number.[1][2]