{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-generator-for-generalized-inverse-gaussian","title":"A Generator for Generalized Inverse Gaussian Distributions","arxiv_id":"2211.13049","date":"2022-11-23","proceeding":null,"authors":["Xiaozhu Zhang","Jerome P. Reiter"],"abstract":"We propose a new generator for the generalized inverse Gaussian (GIG) distribution by decomposing the density of GIG into two components. The first component is a truncated inverse Gamma density, in order to sample from which we improve the traditional inverse CDF method. The second component is the product of an exponential pdf and an inverse Gamma CDF. In order to sample from this quasi-density, we develop a rejection sampling procedure that adaptively adjusts the piecewise proposal density according to the user-specified rejection rate or the desired number of cutoff points. The resulting complete algorithm enjoys controllable rejection rate and moderate setup time. It preserves efficiency for both parameter varying case and large sample case.","url_abs":"https://arxiv.org/abs/2211.13049v1","url_pdf":"https://arxiv.org/pdf/2211.13049v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"a-generator-for-generalized-inverse-gaussian","repo_url":"https://github.com/xiaozhu-zhang1998/gigcpp","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}