From a high volume stream of weighted items, we want to maintain a generic sample of a certain limited size 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, , that dominates all previous schemes in terms of estimation quality. provides {\em variance optimal unbiased estimation of subset sums}. More precisely, if we have seen items of the stream, then for {\em any} subset size , our scheme based on samples minimizes the average variance over all subsets of size . In fact, the optimality is against any off-line scheme with 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 time. Finally, it is particularly well suited for combination of samples from different streams in a distributed setting.

生成讲解博客的中文版本

生成AI智能校验的中文版本