具有已知速率分布的离散概率分布的动态抽样
Dynamic Sampling from a Discrete Probability Distribution with a Known Distribution of Rates
摘要:
在本文中,我们考虑了几个有效的数据结构的问题,从一个动态变化的离散概率分布,其中一些先验信息是已知的分布的速率,特别是最大和最小的速率,和可能的结果N的数量是大的采样。我们考虑三种基本的数据结构,接受-拒绝方法,完全二叉树和递归方法。这些可以用作多级数据结构中的构建块,其中在每一级,可以使用基本数据结构之一,其中顶层选择事件组,底层从组中选择元素。根据对结果率分布的假设,可以使用基本结构的不同组合。我们证明了对于特定的数据结构,当速率分布满足一定的条件时,采样和更新的期望时间是常数。我们表明,对于任何分布,结合树结构的接受-拒绝方法,我们有一个预期的时间采样和更新的$O\left(\log\log{r_{max}}/{r_{min}}\right)$是可能的,其中$r_{max}$是最大速率和$r_{min}$的最小速率。我们还讨论了一个两级接受拒绝数据结构,允许预期的恒定时间采样,并摊销恒定时间更新,假设$r_{max}$和$r_{min}$是已知的,事件的数量是足够大的实现。我们还提出了一个实验验证,突出了现实生活中的设置的限制。
英文摘要:
In this paper, we consider several efficient data structures for the problem of sampling from a dynamically changing discrete probability distribution, where some prior information is known on the distribution of the rates, in particular the maximum and minimum rate, and where the number of possible outcomes N is large. We consider three basic data structures, the Acceptance-Rejection method, the Complete Binary Tree and the Alias method. These can be used as building blocks in a multi-level data structure, where at each of the levels, one of the basic data structures can be used, with the top level selecting a group of events, and the bottom level selecting an element from a group. Depending on assumptions on the distribution of the rates of outcomes, different combinations of the basic structures can be used. We prove that for particular data structures the expected time of sampling and update is constant when the rate distribution follows certain conditions. We show that for any distribution, combining a tree structure with the Acceptance-Rejection method, we have an expected time of sampling and update of $O\left(\log\log{r_{max}}/{r_{min}}\right)$ is possible, where $r_{max}$ is the maximum rate and $r_{min}$ the minimum rate. We also discuss an implementation of a Two Levels Acceptance-Rejection data structure, that allows expected constant time for sampling, and amortized constant time for updates, assuming that $r_{max}$ and $r_{min}$ are known and the number of events is sufficiently large. We also present an experimental verification, highlighting the limits given by the constraints of a real-life setting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。