Math 2.0

Numerical analysis Definition

Catastrophic cancellation

Builds on Round-off errorCondition number

Definition

Let x,yx, y be real numbers with x≠yx \ne y, and let x~=x(1+δ1)\tilde x = x(1 + \delta_1) and y~=y(1+δ2)\tilde y = y(1 + \delta_2) be approximations of them with relative errors δ1,δ2\delta_1, \delta_2, for example round-off errors. Then x~−y~=(x−y)(1+δ)\tilde x - \tilde y = (x - y)(1 + \delta) with δ=xδ1−yδ2x−y,∣δ∣≤∣x∣+∣y∣∣x−y∣max⁡(∣δ1∣,∣δ2∣).\delta = \frac{x \delta_1 - y \delta_2}{x - y}, \qquad \abs{\delta} \le \frac{\abs{x} + \abs{y}}{\abs{x - y}} \max(\abs{\delta_1}, \abs{\delta_2}). Catastrophic cancellation is the case ∣x−y∣≪∣x∣+∣y∣\abs{x - y} \ll \abs{x} + \abs{y}. Then the relative error δ\delta of the computed difference can be much larger than the relative errors of the inputs.

Remarks

Example: x=1.2341x = 1.2341, y=1.2259y = 1.2259 rounded to three significant digits give x~=y~=1.23\tilde x = \tilde y = 1.23, so x~−y~=0\tilde x - \tilde y = 0 while x−y=0.0082x - y = 0.0082; the relative error is ∣δ∣=1\abs{\delta} = 1, although ∣δ1∣,∣δ2∣<0.004\abs{\delta_1}, \abs{\delta_2} < 0.004. Here the factor (∣x∣+∣y∣)/∣x−y∣(\abs{x} + \abs{y})/\abs{x - y} is about 300300. Non-example: for x=1.2341x = 1.2341 and y=−1.2259y = -1.2259 the factor is 11, so the relative error of x~−y~\tilde x - \tilde y is at most the larger input error; nothing cancels. The factor (∣x∣+∣y∣)/∣x−y∣(\abs{x} + \abs{y})/\abs{x - y} is the relative condition number of subtraction. By the Sterbenz lemma, if xx and yy are floating-point numbers with y/2≤x≤2yy/2 \le x \le 2y, then x−yx - y is a floating-point number, so the subtraction itself adds no error.

Reading path

To understand this page from the ground up, read these 3 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. Condition number concept
  2. Round-off error concept
  3. Catastrophic cancellation definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Catastrophic_cancellation
About this page
Tag49MX22EDS7
URIm2://49MX22EDS7
Kinddefinition
WritingW0 stub
MSC65G50
DefinesCatastrophic cancellation
UsesRound-off error, Condition number

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • 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.