Proof: Accelerating Approximate Aggregation Queries with Expensive Predicates
arXiv:2107.12525
Abstract
Given a dataset , we are interested in computing the mean of a subset of which matches a predicate. ABae leverages stratified sampling and proxy models to efficiently compute this statistic given a sampling budget . In this document, we theoretically analyze ABae and show that the MSE of the estimate decays at rate , where for some integer constant and and represent the number of samples used in Stage 1 and Stage 2 of ABae respectively. Hence, if a constant fraction of the total sample budget is allocated to each stage, we will achieve a mean squared error of which matches the rate of mean squared error of the optimal stratified sampling algorithm given a priori knowledge of the predicate positive rate and standard deviation per stratum.