{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0MXCP7MXWJ"
    }
  ],
  "body": "\n## Statement\n\nLet $p \\in (0, 1]$ and let $X$ have the [[geometric distribution|0XCVV5Q500]] with parameter $p$, so $P(X = k) = (1 - p)^k p$ for $k = 0, 1, 2, \\dots$. Then\n$$E[X] = \\frac{1 - p}{p}.$$\nFor the number $T = X + 1$ of trials up to and including the first success, $E[T] = 1/p$.\n\n## Remarks\n\nA proof uses the [[tail sum formula|0Y6QNF1J49]]: $P(X \\ge n) = (1 - p)^n$, so $E[X] = \\sum_{n \\ge 1} (1 - p)^n = (1 - p)/p$.\nThe variance of $X$ and of $T$ is $(1 - p)/p^2$.\n\n## Explanations\n\n### L1 human\n\nIf each trial succeeds with probability $p$, you need on average $1/p$ trials to get the first success.\nFor a fair die, you wait on average $6$ rolls for the first six.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "60E05"
    ],
    "name": "Mean of the geometric distribution",
    "role": "proposition",
    "sources": [
      {
        "locator": "Proof of expected value",
        "url": "https://en.wikipedia.org/wiki/Geometric_distribution"
      }
    ],
    "tag": "0DB0R4N5XX",
    "uses": [
      "0XCVV5Q500",
      "0DCT0QZVQ1",
      "0Y6QNF1J49"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0DB0R4N5XX/",
  "links": [
    {
      "field": "uses",
      "target": "0XCVV5Q500"
    },
    {
      "field": "uses",
      "target": "0DCT0QZVQ1"
    },
    {
      "field": "uses",
      "target": "0Y6QNF1J49"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0DB0R4N5XX.md",
  "msc": [
    "60E05"
  ],
  "name": "Mean of the geometric distribution",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0DB/0DB0R4N5XX.md",
  "status": null,
  "tag": "0DB0R4N5XX",
  "uri": "m2://0DB0R4N5XX",
  "url": "https://math2.tamnd.com/wiki/mean-of-the-geometric-distribution/",
  "writing": {
    "tag": "0DB0R4N5XX",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
