{
  "__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:continuous_geninvgauss",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The probability density function is given by:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": " \\begin{eqnarray*}\n\t        f(x; p, b) = x^{p-1} \\exp(-b(x + 1/x)/2) / (2 K_p(b)),\n\t\\end{eqnarray*}"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "where "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "x > 0"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is a real number and the parameters "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "p, b"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " satisfy "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "b > 0"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "K_v"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is the modified Bessel function of second kind of order "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "v"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " ("
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scipy.special.kv",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ")."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "If "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "X",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "geninvgauss(p, b)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", then the distribution of "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "1/X",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "geninvgauss(-p, b)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". The inverse Gaussian distribution ("
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scipy.stats.invgauss",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ") is a special case with p=-1/2."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Implementation: "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "scipy.stats.geninvgauss",
              "domain": null,
              "role": null,
              "inventory": null
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Generalized Inverse Gaussian Distribution"
        }
      ],
      "level": 0,
      "target": "continuous-geninvgauss"
    }
  ],
  "local_refs": []
}