{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "099SXAG014"
    },
    {
      "field": "uses",
      "target": "0GPFKS96T7"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be a set and let $A$ be a [[subset|0FE8Q5S42Y]] of $X$.\nThe indicator function of $A$ is the [[function|0XHDTE5YMZ]] $\\mathbf{1}_A \\colon X \\to \\{0, 1\\}$ with\n$$\\mathbf{1}_A(x) = \\begin{cases} 1 \u0026 \\text{if } x \\in A, \\\\ 0 \u0026 \\text{if } x \\notin A. \\end{cases}$$\n\n## Remarks\n\nOther names are characteristic function and the notation $\\chi_A$.\nFor subsets $A$ and $B$ of $X$, $\\mathbf{1}_{A \\cap B} = \\mathbf{1}_A \\mathbf{1}_B$ and $\\mathbf{1}_{A^c} = 1 - \\mathbf{1}_A$.\nThe map $A \\mapsto \\mathbf{1}_A$ is a [[bijection|0SNQEF7Z53]] from the [[power set|0BC7KX51Z8]] of $X$ to the set of functions from $X$ to $\\{0, 1\\}$.\n\n## Explanations\n\n### L1 human\n\nThe indicator function answers \"is $x$ in $A$?\" with $1$ for yes and $0$ for no.\nFor $A$ the even integers, $\\mathbf{1}_A(4) = 1$ and $\\mathbf{1}_A(5) = 0$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0RCQZ36MME",
    "kind": "definition",
    "msc": [
      "03E20"
    ],
    "name": "Indicator function",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Indicator_function"
      }
    ],
    "tag": "0VSB0XF4G7",
    "uses": [
      "0XHDTE5YMZ",
      "0FE8Q5S42Y"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0VSB0XF4G7/",
  "links": [
    {
      "field": "defines",
      "target": "0RCQZ36MME"
    },
    {
      "field": "uses",
      "target": "0XHDTE5YMZ"
    },
    {
      "field": "uses",
      "target": "0FE8Q5S42Y"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0VSB0XF4G7.md",
  "msc": [
    "03E20"
  ],
  "name": "Indicator function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0VS/0VSB0XF4G7.md",
  "status": null,
  "tag": "0VSB0XF4G7",
  "uri": "m2://0VSB0XF4G7",
  "url": "https://math2.tamnd.com/wiki/indicator-function-definition/",
  "writing": {
    "tag": "0VSB0XF4G7",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
