cs.DSOct 14, 2026

Hypothesis Selection via Weighted Medians

Authors: Liang-Yu Zou

Organizations: Aarhus University

Abstract

Given nn distributions (hypotheses) H={H1,…,Hn}\mathcal H=\{H_1,\ldots,H_n\} and samples from an unknown target distribution PP, proper hypothesis selection seeks a distribution whose total variation distance to PP is close to the best achievable within the known distributions. We give an algorithm that, using O(ε−2log⁡(n/δ))O(\varepsilon^{-2}\log(n/δ)) target samples, running in O(nε−2log⁡(n/δ))O(n\varepsilon^{-2}\log(n/δ)) time, with probability at least 1−δ1-δ, returns Hi^H_{\hat i} satisfying dTV(P,Hi^)≤3min⁡i∈[n]dTV(P,Hi)+ε.d_\mathrm{TV}(P,H_{\hat i})\leq 3\min_{i\in[n]}d_\mathrm{TV}(P,H_i)+\varepsilon. The algorithm achieves the optimal approximation factor and sample complexity. The running time improves the dependence on the failure probability from polynomial to logarithmic in the state-of-the-art bound O~(nε−2δ−1)\tilde{O}(n\varepsilon^{-2}δ^{-1}) of Aamand, Aliakbarpour, Chen, and Silwal (COLT 2026), thereby answering their Question~2.

Figures & tables

Explore similar work

Apr 15, 2025

Efficient and Stable Multi-Dimensional Kolmogorov-Smirnov Distance

We revisit extending the Kolmogorov-Smirnov distance between probability distributions to the multi-dimensional setting, and make new arguments about the proper way to approach this generalization. Our proposed formulation maximizes the difference over orthogonal dominating rectangular ranges (d-sided rectangles in R^d), and is an integral probability metric. We also prove that the distance between a distribution and a sample from the distribution converges to 0 as the sample size grows, and bound this rate. Moreover, we show that one can, up to this same approximation error, compute the distance efficiently in 4 or fewer dimensions; specifically, the runtime is near-linear in the size of the sample needed for that error. With this, we derive a delta-precision two-sample hypothesis test using this distance. Finally, we show these metrics and approximation properties do not hold for other popular variants.
Oct 21, 2026

Asymmetric Likelihood-Free Hypothesis Testing

In likelihood-free hypothesis testing (LFHT), given samples from two unknown distributions P,QP,Q on [n][n] with dTV(P,Q)≥ε\mathrm{d_{TV}}(P,Q)\geq\varepsilon, and from a third distribution D∈{P,Q}D\in\{P,Q\}, the goal is to identify whether D=PD=P or D=QD=Q. We study asymmetric likelihood-free hypothesis testing, where the sample budgets sPs_P and sQs_Q for PP and QQ may differ, and characterize the feasible triples (sP,sQ,sD)(s_P,s_Q,s_D) up to logarithmic factors. We establish that unequal reference budgets can give a polynomial saving. For instance, for constant separation, nn samples from PP and n3/4n^{3/4} from QQ allow testing with O~(n1/4)\widetilde O(n^{1/4}) samples from DD, whereas both existing baselines---symmetric LFHT and unequal-sample closeness testing---require Ω(n)Ω(\sqrt n) samples from DD. We further apply our results to non-adaptive distribution 2-clustering, where the sample allocation among kk distributions must be fixed before observing any data. We obtain matching upper and lower bounds for this problem up to logarithmic factors in terms of the domain size, number of distributions, smaller cluster size, and separation, both with one cluster distribution known and with both unknown. Comparing with known bounds for adaptive sample allocation gives a worst-case adaptivity gap of Θ~(k1/4)\widetildeΘ(k^{1/4}).
May 23, 2026

On the Sample Complexity of Robust Binary Hypothesis Testing

We study the sample complexity of robust binary hypothesis testing under three standard contamination models: ε\varepsilon-additive (Huber), ε\varepsilon-subtractive, and ε\varepsilon-total variation (TV), denoted by nHub∗(ε)n^*_{\mathrm{Hub}}(\varepsilon), nSub∗(ε)n^*_{\mathrm{Sub}}(\varepsilon), and nTV∗(ε)n^*_{\mathrm{TV}}(\varepsilon), respectively. For subtractive contamination, we show that least favourable distributions exist and provide explicit formulas for the same, bringing this model in line with the classical Huber and TV models. Next we show that in all three models, sample complexity may be highly unstable in the contamination parameter ε\varepsilon, increasing by polynomial factors even for o(ε)o(\varepsilon) perturbations. Similarly, there may be polynomial factor gaps between the sample complexities when ε\varepsilon is known exactly versus when it is known up to o(ε)o(\varepsilon) error. Despite the instability of the sample complexity in all models, we show that the sample complexities across models are comparable up to constant-factor rescaling of ε\varepsilon. Specifically, for any fixed δ0>0δ_0>0, the following hold for all distributions pp and qq: (i) nHub∗(ε)≲nTV∗(ε)≲nHub∗(2ε)n^*_{\mathrm{Hub}}(\varepsilon) \lesssim n^*_{\mathrm{TV}}(\varepsilon) \lesssim n^*_{\mathrm{Hub}}(2\varepsilon), (ii) nSub∗(ε)≲nTV∗(ε)≲nSub∗((2+δ0)ε)n^*_{\mathrm{Sub}}(\varepsilon) \lesssim n^*_{\mathrm{TV}}(\varepsilon) \lesssim n^*_{\mathrm{Sub}}((2+δ_0)\varepsilon), and (iii) nSub∗(ε)≲nHub∗(ε)≲nSub∗((1+δ0)ε)n^*_{\mathrm{Sub}}(\varepsilon) \lesssim n^*_{\mathrm{Hub}}(\varepsilon) \lesssim n^*_{\mathrm{Sub}}((1+δ_0)\varepsilon), and the scaling constants are tight. Finally, we extend our results to adaptive versions of the contamination models.