arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1801.09039cs.DB
收藏

方差最优离线和流式分层随机抽样

Variance-Optimal Offline and Streaming Stratified Random Sampling

Trong Duc Nguyen, Ming-Hung Shih, Divesh Srivastava, Srikanta Tirthapura, Bojian Xu

摘要:

分层随机抽样(SRS)是一种基本的抽样技术,它使用小样本为聚合查询提供准确的估计,并已被广泛用于近似查询处理。SRS中的一个关键问题是如何在不同层次之间划分目标样本量。虽然内曼分配提供了一种使用该样本最小化估计方差的解决方案,但它是在假设每个层都很丰富的情况下工作的,即,有大量的数据点可供选择。这个假设通常不成立:一个或多个层可能是有界的,并且可能不包含大量的数据点,即使总数据大小可能很大。我们首先提出VOILA,一个离线的方法,用于分配样本量的阶层在方差最优的方式,即使是一个或多个阶层可能是有界的情况下。接下来,我们考虑连续到达的流数据上的SRS。我们给出了一个下界,即SRS的任何流算法必须(在最坏的情况下)有一个偏离最优值Ω(r)因子的方差,其中r是层的数量。我们提出了S-VOILA,一个实用的流算法SRS是局部方差最优的样本大小分配到不同的阶层。在真实数据和合成数据上的实验结果表明,VOILA分配的方差比Neyman分配的方差小1.4 ~ 50.0倍。流算法S-VOILA产生的方差通常接近VOILA,VOILA是预先给定的整个输入。

英文摘要:

Stratified random sampling (SRS) is a fundamental sampling technique that provides accurate estimates for aggregate queries using a small size sample, and has been used widely for approximate query processing. A key question in SRS is how to partition a target sample size among different strata. While Neyman allocation provides a solution that minimizes the variance of an estimate using this sample, it works under the assumption that each stratum is abundant, i.e., has a large number of data points to choose from. This assumption may not hold in general: one or more strata may be bounded, and may not contain a large number of data points, even though the total data size may be large. We first present VOILA, an offline method for allocating sample sizes to strata in a variance-optimal manner, even for the case when one or more strata may be bounded. We next consider SRS on streaming data that are continuously arriving. We show a lower bound, that any streaming algorithm for SRS must have (in the worst case) a variance that is Ω(r) factor away from the optimal, where r is the number of strata. We present S-VOILA, a practical streaming algorithm for SRS that is locally variance-optimal in its allocation of sample sizes to different strata. Our result from experiments on real and synthetic data show that VOILA can have significantly (1.4 to 50.0 times) smaller variance than Neyman allocation. The streaming algorithm S-VOILA results in a variance that is typically close to VOILA, which was given the entire input beforehand.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑