New cardinality estimation algorithms for HyperLogLog sketches

Otmar Ertl
2/4/2017
38 citations
cs.DS

Official code: oertl/hyperloglog-sketch-estimation-paper (64 stars, TeX, last commit 2021-05-18).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Paper about the estimation of cardinalities from HyperLogLog sketches

646TeX, C++Apr 15, 20165 years ago
cardinality-estimationdata-sketcheshyperlogloghyperloglog-sketchessketch-data-structures

Similar Papers

Cite this paper

@article{ertl2017cardinality,
  title  = {New cardinality estimation algorithms for HyperLogLog sketches},
  author = {Otmar Ertl},
  year   = {2017},
  eprint = {1702.01284},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1702.01284}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1702.01284.svg)](https://codeofpaper.com/paper/1702.01284)

Discussion