83

Using Exponential Histograms to Approximate the Quantiles of Heavy- and Light-Tailed Data

Abstract

Exponential histograms, with bins of the form {(ρk1,ρk]}kZ\left\{ \left(\rho^{k-1},\rho^{k}\right]\right\} _{k\in\mathbb{Z}}, for ρ>1\rho>1, straightforwardly summarize the quantiles of streaming data sets (Masson et al. 2019). While they guarantee the relative accuracy of their estimates, they appear to use only logn\log n values to summarize nn inputs. We study four aspects of exponential histograms -- size, accuracy, occupancy, and largest gap size -- when inputs are i.i.d. Exp(λ)\mathrm{Exp}\left(\lambda\right) or i.i.d. Pareto(ν,β)\mathrm{Pareto}\left(\nu,\beta\right), taking Exp(λ)\mathrm{Exp}\left(\lambda\right) (or, Pareto(ν,β)\mathrm{Pareto}\left(\nu,\beta\right)) to represent all light- (or, heavy-) tailed distributions. We show that, in these settings, size grows like logn\log n and takes on a Gumbel distribution as nn grows large. We bound the missing mass to the right of the histogram and the mass of its final bin and show that occupancy grows apace with size. Finally, we approximate the size of the largest number of consecutive, empty bins. Our study gives a deeper and broader view of this low-memory approach to quantile estimation.

View on arXiv
Comments on this paper