用于估计分位数的节俭流:一个(或两个)内存就足够了
Frugal Streaming for Estimating Quantiles:One (or two) memory suffices
摘要:
现代应用程序需要处理数据流,以估计统计量,如分位数与少量的内存。事实上,在许多这样的应用中,需要为大量组中的每一个计算这样的统计量,这额外地限制了可用于任何特定组的流的存储器量。我们解决了这个挑战,并引入了节俭的流,这是一种算法,它只使用很少的-通常是子流-每组内存量。我们设计了一个节俭的算法,每组只使用一个单位的内存来计算每组的分位数。对于随机流的数据项是从一个独立的分布,我们分析和表明,该算法发现一个近似的分位数迅速,并保持稳定接近它。我们还提出了一个扩展的算法,使用两个单位的内存每组。我们表明,我们的节俭算法与现有的流媒体算法估计任何分位数,从HTTP跟踪和Twitter的真实世界的数据进行了广泛的实验,但这些现有的算法使用更多的空间,每组是不切实际的节俭应用程序;此外,两个内存节俭算法收敛速度显着快于一个内存算法。
英文摘要:
Modern applications require processing streams of data for estimating statistical quantities such as quantiles with small amount of memory. In many such applications, in fact, one needs to compute such statistical quantities for each of a large number of groups, which additionally restricts the amount of memory available for the stream for any particular group. We address this challenge and introduce frugal streaming, that is algorithms that work with tiny -- typically, sub-streaming -- amount of memory per group. We design a frugal algorithm that uses only one unit of memory per group to compute a quantile for each group. For stochastic streams where data items are drawn from a distribution independently, we analyze and show that the algorithm finds an approximation to the quantile rapidly and remains stably close to it. We also propose an extension of this algorithm that uses two units of memory per group. We show with extensive experiments with real world data from HTTP trace and Twitter that our frugal algorithms are comparable to existing streaming algorithms for estimating any quantile, but these existing algorithms use far more space per group and are unrealistic in frugal applications; further, the two memory frugal algorithm converges significantly faster than the one memory algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。