{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $X$ be a real or complex [[normed vector space|03J5RAKB30]] with norm $\\norm{\\cdot}$, and let $\\mathcal{D} \\subseteq X$ be a set, called the *dictionary*.\nLet $n \\ge 1$ be an integer.\nThe set of *$n$-term approximants* is\n$$\\Sigma_n(\\mathcal{D}) = \\set{\\textstyle\\sum_{k=1}^{n} c_k g_k : c_k \\text{ scalars}, \\ g_k \\in \\mathcal{D}} .$$\nThe *error of best $n$-term approximation* of $f \\in X$ is\n$$\\sigma_n(f, \\mathcal{D}) = \\inf\\set{\\norm{f - g} : g \\in \\Sigma_n(\\mathcal{D})} .$$\n*$n$-term approximation* is the approximation of elements $f \\in X$ by elements of $\\Sigma_n(\\mathcal{D})$, measured by $\\sigma_n(f, \\mathcal{D})$.\n\n## Remarks\n\nThis is the [[error of best approximation|YDN0T4MEX0]] from the set $\\Sigma_n(\\mathcal{D})$, which is a union of subspaces and not a subspace.\nIndeed $\\Sigma_n + \\Sigma_n \\subseteq \\Sigma_{2n}$, but in general $\\Sigma_n + \\Sigma_n \\ne \\Sigma_n$.\nExample: let $X$ be a Hilbert space with orthonormal basis $\\mathcal{D} = (e_j)$ and $f = \\sum_j a_j e_j$.\nKeeping the $n$ coefficients $a_j$ of largest absolute value gives a best approximant, and $\\sigma_n(f, \\mathcal{D})^2$ is the sum of $\\abs{a_j}^2$ over the remaining indices.\nCheck: for $g = \\sum_{j \\in S} c_j e_j$ with $\\abs{S} \\le n$, $\\norm{f - g}^2 = \\sum_{j \\in S} \\abs{a_j - c_j}^2 + \\sum_{j \\notin S} \\abs{a_j}^2$, which is smallest when $c_j = a_j$ and $S$ carries the largest $\\abs{a_j}$.\nNon-example: in $\\R^3$ with the standard basis, $3e_1 + e_2 + 2e_3$ is not in $\\Sigma_2$, since it has three nonzero coordinates.\nWhen $\\mathcal{D}$ is redundant, the best approximant may be hard to compute, and greedy algorithms are used instead.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "GEK0NP5WQM",
    "kind": "definition",
    "msc": [
      "41A46",
      "41A65"
    ],
    "name": "n-term approximation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Sparse_approximation"
      }
    ],
    "tag": "3TXY35FR30",
    "uses": [
      "03J5RAKB30",
      "YDN0T4MEX0"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/3TXY35FR30/",
  "links": [
    {
      "field": "defines",
      "target": "GEK0NP5WQM"
    },
    {
      "field": "uses",
      "target": "03J5RAKB30"
    },
    {
      "field": "uses",
      "target": "YDN0T4MEX0"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/3TXY35FR30.md",
  "msc": [
    "41A46",
    "41A65"
  ],
  "name": "n-term approximation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3TX/3TXY35FR30.md",
  "status": null,
  "tag": "3TXY35FR30",
  "uri": "m2://3TXY35FR30",
  "url": "https://tamnd.github.io/math2/wiki/n-term-approximation-definition/",
  "writing": {
    "tag": "3TXY35FR30",
    "kind": "definition",
    "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
      }
    ]
  }
}
