Abstract: Estimating the empirical distribution of a scalar-valued data set is a basic and fundamental task. In this paper, we tackle the problem of estimating an empirical distribution in a setting with two challenging features. First, the algorithm does not directly observe the data; instead, it only asks a limited number of threshold queries about each sample. Second, the data are not assumed to be independent and identically distributed; instead, we allow for an arbitrary process generating the samples, including an adaptive adversary. These considerations are relevant, for example, when modeling a seller experimenting with posted prices to estimate the distribution of consumers' willingness to pay for a product: offering a price and observing a consumer's purchase decision is equivalent to asking a single threshold query about their value, and the distribution of consumers' values may be non-stationary over time, as early adopters may differ markedly from late adopters. Our main result quantifies, to within a constant factor, the sample complexity of estimating the empirical CDF of a sequence of elements of $[n]$, up to $\varepsilon$ additive error, using one threshold query per sample. The complexity depends only logarithmically on $n$, and our result can be interpreted as extending the existing logarithmic-complexity results for noisy binary search to the more challenging setting where noise is non-stochastic. Along the way to designing our algorithm, we consider a more general model in which the algorithm is allowed to make a limited number of simultaneous threshold queries on each sample. We solve this problem using Blackwell's Approachability Theorem and the exponential weights method. As a side result of independent interest, we characterize the minimum number of simultaneous threshold queries required by deterministic CDF estimation algorithms.
Introduction
Estimating the Cumulative Distribution Function (CDF) of a dataset is a cornerstone of statistical analysis. However, in many real-world scenarios, researchers and practitioners face two significant hurdles: limited visibility into the data and the presence of non-random, potentially adversarial data generation processes.
Consider a seller attempting to determine the "willingness to pay" distribution of a customer base. The seller cannot directly observe a customer's internal budget; they can only observe whether a customer purchases an item at a specific price. This interaction is a threshold query: "Is your value $x$ less than or equal to my price $q$?" Furthermore, standard statistical assumptions of independent and identically distributed (i.i.d.) data often fail in practice. Early adopters may have significantly higher budgets than later customers, or customers may adjust their behavior based on observed pricing trends. This paper addresses these challenges by providing tight bounds on the sample complexity of CDF estimation in a non-stochastic, query-limited environment.
The Problem of Non-Stochastic Data
In the non-stochastic (or adversarial) setting, data points are not drawn from a fixed distribution. Instead, they can be chosen by an adaptive adversary who observes the algorithm's previous queries and responses. The goal is to estimate the empirical CDF of the sequence of $T$ samples $x_1, x_2, \dots, x_T$ to within an additive error of $\epsilon$ under the Kolmogorov-Smirnov distance ($L_\infty$ norm).
The central question is: How many samples (threshold queries) are required to achieve this accuracy when the data is generated by a potentially tricky adversary? Surprisingly, this research demonstrates that the sample complexity in this adversarial setting is asymptotically identical to the simpler stochastic setting, growing only logarithmically with the size of the domain $n$.
Methodology: From Games to Estimates
The authors develop their estimation algorithm by first considering a more powerful model and then scaling it down to the single-query constraint.
1. The $k$-Threshold Query Model ($k$-TQM)
They begin by analyzing a setting where the algorithm can ask $k$ simultaneous threshold queries for each sample. This provides a richer information set per sample, allowing for a more robust estimation of the underlying distribution.
2. Blackwell’s Approachability and Multiplicative Weights
The estimation problem is framed as a repeated game between the algorithm and an adversary. To solve this, the authors utilize Blackwell’s Approachability Theorem, which provides conditions under which a player can force the average payoff of a game into a target set. By combining this with a version of the Multiplicative Weights Update (Hedge) method, the algorithm learns to prioritize queries in regions of the distribution where its current estimate is most uncertain.
3. Importance Weighting Simulation
To bridge the gap between the $k$-query model and the practical 1-query model, the authors employ a randomized simulation. The algorithm calculates the $k$ queries it would ideally ask, randomly selects one to perform, and then uses importance weighting to generate an unbiased estimate of the results for all $k$ queries. This allows the algorithm to maintain the convergence properties of the multi-query model while only requiring a single sample per step.
Key Results and Insights
Tight Complexity Bounds
The paper establishes that the sample complexity for estimating a CDF to within $\epsilon$ error using one query per sample is $\Theta(\frac{\log n}{\epsilon^3})$. This result is an exponential improvement over naive algorithms that require $O(n \log n)$ samples. Crucially, the authors show that their lower bound holds even for i.i.d. data, proving their algorithm is as efficient as theoretically possible.
The Deterministic Phase Transition
A significant finding is the characterization of the "deterministic threshold." The authors prove that for an algorithm to be 100% certain (deterministic) in its estimate, it must have a query budget of at least $k \ge 1/2\epsilon - 1$. If the query budget is lower than this threshold, randomization is strictly necessary to achieve the desired accuracy against an adversary.
Discussion and Future Directions
While this work provides a definitive answer for scalar-valued CDF estimation in adversarial settings, several avenues for future research remain:
- Continuous Domains: The current model assumes a discrete domain of size $n$. While $n$ can be large to approximate continuous data, a direct approach for continuous-support settings is yet to be developed.
- Alternative Metrics: The study focuses on the $L_\infty$ norm. Future work could explore other metrics, such as the Earth Mover’s Distance (Wasserstein metric).
- Non-Adaptivity: The proposed algorithms are fully adaptive, requiring the next query to be chosen based on previous results. In high-latency systems, non-adaptive algorithms (where queries are chosen upfront) are preferred, though they likely face higher sample complexity.
- High-Dimensional Data: Extending these results to multivariate distributions—where samples are vectors and queries are linear thresholds—presents a significantly more complex challenge.
By bridging game theory and statistical estimation, this research provides a robust framework for understanding how to extract maximum information from limited, non-random data sources.
Summary updated