{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "tutorial:stats:discrete_binom",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A binomial random variable with parameters "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\left(n,p\\right)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " can be described as the sum of "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "n"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " independent Bernoulli random variables of parameter "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "p;"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "Y=\\sum_{i=1}^{n}X_{i}."
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Therefore, this random variable counts the number of successes in "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "n"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " independent trials of a random experiment where the probability of success is "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "p."
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "where the incomplete beta integral is"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "I_{x}\\left(a,b\\right)=\\frac{\\Gamma\\left(a+b\\right)}{\\Gamma\\left(a\\right)\\Gamma\\left(b\\right)}\\int_{0}^{x}t^{a-1}\\left(1-t\\right)^{b-1}dt."
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Now"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": ""
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "M\\left(t\\right)=\\left[1-p\\left(1-e^{t}\\right)\\right]^{n}"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Implementation: "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scipy.stats.binom",
              "domain": null,
              "role": null,
              "inventory": null
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Binomial Distribution"
        }
      ],
      "level": 0,
      "target": "discrete-binom"
    }
  ],
  "local_refs": []
}