{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "3TXY35FR30"
    },
    {
      "field": "uses",
      "target": "RD3K5HADYG"
    }
  ],
  "body": "\n## Summary\n\n$n$-term approximation approximates a function or vector by a linear combination of at most $n$ elements.\nThese elements are chosen freely from a fixed family, called a dictionary, such as a basis.\nThe best error with $n$ terms, $\\sigma_n(f)$, measures how well $f$ can be compressed with respect to that dictionary.\nThe set of $n$-term combinations is not a linear space, so this is a basic model of [[nonlinear approximation|YS1GRQRVY7]].\nIt underlies wavelet compression, [[sparse approximation|WC8P971XGW]] and greedy algorithms such as [[matching pursuit|8KJ9P9KQ5H]].\n\n## Explanations\n\n### L1 human\n\nIn ordinary approximation one fixes in advance which basis functions to use, for example the first $n$ Fourier modes.\nIn $n$-term approximation one may pick any $n$ basis functions, and the choice depends on the target.\nA signal with a few sharp features is well described by a few well-placed [[wavelets|4PZ35C0GV3]], even if they are not the first ones.\nFor an [[orthonormal basis|0S9GGTR0EX]] of a [[Hilbert space|HM2HHE3J51]] the best choice is simple: keep the $n$ coefficients of largest absolute value.\nFor example, $f = 3e_1 + e_2 + 2e_3$ in $\\R^3$ has best $1$-term approximation $3e_1$, with error $\\sqrt{1^2 + 2^2} = \\sqrt{5}$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "41A46",
      "41A65"
    ],
    "name": "n-term approximation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Sparse_approximation"
      }
    ],
    "specializes": [
      "YS1GRQRVY7"
    ],
    "tag": "GEK0NP5WQM"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/GEK0NP5WQM/",
  "links": [
    {
      "field": "specializes",
      "target": "YS1GRQRVY7"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/GEK0NP5WQM.md",
  "msc": [
    "41A46",
    "41A65"
  ],
  "name": "n-term approximation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/GEK/GEK0NP5WQM.md",
  "status": null,
  "tag": "GEK0NP5WQM",
  "uri": "m2://GEK0NP5WQM",
  "url": "https://tamnd.github.io/math2/wiki/n-term-approximation/",
  "writing": {
    "tag": "GEK0NP5WQM",
    "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
      }
    ]
  }
}
