{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $m \u003c N$ and $s \\ge 1$ be integers and let $A$ be a real $m \\times N$ [[matrix|0VD9ZSWWJG]], called the *measurement matrix*.\nA vector $x \\in \\R^N$ is *$s$-sparse* if it has at most $s$ nonzero entries.\n*Compressed sensing* is the problem of recovering an unknown $s$-sparse vector $x$ from its measurement vector $y = Ax \\in \\R^m$.\nIts standard method is *basis pursuit*: output a solution of\n$$\\min\\set{\\norm{z}_1 : z \\in \\R^N, \\ Az = y}, \\qquad \\norm{z}_1 = \\textstyle\\sum_{j=1}^N \\abs{z_j} .$$\nThe matrix $A$ *allows recovery of $s$-sparse vectors* if every $s$-sparse $x$ is the unique solution of this problem with $y = Ax$.\n\n## Remarks\n\nIt is the case $\\varepsilon = 0$ of [[sparse approximation|WC8P971XGW]], restricted to data that come from a sparse vector.\nSuppose every $2s$ columns of $A$ are linearly independent.\nThen an $s$-sparse $x$ is the only $s$-sparse solution of $Az = Ax$, since two such solutions differ by a $2s$-sparse vector in the kernel of $A$.\nA matrix with the [[restricted isometry property|B0K18PWN2A]] of order $2s$ and constant $\\delta_{2s} \u003c \\sqrt{2} - 1$ allows recovery of $s$-sparse vectors by basis pursuit.\nExample: $A = \\begin{pmatrix} 1 \u0026 0 \u0026 1 \\\\ 0 \u0026 1 \u0026 1 \\end{pmatrix}$, $s = 1$, $x = (0, 0, 2)$, $y = (2, 2)$.\nThe solutions of $Az = y$ are $z = (2 - t, 2 - t, t)$, and $\\norm{z}_1 = 2\\abs{2 - t} + \\abs{t}$ is minimal exactly at $t = 2$, so basis pursuit returns $x$.\nNon-example: for $A = \\begin{pmatrix} 1 \u0026 1 \u0026 0 \\\\ 0 \u0026 0 \u0026 1 \\end{pmatrix}$ and $s = 1$, the $1$-sparse vectors $e_1$ and $e_2$ give the same $y = (1, 0)$, so no method can recover both.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "6V8E0AQNHA",
    "kind": "definition",
    "msc": [
      "94A12",
      "41A46",
      "94A20"
    ],
    "name": "Compressed sensing",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Compressed_sensing"
      }
    ],
    "tag": "KHAT9R19CD",
    "uses": [
      "0VD9ZSWWJG",
      "WC8P971XGW",
      "B0K18PWN2A"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/KHAT9R19CD/",
  "links": [
    {
      "field": "defines",
      "target": "6V8E0AQNHA"
    },
    {
      "field": "uses",
      "target": "0VD9ZSWWJG"
    },
    {
      "field": "uses",
      "target": "WC8P971XGW"
    },
    {
      "field": "uses",
      "target": "B0K18PWN2A"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/KHAT9R19CD.md",
  "msc": [
    "94A12",
    "41A46",
    "94A20"
  ],
  "name": "Compressed sensing",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/KHA/KHAT9R19CD.md",
  "status": null,
  "tag": "KHAT9R19CD",
  "uri": "m2://KHAT9R19CD",
  "url": "https://tamnd.github.io/math2/wiki/compressed-sensing-definition/",
  "writing": {
    "tag": "KHAT9R19CD",
    "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
      }
    ]
  }
}
