A Case for Customizing Estimators: Coordinated Samples

Edith Cohen, Haim Kaplan

Abstract

Random samples are lossy summaries which allow queries posed over the data to be approximated by applying an appropriate estimator to the sample. The effectiveness of sampling, however, hinges on estimator selection. The choice of estimators is subjected to global requirements, such as unbiasedness and range restrictions on the estimate value, and ideally, we seek estimators that are both efficient to derive and apply and admissible (not dominated, in terms of variance, by other estimators). Nevertheless, for a given data domain, sampling scheme, and query, there are many admissible estimators. We study the choice of admissible nonnegative and unbiased estimators for monotone sampling schemes. Monotone sampling schemes are implicit in many applications of massive data set analysis. Our main contribution is general derivations of admissible estimators with desirable properties. We present a construction of order-optimal estimators, which minimize variance according to any specified priorities over the data domain. Order-optimality allows us to customize the derivation to common patterns that we can learn or observe in the data. When we prioritize lower values (e.g., more similar data sets when estimating difference), we obtain the $L^*$ estimator, which is the unique monotone admissible estimator. We show that the $L^*$ estimator is 4-competitive and dominates the classic Horvitz-Thompson estimator. These properties make the $L^*$ estimator a natural default choice. We also present the $U^*$ estimator, which prioritizes large values (e.g., less similar data sets). Our estimator constructions are both easy to apply and possess desirable properties, allowing us to make the most from our summarized data.

Introduction

In the analysis of massive datasets across distributed platforms, exact query processing is often prohibitively slow or resource-intensive. To mitigate this, systems rely on random sampling. A powerful technique in this domain is coordinated sampling (or Permanent Random Numbers), where a consistent random seed is used to sample corresponding items across different data instances. This creates a "monotone sampling scheme," where the sample reveals exact values for sampled items and upper bounds for unsampled ones. The core challenge lies in estimator selection: how to mathematically estimate the true answer from this partial information while ensuring the estimator is unbiased, nonnegative, and variance-optimal.

Methodology: $L^*$ and $U^*$ Estimators

This paper frames estimator derivation as an optimization problem over the "optimal range" of possible estimates for a given sample outcome. By targeting the infimum (lower extreme) of this range, we derive the $L^*$ estimator. Conversely, aiming for the supremum (upper extreme) yields the $U^*$ estimator. These estimators are solved via first-order differential/integral equations, making them computationally efficient for arbitrary query functions.

Example 1: A synthetic dataset with 3 instances and 8 items used to illustrate the mathematical derivations of the proposed estimators.

A key innovation is the concept of order-optimality, which allows for customization. By defining a partial order over the data domain, one can prioritize lower variance for specific, likely data patterns. For example, when comparing highly similar datasets, the $L^*$ estimator is naturally optimized to prioritize lower difference values.

Key Results and Theoretical Guarantees

Theoretical analysis reveals that classic approaches like the Horvitz-Thompson (HT) estimator leave significant performance on the table. The $L^*$ estimator strictly dominates HT, meaning it provides equal or lower variance on every possible data vector. Furthermore, the paper establishes that the $L^*$ estimator is 4-competitive. This is a major theoretical advancement, guaranteeing that its variance will never exceed four times the variance of the absolute best possible estimator for any given input.

Comparison of estimator values for $L_p$ difference queries across different norms ($p=0.5, 1, 2$), demonstrating the behavior of the derived bounds and estimators.

The $L^*$ estimator is also proven to be the unique admissible monotone estimator. These properties, combined with explicit computable integral equations, make the theory practically implementable for database engineers and data scientists working with large-scale summaries.

Conclusion

By moving beyond one-size-fits-all estimation, this work provides a framework for making the most of summarized data through customization. While the 4-competitive ratio is a significant milestone, future work remains to close the gap toward the theoretical floor of 1.4. The monotone sampling formulation also shows promise for broader applications, such as similarity estimation in social networks and pattern recognition.

Summary updated

BibTeX
@misc{cohen2012case,
  author = {Edith Cohen and Haim Kaplan},
  title = {{A Case for Customizing Estimators: Coordinated Samples}},
  year = {2012},
  eprint = {1212.0243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1212.0243},
}
Figure