{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "007QED3E0Y"
    },
    {
      "field": "uses",
      "target": "01BD2TFFP4"
    },
    {
      "field": "uses",
      "target": "01ZWX875AT"
    },
    {
      "field": "uses",
      "target": "02CBHV4ZZQ"
    },
    {
      "field": "uses",
      "target": "03PGHKAJG3"
    },
    {
      "field": "uses",
      "target": "04RRB6HM00"
    },
    {
      "field": "uses",
      "target": "05AW1G0WE1"
    },
    {
      "field": "uses",
      "target": "05PWWHYBX5"
    },
    {
      "field": "uses",
      "target": "086HEVXR9Z"
    },
    {
      "field": "uses",
      "target": "09PR1V6RWR"
    },
    {
      "field": "uses",
      "target": "0CDVK9RQBH"
    },
    {
      "field": "uses",
      "target": "0DB0R4N5XX"
    },
    {
      "field": "uses",
      "target": "0DJ8W3HP2D"
    },
    {
      "field": "uses",
      "target": "0MYDNRT7PP"
    },
    {
      "field": "uses",
      "target": "0NNRNGKMFM"
    },
    {
      "field": "uses",
      "target": "0P7PTC8DDE"
    },
    {
      "field": "uses",
      "target": "0PH0VHTQS0"
    },
    {
      "field": "uses",
      "target": "0PVCTCKD3C"
    },
    {
      "field": "uses",
      "target": "0TTA57SEJG"
    },
    {
      "field": "uses",
      "target": "0V4VSCBXP3"
    },
    {
      "field": "uses",
      "target": "0WPDNXGSSN"
    },
    {
      "field": "uses",
      "target": "0Y6QNF1J49"
    },
    {
      "field": "uses",
      "target": "0YAMJRK04E"
    },
    {
      "field": "uses",
      "target": "0Z8PSSAVBA"
    },
    {
      "field": "uses",
      "target": "0ZT24EC90K"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be a real [[random variable|0DKRR22AEQ]] on a [[probability space|0ZYBZ34RT2]] $(\\Omega, \\mathcal{F}, P)$.\nIf $X \\ge 0$, the expected value of $X$ is the Lebesgue integral\n$$E[X] = \\int_\\Omega X \\, dP \\in [0, \\infty].$$\nIn general, write $X = X^+ - X^-$ with $X^+ = \\max(X, 0)$ and $X^- = \\max(-X, 0)$. If $E[|X|] \u003c \\infty$, then $X$ is integrable and $E[X] = E[X^+] - E[X^-]$.\n\n## Remarks\n\nFor a [[discrete random variable|0J6Z6H5VQJ]] with values $x_1, x_2, \\dots$, $E[X] = \\sum_i x_i \\, P(X = x_i)$ when the series converges absolutely.\nFor a [[random variable with density|0C21RZG5V2]] $f$, $E[X] = \\int_{-\\infty}^{\\infty} x f(x) \\, dx$ when $\\int |x| f(x) \\, dx \u003c \\infty$.\nOther notations are $\\mathbb{E}[X]$, $\\mathbb{E}X$ and $\\mu_X$. The expected value depends only on the law of $X$.\nIf $E[X^+] = \\infty$ and $E[X^-] \u003c \\infty$, one sets $E[X] = +\\infty$. If both are infinite, $E[X]$ is not defined.\n\n## Explanations\n\n### L1 human\n\nThe expected value is the long-run average of many independent repetitions of the experiment.\nFor a fair die, it is $(1 + 2 + 3 + 4 + 5 + 6)/6 = 3.5$. This value never appears on the die, but it is the center of mass of the distribution.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0WQNRCNY3M",
    "kind": "definition",
    "msc": [
      "60A05"
    ],
    "name": "Expected value",
    "sources": [
      {
        "locator": "Arbitrary real-valued random variables",
        "url": "https://en.wikipedia.org/wiki/Expected_value"
      }
    ],
    "tag": "0DCT0QZVQ1",
    "uses": [
      "0DKRR22AEQ",
      "0ZYBZ34RT2",
      "0J6Z6H5VQJ",
      "0C21RZG5V2"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0DCT0QZVQ1/",
  "links": [
    {
      "field": "defines",
      "target": "0WQNRCNY3M"
    },
    {
      "field": "uses",
      "target": "0DKRR22AEQ"
    },
    {
      "field": "uses",
      "target": "0ZYBZ34RT2"
    },
    {
      "field": "uses",
      "target": "0J6Z6H5VQJ"
    },
    {
      "field": "uses",
      "target": "0C21RZG5V2"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0DCT0QZVQ1.md",
  "msc": [
    "60A05"
  ],
  "name": "Expected value",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0DC/0DCT0QZVQ1.md",
  "status": null,
  "tag": "0DCT0QZVQ1",
  "uri": "m2://0DCT0QZVQ1",
  "url": "https://math2.tamnd.com/wiki/expected-value-definition/",
  "writing": {
    "tag": "0DCT0QZVQ1",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
