计算机科学 > 数据结构与算法
[提交于 2024年3月16日]
标题:On the Average Runtime of an Open Source Binomial Random Variate Generation Algorithm
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Vincent Cicirello[v1] 2024年3月16日 星期六 21:10:22 UTC