{
  "aliases": [
    "pgf-of-sum-of-independent-random-variables"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0YH1M56SBN"
    }
  ],
  "body": "\n## Statement\n\nLet $X_1, \\dots, X_n$ be [[independent|0XCE070V8B]] random variables with values in $\\{0, 1, 2, \\dots\\}$, and let $S = X_1 + \\dots + X_n$.\nThen for each complex $z$ with $|z| \\le 1$, the [[probability-generating functions|0Z8PSSAVBA]] satisfy\n$$G_S(z) = G_{X_1}(z) \\, G_{X_2}(z) \\cdots G_{X_n}(z).$$\n\n## Remarks\n\nProof: $z^S = z^{X_1} \\cdots z^{X_n}$. The factors are independent, so the [[product rule for expectations|05AW1G0WE1]] applies.\nExample: a sum of $n$ independent Bernoulli($p$) variables has the generating function $(1 - p + pz)^n$. This is the generating function of $\\operatorname{Bin}(n, p)$.\nFor a random number $N$ of i.i.d. terms $X_i$ with $N$ independent of the $X_i$, the sum $S_N = X_1 + \\dots + X_N$ has $G_{S_N}(z) = G_N(G_{X_1}(z))$.\n\n## Explanations\n\n### L1 human\n\nAdding independent counts corresponds to multiplying their generating functions.\nThis turns the hard computation of the law of a sum into a product of power series.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "pgf-of-sum-of-independent-random-variables"
    ],
    "kind": "statement",
    "msc": [
      "60E05"
    ],
    "name": "Generating function of a sum of independent random variables",
    "role": "proposition",
    "sources": [
      {
        "locator": "Functions of independent random variables",
        "url": "https://en.wikipedia.org/wiki/Probability_generating_function"
      }
    ],
    "tag": "0REMT01N36",
    "uses": [
      "0Z8PSSAVBA",
      "05AW1G0WE1",
      "0XCE070V8B"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0REMT01N36/",
  "links": [
    {
      "field": "uses",
      "target": "0Z8PSSAVBA"
    },
    {
      "field": "uses",
      "target": "05AW1G0WE1"
    },
    {
      "field": "uses",
      "target": "0XCE070V8B"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0REMT01N36.md",
  "msc": [
    "60E05"
  ],
  "name": "Generating function of a sum of independent random variables",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0RE/0REMT01N36.md",
  "status": null,
  "tag": "0REMT01N36",
  "uri": "m2://0REMT01N36",
  "url": "https://math2.tamnd.com/wiki/generating-function-of-a-sum-of-independent-random-variables/",
  "writing": {
    "tag": "0REMT01N36",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
