Random sampling techniques for space efficient online computation of order statistics of large datasets
Gurmeet Singh Manku, Sridhar Rajagopalan, Bruce G. Lindsay · ACM SIGMOD Record · 1999
In a recent paper [MRL98], we had described a general framework for single pass approximate quantile finding algorithms. This framework included several known algorithms as special cases. We had identified a new algorithm, within the framework, which had a significantly smaller requirement for main memory than other known algorithms. In this paper, we address two issues left open in our earlier paper. First, all known and space efficient algorithms for approximate quantile finding require advance knowledge of the length of the input sequence. Many important database applications employing quantiles cannot provide this information. In this paper, we present a novel non-uniform random sampling scheme and an extension of our framework. Together, they form the basis of a new algorithm which computes approximate quantiles without knowing the input sequence length. Second, if the desired quantile is an extreme value (e.g., within the top 1% of the elements), the space requirements of currently known algorithms are overly pessimistic. We provide a simple algorithm which estimates extreme values using less space than required by the earlier more general technique for computing all quantiles. Our principal observation here is that random sampling is quantifiably better when estimating extreme values than is the case with the median.
Cited by 198 works. doi:10.1145/304181.304204 Open-access PDF
Authors
References
- Elements of Information Theory
- Probability Inequalities for sums of Bounded Random Variables
- Access path selection in a relational database management system
- Time bounds for selection
- Probability Inequalities for Sums of Bounded Random Variables
- Random sampling with a reservoir
- Improved histograms for selectivity estimation of range predicates
- New sampling-based summary statistics for improving approximate query answers
- Fast incremental maintenance of approximate histograms
- Approximate medians and other quantiles in one pass and with limited memory