In statistics, universal hypothesis testing is a generalization of binary simple hypothesis testing. The universal problem is to distinguish between a simple null hypothesis , and the most general composite alternative , using independent and identically distributed samples from . The problem was first described in Wassily Hoeffding's work on optimal tests for multinomial distributions, which focused on the asymptotics of the problem.
The setting is sometimes referred to as goodness of fit testing or one-sample testing. It is similar in principle to the identity testing problem, in which we are promised that an unknown distribution is either exactly or -far from in some statistical distance. In certain circumstances "universal hypothesis testing" is used to refer to composite hypothesis testing problems using universal inference estimators, which are statistics that work without regularity assumptions.
Formulation
A simple binary hypothesis testing problem involves distinguishing between and , using samples . In the traditional setting of hypothesis testing are known apriori. A composite version of this problem involves sets of probability distributions , and requires distinguishing between and . Universal hypothesis testing corresponds to the special case of composite hypothesis testing where the null hypothesis is simple, and the alternative hypothesis is the set of all distributions other than , .
Given a fixed number of samples, these two hypothesis can be indistinguishable, as it is possible for the distribution under the alternative hypothesis to be arbitrarily close to the null hypothesis. To avoid this issue, the problem is often considered in the Neyman-Pearson setting, where the goal is to build a test that achieves a fixed type I error probability under the null hypothesis and then minimize the probability of type II error. Mathematical formulations of universal hypothesis testing generally assume that under the alternative hypothesis the distribution is fixed but unknown, to highlight the fact that universal tests do not require knowledge of the alternative to function.
Subsequent work on universal hypothesis testing includes second-order asymptotic analysis, universal outlier hypothesis testing, and universal quickest change detection. Universal hypothesis testing has been studied in regimes where the support of the underlying distributions grows as a proportion to the number of samples drawn from the distribution, in what is called the 'learning limited regime'. Applications for universal hypothesis testing include universal coding.
While Hoeffding's initial results were restricted to distributions with finite supports, later results developed solutions for continuous distributions using extensions of the Kullback-Leibler Divergence, or kernel methods.
Two-sample universal hypothesis testing
Another version of the universal hypothesis testing problem is the two-sample problem, in which the nominal distribution is also unknown, and all inference is made using samples from both and .
Gutman setting
The Gutman hypothesis testing problem inolves three unknown distributions, , where samples are provided from each distribution. In this setting, the hypothesis is
The samples from are referred to as the training samples, and the samples from are known as the test samples. This has a natural connection to the binary classification problem in statistical learning theory.
Examples
As an example, we might want to know if a particular coin was fair, i.e. or not, i.e. , where denote the coin coming up heads or tails.
↑Moniri, Behrad. "Universal Inference"(PDF). engineering.upenn.edu. University of Pennsylvania. Archived from the original(PDF) on 27 September 2026. Retrieved 27 September 2026.
↑Zeitouni, O.; Gutman, M. (March 1991). "On universal hypotheses testing via large deviations". IEEE Transactions on Information Theory. 37 (2): 285–290. Bibcode:1991ITIT...37..285Z. doi:10.1109/18.75244.
12Kelly, Benjamin G.; Tularak, Thitidej; Wagner, Aaron B.; Viswanath, Pramod (2010). "Universal hypothesis testing in the learning-limited regime". IEEE International Symposium on Information Theory, ISIT 2010, June 13–18, 2010, Austin, Texas, USA, Proceedings. IEEE. pp.1478–1482. doi:10.1109/ISIT.2010.5513583.
↑Harsha, K. V.; Ravi, Jithin; Koch, Tobias (October 2025). "On the Second-Order Asymptotics of the Hoeffding Test and Other Divergence Tests". IEEE Transactions on Information Theory. 71 (10): 7459–7483. arXiv:2403.03537. Bibcode:2025ITIT...71.7459H. doi:10.1109/TIT.2025.3588194.
↑Feder, M.; Merhav, N. (June 2002). "Universal composite hypothesis testing: a competitive minimax approach". IEEE Transactions on Information Theory. 48 (6): 1504–1517. Bibcode:2002ITIT...48.1504F. doi:10.1109/TIT.2002.1003837.
↑Gutman, M. (March 1989). "Asymptotically optimal classification for multiple tests with empirically observed statistics". IEEE Transactions on Information Theory. 35 (2): 401–408. Bibcode:1989ITIT...35..401G. doi:10.1109/18.32134.
↑Li, Yun; Veeravalli, Venugopal V. (2016). "Outlying sequence detection in large datasets: Comparison of universal hypothesis testing and clustering". 2016 IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP 2016, Shanghai, China, March 20–25, 2016. IEEE. pp.6180–6184. doi:10.1109/ICASSP.2016.7472865.