Abstract
On observing a sequence of i.i.d. data with distribution $P$ on $\mathbb{R}^d$, we investigate how to test the null hypothesis that $P$ has a log-concave density. This paper presents two primary findings: a negative result regarding the non-existence of test (super)martingales for this class, and a positive result demonstrating the consistency of a test based on universal inference. We prove that the set of log-concave distributions $\mathcal{L}$ is sufficiently rich that no non-trivial test martingales exist for it. Consequently, we construct an e-process—a process whose expectation at any stopping time is at most one—using universal inference. We show that this resulting test is consistent and derive its power against Hellinger alternatives, providing the first known sequential test for log-concavity.
Introduction
In modern statistics and machine learning, the assumption of log-concavity is a powerful tool. The family of log-concave distributions $\mathcal{L}$ is broad, encompassing the Normal, Exponential, and Logistic distributions, among others. These distributions are favored because their densities possess desirable mathematical properties, such as having a unique maximum likelihood estimate (MLE), making them a standard non-parametric assumption.
However, in many real-world applications, data arrives sequentially. This necessitates the development of sequential tests that allow researchers to stop as soon as sufficient evidence exists to reject a hypothesis, thereby saving time and samples. While sequential testing for parametric families is well-understood, testing non-parametric classes like log-concave distributions presents significant challenges. This paper addresses whether a valid sequential test for log-concavity even exists and how one might be constructed.
The Impossibility of Test Martingales
The standard instrument for sequential testing is the "test martingale"—a sequence of random variables that remains constant on average under the null hypothesis but grows if the hypothesis is false.
Using the geometric concept of fork-convexity, we first establish a striking negative result: there are no non-trivial test martingales or supermartingales for the set of all Gaussians $\mathcal{G}$, and by extension, for its superset $\mathcal{L}$. Essentially, the family of log-concave distributions is so "rich" and flexible that any process designed to be a martingale for every distribution in the class is forced to be non-increasing. In practical terms, it is impossible to place a "fair bet" against every possible log-concave opponent without losing money on average. This finding suggests that traditional martingale-based sequential analysis is fundamentally incompatible with the log-concave null hypothesis.
A Solution via Universal Inference
Given the impossibility of martingales, we turn to the framework of e-processes. An e-process is a more relaxed version of a martingale; it only requires that its expected value at any stopping time is at most 1 under the null. This provides the mathematical "breathing room" necessary to handle complex non-parametric hypotheses.
We construct our e-process using Universal Likelihood Ratios (ULR). The test statistic is formed as a ratio:
- The Numerator: A "nonanticipating" density estimate that predicts the next data point based on previous observations.
- The Denominator: The Maximum Likelihood Estimate (MLE) under the null hypothesis of log-concavity.
This approach, based on Universal Inference, avoids the often intractable likelihood asymptotics associated with log-concave densities. To manage the computational burden of recomputing the log-concave MLE, we implement a batching strategy, where the MLE is updated only after a fixed number of new samples arrive.
Experimental Evaluation
We evaluated the proposed test using synthetic "test-bed" distributions, primarily focusing on balanced two-component Gaussian mixtures. By adjusting the distance between the means ($\mu$), we can transition the distribution from log-concave (small $\mu$) to non-log-concave (large $\mu$).
Key Findings
- Validity: The test is $\alpha$-valid. If the data is log-concave, the probability of a false rejection is guaranteed to stay below the threshold $\alpha$. In simulations, the test proved conservative, with Type I error rates often hovering around 2% for a 10% threshold.
- Consistency: We prove that if the true distribution is not log-concave, the test will eventually reject the null hypothesis with probability 1 as more data is collected.
- Dimension Sensitivity: The power of the test decreases as the dimension $d$ increases. While the test detects non-log-concavity rapidly in 1D, higher dimensions require a larger "gap" between Gaussian components to trigger a rejection within a reasonable sample size (e.g., 100 samples).
- Computational Efficiency: Batching (e.g., updating every 20 samples) significantly reduces computation time with only a marginal impact on the test's power, making the method more viable for practical use.
Discussion and Future Work
While this paper provides the first sequential test for log-concavity, several challenges remain. The "curse of dimensionality" makes calculating the log-concave MLE difficult beyond $d=5$ or $6$. Furthermore, the test's power is highly dependent on the quality of the nonanticipating density estimator used in the numerator.
Future research could explore the use of random projections—projecting high-dimensional data onto multiple 1D lines and running the test on those projections. This could potentially improve both detection speed and computational efficiency in high-dimensional settings. Additionally, identifying optimal estimators for specific alternative hypotheses remains an open and promising area of study.
Summary updated