{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "DJXX3X6TEQ"
    }
  ],
  "body": "\n## Summary\n\nAffine arithmetic is a method of range analysis that represents each uncertain quantity as an affine function of shared noise symbols, each ranging over $[-1, 1]$.\nBecause quantities that depend on the same source of error share a noise symbol, their correlations are kept.\nThis avoids much of the overestimation of [[interval arithmetic|QPKKTE1ZY0]], where $x - x$ for $x \\in [0, 1]$ gives $[-1, 1]$ instead of $0$.\nNonlinear operations are approximated by affine ones, and the approximation error becomes a new noise symbol, so the bounds remain guaranteed.\n\n## Explanations\n\n### L1 human\n\nSuppose one only knows that a quantity $x$ lies between $1$ and $3$.\nInterval arithmetic forgets where a range came from, so it treats $x$ and a second copy of $x$ as unrelated, and $x - x$ seems to lie anywhere between $-2$ and $2$.\nAffine arithmetic writes $x = 2 + \\varepsilon$ with an unknown $\\varepsilon \\in [-1, 1]$, and keeps the same $\\varepsilon$ wherever $x$ appears.\nThen $x - x = 0$ exactly, and sums such as $x + 2x = 6 + 3\\varepsilon$ also come out sharp.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65G30",
      "65G40"
    ],
    "name": "Affine arithmetic",
    "same_as": {
      "wikidata": "Q3622729",
      "wikipedia": "Affine arithmetic"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Affine_arithmetic"
      }
    ],
    "tag": "YPE8E9CVXP"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/YPE8E9CVXP/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/YPE8E9CVXP.md",
  "msc": [
    "65G30",
    "65G40"
  ],
  "name": "Affine arithmetic",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/YPE/YPE8E9CVXP.md",
  "status": null,
  "tag": "YPE8E9CVXP",
  "uri": "m2://YPE8E9CVXP",
  "url": "https://tamnd.github.io/math2/wiki/affine-arithmetic/",
  "writing": {
    "tag": "YPE8E9CVXP",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
