English

Stream sampling for variance-optimal estimation of subset sums

Data Structures and Algorithms 2010-11-16 v2

Abstract

From a high volume stream of weighted items, we want to maintain a generic sample of a certain limited size kk that we can later use to estimate the total weight of arbitrary subsets. This is the classic context of on-line reservoir sampling, thinking of the generic sample as a reservoir. We present an efficient reservoir sampling scheme, \varoptk\varoptk, that dominates all previous schemes in terms of estimation quality. \varoptk\varoptk provides {\em variance optimal unbiased estimation of subset sums}. More precisely, if we have seen nn items of the stream, then for {\em any} subset size mm, our scheme based on kk samples minimizes the average variance over all subsets of size mm. In fact, the optimality is against any off-line scheme with kk samples tailored for the concrete set of items seen. In addition to optimal average variance, our scheme provides tighter worst-case bounds on the variance of {\em particular} subsets than previously possible. It is efficient, handling each new item of the stream in O(logk)O(\log k) time. Finally, it is particularly well suited for combination of samples from different streams in a distributed setting.

Keywords

Cite

@article{arxiv.0803.0473,
  title  = {Stream sampling for variance-optimal estimation of subset sums},
  author = {Edith Cohen and Nick Duffield and Haim Kaplan and Carsten Lund and Mikkel Thorup},
  journal= {arXiv preprint arXiv:0803.0473},
  year   = {2010}
}

Comments

31 pages. An extended abstract appeared in the proceedings of the 20th ACM-SIAM Symposium on Discrete Algorithms (SODA 2009)

R2 v1 2026-06-21T10:18:14.676Z