{
  "__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_nhypergeom",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Consider a box containing "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "M"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " balls: "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "n"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " red and "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "M-n"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " blue. We randomly sample balls from the box, one at a time and "
            },
            {
              "__type": "Emphasis",
              "__tag": 4047,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "without"
                }
              ]
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " replacement, until we have picked "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "r"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " blue balls. "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "nhypergeom",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is the distribution of the number of red balls "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "k"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " we have picked."
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "for "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "k \\in 0, 1, 2, ..., n"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", where the binomial coefficients are defined as,"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The cumulative distribution, survivor function, hazard function, cumulative hazard function, inverse distribution function, moment generating function, and characteristic function on the support of "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "k"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " are mathematically intractable."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Implementation: "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scipy.stats.nhypergeom",
              "domain": null,
              "role": null,
              "inventory": null
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Negative Hypergeometric Distribution"
        }
      ],
      "level": 0,
      "target": "discrete-nhypergeom"
    }
  ],
  "local_refs": []
}