Math 2.0

Numerical analysis Definition

Numerical stability

Builds on Backward error analysisMachine epsilonBig O notationNorm

Definition

Let XX and YY be normed spaces with norms ∥⋅∥\norm{\cdot}, and let f ⁣:X→Yf \colon X \to Y be a problem. An algorithm for ff is a family of maps f~ ⁣:X→Y\tilde f \colon X \to Y, one for each floating-point system, with unit roundoff uu as in machine epsilon. All OO bounds below are as u→0u \to 0, uniform in x≠0x \ne 0.

  1. The algorithm is backward stable if for each xx there is x~\tilde x with f~(x)=f(x~)\tilde f(x) = f(\tilde x) and ∥x~−x∥/∥x∥=O(u)\norm{\tilde x - x}/\norm{x} = O(u).
  2. The algorithm is stable if for each xx there is x~\tilde x with ∥x~−x∥/∥x∥=O(u)\norm{\tilde x - x}/\norm{x} = O(u) and ∥f~(x)−f(x~)∥/∥f(x~)∥=O(u)\norm{\tilde f(x) - f(\tilde x)}/\norm{f(\tilde x)} = O(u).
  3. The algorithm is forward stable if ∥f~(x)−f(x)∥/∥f(x)∥=O(κ(x) u)\norm{\tilde f(x) - f(x)}/\norm{f(x)} = O(\kappa(x) \, u), where κ(x)\kappa(x) is the relative condition number of ff at xx.

Remarks

Example: computing x1+x2x_1 + x_2 as fl(x1+x2)=(x1+x2)(1+δ)\mathrm{fl}(x_1 + x_2) = (x_1 + x_2)(1 + \delta), ∣δ∣≤u\abs{\delta} \le u, is backward stable, with x~=(x1(1+δ),x2(1+δ))\tilde x = (x_1(1 + \delta), x_2(1 + \delta)); this is the backward error computation. Non-example: computing 1−cos⁡t1 - \cos t by forming fl(cos⁡t)\mathrm{fl}(\cos t) and subtracting it from 11 is not stable for small tt. The result, of order t2/2t^2/2, carries an absolute error of order uu, so its relative error is of order u/t2u/t^2. This is not O(u)O(u), and a relative perturbation of tt of order uu cannot explain it. The formula 2sin⁡2(t/2)2 \sin^2(t/2) computes the same quantity stably. Backward stability implies stability, and a backward stable algorithm has relative forward error O(κ(x)u)O(\kappa(x) u).

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Backward error analysis concept
  2. Big O notation concept
  3. Machine epsilon concept
  4. Norm concept
  5. Numerical stability definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Numerical_stability
About this page
TagQWYQ3JNK0B
URIm2://QWYQ3JNK0B
Kinddefinition
WritingW0 stub
MSC65G50, 65F35
DefinesNumerical stability
UsesBackward error analysis, Machine epsilon, Big O notation, Norm

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.