{
  "__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_yulesimon",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A Yule-Simon random variable with parameter "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\alpha>0"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " can be represented as a mixture of exponential random variates. To see this write "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "W"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " as an exponential random variate with rate "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\rho"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and a Geometric random variate "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "K"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " with probability "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "1-exp(-W)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " then "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "K"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " marginally has a Yule-Simon distribution. The latent variable representation described above is used for random variate generation."
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "for "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "k = 1,2,..."
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Now"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "for "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\alpha>1"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " otherwise the mean is infinite and the variance does not exist. For the variance, "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\alpha>2"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " otherwise the variance does not exist. Similarly, for the skewness and kurtosis to be finite, "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\alpha>3"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "\\alpha>4"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " respectively."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Implementation: "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scipy.stats.yulesimon",
              "domain": null,
              "role": null,
              "inventory": null
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Yule-Simon Distribution"
        }
      ],
      "level": 0,
      "target": "discrete-yulesimon"
    }
  ],
  "local_refs": []
}