We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.DS

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Data Structures and Algorithms

Title: On the Average Runtime of an Open Source Binomial Random Variate Generation Algorithm

Abstract: The BTPE algorithm (Binomial, Triangle, Parallelogram, Exponential) of Kachitvichyanukul and Schmeiser is one of the faster and more widely utilized algorithms for generating binomial random variates. Cicirello's open source Java library, $\rho\mu$, includes an implementation of BTPE as well as a variety of other random number related utilities. In this report, I explore the average case runtime of the BTPE algorithm when generating random values from binomial distribution $B(n,p)$. Beginning with Kachitvichyanukul and Schmeiser's formula for the expected number of acceptance-rejection sampling iterations, I analyze the limit behavior as $n$ approaches infinity, and show that the average runtime of BTPE converges to a constant. I instrument the open source Java implementation from the $\rho\mu$ library to experimentally validate the analysis.
Subjects: Data Structures and Algorithms (cs.DS); Mathematical Software (cs.MS)
MSC classes: 68Q25, 68Q87, 68W40, 60-04
ACM classes: F.2.1; G.3; G.4; I.1.2
Report number: ALG-24-007
Cite as: arXiv:2403.11018 [cs.DS]
  (or arXiv:2403.11018v1 [cs.DS] for this version)

Submission history

From: Vincent Cicirello [view email]
[v1] Sat, 16 Mar 2024 21:10:22 GMT (13kb,D)

Link back to: arXiv, form interface, contact.