Space-Optimal Profile Estimation in Data Streams with Applications to Symmetric Functions
Abstract
We revisit the problem of estimating the profile (also known as the rarity) in the data stream model. Given a sequence of elements from a universe of size , its profile is a vector whose -th entry represents the number of distinct elements that appear in the stream exactly times. A classic paper by Datar and Muthukrishan from 2002 gave an algorithm which estimates any entry up to an additive error of using bits of space, where is the number of distinct elements in the stream. In this paper, we considerably improve on this result by designing an algorithm which simultaneously estimates many coordinates of the profile vector up to small overall error. We give an algorithm which, with constant probability, produces an estimated profile with the following guarantees in terms of space and estimation error: - For any constant , with bits of space, . - With bits of space, . In addition to bounding the error across multiple coordinates, our space bounds separate the terms that depend on and those that depend on and . We prove matching lower bounds on space in both regimes. Application of our profile estimation algorithm gives estimates within error of several symmetric functions of frequencies in bits. This generalizes space-optimal algorithms for the distinct elements problems to other problems including estimating the Huber and Tukey losses as well as frequency cap statistics.
Cite
@article{arxiv.2311.17868,
title = {Space-Optimal Profile Estimation in Data Streams with Applications to Symmetric Functions},
author = {Justin Y. Chen and Piotr Indyk and David P. Woodruff},
journal= {arXiv preprint arXiv:2311.17868},
year = {2023}
}
Comments
To appear in ITCS 2024