arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.20256cs.DS
收藏

带权替换采样从数据流中采样

Weighted Reservoir Sampling With Replacement from Data Streams

Sapienza University of Rome(罗马大学);Intesa Sanpaolo Innovation Center(意大利联合圣保罗创新中心)

Adriano Meligrana, Adriano Fazzone

AI总结:

本文提出一种新的数据流采样方法,元素被选中的概率与其权重成正比。方法基于替换采样,能够在一次遍历中生成带权随机样本,且样本能直接用于后续处理。

摘要:

在本文中,我们提出了一种新的随机采样方法,用于数据流,其中元素被选中的概率与其关联的权重成正比。我们的方法基于替换采样,尽管大多数相关文献都集中在无替换采样上。我们的算法能够在一次遍历中生成带权随机样本,无论总体大小如何。在任何时间点,样本都能代表到目前为止所见的总体,并且可以被其他模块直接使用,而无需任何后处理。我们正式证明了该方法的正确性和效率。实验分析显示了该方法在实践中与现有最先进方法的性能比较。

英文摘要:

In this work, we present a new random sampling method for data streams where the probability of an element's inclusion in the sample is proportional to a weight associated with that element. Our method is based on sampling with replacement, although most of the literature on this topic has focused on sampling without replacement. Our algorithm generates a weighted random sample in one pass over a population of unknown size. At any point in time, the sample is representative of the population seen so far and can be directly used by other modules without requiring any post-processing. We formally prove the correctness and efficiency of our method. An experimental analysis shows the performance of our method in practice when compared to state-of-the-art methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑