Fast Generation of Discrete Random Variables
George Marsaglia,
Wai Wan Tsang and
Jingbo Wang
Journal of Statistical Software, 2004, vol. 011, issue i03
Abstract:
We describe two methods and provide C programs for generating discrete random variables with functions that are simple and fast, averaging ten times as fast as published methods and more than five times as fast as the fastest of those. We provide general procedures for implementing the two methods, as well as specific procedures for three of the most important discrete distributions: Poisson, binomial and hypergeometric.
Date: 2004-07-12
References: View complete reference list from CitEc
Citations: View citations in EconPapers (2)
Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v011i03/v11i03.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... e/v011i03/5tbl.c.zip
https://www.jstatsoft.org/index.php/jss/article/do ... 011i03/TplusSQ.c.zip
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:011:i03
DOI: 10.18637/jss.v011.i03
Access Statistics for this article
Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis
More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum ().