arXiv:2610.18723cs.ITOct 2026

Manuscript Offprint

arXiv:2610.18723

Optimal Support Size Testing

Qisheng Wang

Abstract

We present an optimal tester for support size that determines whether an unknown probability distribution is supported on nn elements or ε\varepsilon-far away (in total variation distance) with sample complexity Θ(nεlog⁡(n))\Theta(\frac{n}{\varepsilon\log(n)}), improving the prior best O(nεlog⁡(n)log⁡(min⁡{1ε,n}))O(\frac{n}{\varepsilon\log(n)}\log(\min\{\frac{1}{\varepsilon},n\})) due to Ferreira Pinto Jr. and Harms (STOC 2025). As a generalization, we provide a pretty good lower bound on support size.

1 Introduction

The support size of an unknown discrete probability distribution is an important measure of species diversity in ecology [FCW43]. The estimation of support size has been subsequently investigated in statistics from a theoretical perspective [Goo49, Goo53] (cf. [BF93]). Since “I don’t believe it is usually possible to estimate the number of unseen species [i.e., support size]” (quoting I. J. Good in [BF93]), the best we can hope is to consider weaker tasks with promise rather than estimation in all cases. Among them, support size testing is a basic statistical decision problem in property testing (cf. [Gol17, Section 11.4]).

Problem 1 (Support size testing). Given an unknown probability distribution p, the task is to determine whether p is supported on at most n elements or ε\varepsilon-far in total variation distance from any distribution supported on at most n elements. Formally, determine whether

Yes:∣supp⁡(p)∣≤norNo:Δn(p)≥ε,\mathrm{Yes:}\left|\operatorname{supp}(p)\right|\leq n\qquad or\qquad\mathrm{No:}\Delta_{n}(p)\geq\varepsilon,

with the promise that it is in either case. Here, supp⁡(p)={i:pi>0}\operatorname{supp}(p) = \{i: p_i > 0\} denotes the set of elements with nonzero probability, and Δn(p)=inf⁡q:∣supp⁡(q)∣≤ndTV⁡(p,q)\Delta_n(p) = \inf_{q: |\operatorname{supp}(q)| \leq n} d_{\operatorname{TV}}(p, q) denotes the total variation distance of pp to distributions supported on at most nn elements, where dTV⁡(p,q)=12∑i∣pi−qi∣d_{\operatorname{TV}}(p, q) = \frac{1}{2} \sum_i |p_i - q_i|.

This problem has been investigated in a series of works [GR22, AF24, AFL24, KLR25, FH25]. In particular, the prior best approach is with sample complexity O(nεlog⁡(n)log⁡(min⁡{1ε,n}))O(\frac{n}{\varepsilon \log(n)} \log(\min\{\frac{1}{\varepsilon}, n\})) due to [FH25], improving the prior approaches via learning histograms [VV11, VV17, HJW18, HO19] with sample complexity O(nε2log⁡(n))O(\frac{n}{\varepsilon^2 \log(n)}). However, the prior best lower bound is Ω(nεlog⁡(n))\Omega(\frac{n}{\varepsilon \log(n)}) implied by [VV11, Theorem 2] and [WY19, Proposition 1]. There still remains a gap of log⁡(min⁡{1ε,n})\log(\min\{\frac{1}{\varepsilon}, n\}) between the upper and lower bounds. In this paper, we present an optimal support size tester, thereby closing this gap.

Theorem 1.1 (Optimal support size testing). There is an algorithm for support size testing with optimal sample complexity Θ(nεlog⁡(n))\Theta(\frac{n}{\varepsilon \log(n)}).

*Qisheng Wang is with the School of Computer Science, Shanghai Jiao Tong University (e-mail: QishengWang1994@gmail.com).