arXiv:2610.20375cs.DSOct 2026

Manuscript Offprint

arXiv:2610.20375

Hypothesis Selection via Weighted Medians

Liang-Yu Zou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Given nn distributions (hypotheses) H={H1,...,Hn}\mathcal{H} = \{H_1, ..., 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/\delta)) target samples, running in O(nε−2log⁡(n/δ))O(n\varepsilon^{-2}\log(n/\delta)) time, with probability at least 1−δ1-\delta, returns HiH_i satisfying dTV(P,Hi)≤3min⁡i∈[n]dTV(P,Hi)+εd_{\mathrm{TV}}(P, H_i) \le 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}\delta^{-1}) of Aamand, Aliakbarpour, Chen, and Silwal (COLT 2026), thereby answering their Question 2.

1 Introduction

Selecting a probability distribution from a finite class is a basic task in statistical learning. The target distribution need not belong to the class: the aim is to compete with the best available distribution using samples from the target. In hypothesis selection, the quality of this approximation is measured in total variation distance, and the challenge is to obtain statistical guarantees with a running time that scales favorably with the number of distributions.

Let H={H1,...,Hn}\mathcal{H} = \{H_1, ..., H_n\} be a class of distributions, each a probability measure on a measurable space (X,B)(\mathcal{X}, \mathcal{B}), and let PP be the unknown target distribution. Fix a common dominating measure μ\mu for P,H1,...,HnP, H_1, ..., H_n, and write hi=dHi/dμh_i = dH_i/d\mu for the density of HiH_i. We have sample access to PP and sample and density-query access to every HiH_i; the density of PP is not available to the algorithm. Writing OPT=min⁡i∈[n]dTV(P,Hi)\mathrm{OPT} = \min_{i \in [n]} d_{\mathrm{TV}}(P, H_i), the goal is to return a probability measure QQ such that, with probability at least 1−δ1 - \delta,

dTV(P,Q)≤C⋅OPT+ε.d_{\mathrm{TV}}(P, Q)\le C\cdot\mathrm{OPT}+\varepsilon.

Here ε∈(0,1)\varepsilon \in (0,1) is the additive error and δ∈(0,1)\delta \in (0,1) is the failure probability. The selection is proper if Q∈HQ \in \mathcal{H}; otherwise, the algorithm is allowed to be improper.

Statistical guarantees. Classical minimum-distance methods achieve approximation factor C=3C = 3 using O(ε−2log⁡(n/δ))O(\varepsilon^{-2}\log(n/\delta)) samples from PP [Yat85, DL01]. The factor 3 is also optimal for proper selection with a sample size independent of the domain size [BKM19, AACS26]. Allowing an improper output improves the achievable factor to 2 [BKM19, BBK+^{+}22]. Thus, for proper selection, the remaining issue is how efficiently the optimal statistical guarantee can be attained.

Computational guarantees. Classical factor-3 selectors have cubic or quadratic running times in nn [DL01, MS08]. Aliakbarpour, Bun, and Smith [ABS24] obtained a nearly linear dependence on nn, with running time O~(n/(δ3ε3))\tilde{O}(n/(\delta^3\varepsilon^3)) and optimal target-sample complexity. Aamand, Aliakbarpour, Chen, and Silwal [AACS26] improved the running time to O~(n/(δε2))\tilde{O}(n/(\delta\varepsilon^2)) for δ>1/n\delta > 1/n. Selected bounds are compared in

AlgorithmRunning timeFailure probabilityComments
Minimum distance [Yat85, DL01]O(n3ε−2log⁡n)O(n^{3}\varepsilon^{-2}\log n)1/poly(n)1/\text{poly}(n)
Modified minimum distance [MS08]O(n2ε−2log⁡n)O(n^{2}\varepsilon^{-2}\log n)1/poly(n)1/\text{poly}(n)
Approx min distance [ABS24]O~(n/(δ3ε3))\tilde{O}(n/(\delta^{3}\varepsilon^{3}))δ\delta
Semi-distance threshold [AACS26, Theorem 1.3]O~(n/(δε2))\tilde{O}(n/(\delta\varepsilon^{2}))δ\deltaδ>1/n\delta > 1/n
This paper, Theorem 1.1O(nε−2log⁡(n/δ))O(n\varepsilon^{-2}\log(n/\delta))δ\delta

Table 1: Proper hypothesis selection with approximation factor 3. All rows use O(ε−2log⁡(n/δ))O(\varepsilon^{-2}\log(n/\delta)) target samples; for polynomially small failure probability, this is O(ε−2log⁡n)O(\varepsilon^{-2}\log n). More results are collected in [AACS26, Table 1].

Table 1. Aamand et al. ask whether proper selection can simultaneously achieve factor 3, O(ε−2log⁡(n/δ))O(\varepsilon^{-2}\log(n/\delta)) target samples, and running time O~(nlog⁡(1/δ)/ε2)\tilde{O}(n\log(1/\delta)/\varepsilon^2) [AACS26, Question 2]. We answer this question affirmatively.

Theorem 1.1. Let n≥1n \ge 1, 0<ε≤10 < \varepsilon \le 1, and 0<δ<10 < \delta < 1. Algorithm 1 returns a distribution Hi∈HH_i \in \mathcal{H} such that, with probability at least 1−δ1 - \delta,

dTV(P,Hi)≤3 OPT+ε.d_{\mathrm{TV}}(P,H_{i})\leq 3\ \mathrm{OPT} + \varepsilon.

The algorithm uses O(ε−2log⁡(n/δ))O(\varepsilon^{-2}\log(n/\delta)) target samples, and runs in O(nε−2log⁡(n/δ))O(n\varepsilon^{-2}\log(n/\delta)) time.