References & Citations
Computer Science > Data Structures and Algorithms
Title: Relative Error Streaming Quantiles
(Submitted on 3 Apr 2020 (this version), latest version 24 Aug 2023 (v4))
Abstract: Approximating ranks, quantiles, and distributions over streaming data is a central task in data analysis and monitoring. Given a stream of $n$ items from a data universe $\mathcal{U}$ (equipped with a total order), the task is to compute a sketch (data structure) of size $\mathrm{poly}(\log(n), 1/\varepsilon)$. Given the sketch and a query item $y \in \mathcal{U}$, one should be able to approximate its rank in the stream, i.e., the number of stream elements smaller than $y$.
Most works to date focused on additive $\varepsilon n$ error approximation, culminating in the KLL sketch that achieved optimal asymptotic behavior. This paper investigates multiplicative $(1\pm\varepsilon)$-error approximations to the rank. The motivation stems from practical demand to understand the tails of distributions, and hence for sketches to be more accurate near extreme values.
The most space-efficient algorithms that can be derived from prior work store either $O(\log(\varepsilon^2 n)/\varepsilon^2)$ or $O(\log^3(\varepsilon n)/\varepsilon)$ universe items. This paper presents a sketch of size $O(\log^{1.5}(\varepsilon n)/\varepsilon)$ (ignoring $\text{poly}(\log\log n, \log(1/\varepsilon))$ factors) that achieves a $1\pm\varepsilon$ multiplicative error guarantee, without prior knowledge of the stream length or dependence on the size of the data universe. This is within a $O(\sqrt{\log(\varepsilon n)})$ factor of optimal.
Submission history
From: Pavel Veselý [view email][v1] Fri, 3 Apr 2020 16:44:34 GMT (286kb,D)
[v2] Fri, 17 Jul 2020 15:52:25 GMT (126kb,D)
[v3] Fri, 28 May 2021 16:38:57 GMT (132kb,D)
[v4] Thu, 24 Aug 2023 11:07:09 GMT (137kb,D)
Link back to: arXiv, form interface, contact.