重新调整分位数函数
Reconditioning your quantile function
摘要:
蒙特卡罗模拟是建模高度非线性系统(如粒子对撞机和细胞膜)的重要工具,随机浮点数是它们的燃料。这些随机样本通常通过反演方法生成,该方法利用分位数函数Q(u)的映射(例如,生成用于拒绝抽样的建议变量)。然而,这些模拟的样本量越来越大,使得它们容易受到反演方法的缺陷的影响; Q(u)在分布的尾部是病态的,从样本中剥离了精度。这个缺陷源于机器算术的限制,这些限制在实现过程中经常被忽视(例如在流行的C++和Python库中)。本文介绍了一种稳健的反演方法,它通过仔细绘制和使用均匀变量来重新确定Q(u)。pqRand是一个免费的C++和Python包,它为许多流行的分布(指数分布、正态分布、伽玛分布等)实现了这种新颖的方法。
英文摘要:
Monte Carlo simulation is an important tool for modeling highly nonlinear systems (like particle colliders and cellular membranes), and random, floating-point numbers are their fuel. These random samples are frequently generated via the inversion method, which harnesses the mapping of the quantile function Q(u) (e.g. to generate proposal variates for rejection sampling). Yet the increasingly large sample size of these simulations makes them vulnerable to a flaw in the inversion method; Q(u) is ill-conditioned in a distribution's tails, stripping precision from its sample. This flaw stems from limitations in machine arithmetic which are often overlooked during implementation (e.g. in popular C++ and Python libraries). This paper introduces a robust inversion method, which reconditions Q(u) by carefully drawing and using uniform variates. pqRand, a free C++ and Python package, implements this novel method for a number of popular distributions (exponential, normal, gamma, and more).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。