Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 1.41 KB

File metadata and controls

8 lines (6 loc) · 1.41 KB

New cardinality estimation algorithms for HyperLogLog sketches

Paper about the estimation of cardinalities from HyperLogLog sketches.

Abstract

This paper presents new methods to estimate the cardinalities of data sets recorded by HyperLogLog sketches. A theoretically motivated extension to the original estimator is presented that eliminates the bias for small and large cardinalities. Based on the maximum likelihood principle a second unbiased method is derived together with a robust and efficient numerical algorithm to calculate the estimate. The maximum likelihood approach can also be applied to more than a single HyperLogLog sketch. In particular, it is shown that it gives more precise cardinality estimates for union, intersection, or relative complements of two sets that are both represented by HyperLogLog sketches compared to the conventional technique using the inclusion-exclusion principle. All the new methods are demonstrated and verified by extensive simulations.

See also

The paper SetSketch: Filling the Gap between MinHash and HyperLogLog and corresponding GitHub project present a new data structure, which can be seen as a generalization of HyperLogLog, and whose estimators can therefore also be applied to HyperLogLog sketches.