Weighted Reservoir Sampling With Replacement from Data Streams

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Meligrana, Adriano, Fazzone, Adriano
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908890253230080
author Meligrana, Adriano
Fazzone, Adriano
author_facet Meligrana, Adriano
Fazzone, Adriano
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_20256
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Weighted Reservoir Sampling With Replacement from Data Streams
Meligrana, Adriano
Fazzone, Adriano
Data Structures and Algorithms
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.
title Weighted Reservoir Sampling With Replacement from Data Streams
topic Data Structures and Algorithms
url https://arxiv.org/abs/2403.20256