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
  1. A residual supplies a specific backward perturbation
  2. Convert the residual using the inverse operator

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]

References

  1. Nicholas J. Higham, Accuracy and Stability of Numerical Algorithms ↩
  2. Jonathan Richard Shewchuk, Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates ↩