arXiv:2610.25821math.STOct 2026

Manuscript Offprint

arXiv:2610.25821

Optimal Priors for Betting Tests with Bounded Payoffs: An Exact Efficiency Characterization

Francesco Orabona

Abstract

Testing by betting is a powerful framework that recasts hypothesis testing as a betting game. A popular approach uses an F-weighted portfolio with a predefined prior F. For suitable priors, this approach has recently been shown to achieve the optimal expected rejection time as the error probability goes to zero at a fixed alternative. Yet, the prior F changes how the portfolio test behaves near the null. This motivates the question: Which prior should we use in testing-by-betting algorithms? We study bounded scalar payoffs and introduce an efficiency measure that allows the error probability and alternative to vary jointly. Under mild assumptions, we prove that efficiency equals a logarithmic decay index of the prior near zero. This gives a necessary and sufficient condition for optimality: Beta priors have infinite efficiency, whereas suitable Robbins-type priors attain efficiency 1. As an application, we consider testing a specified mean of a bounded random variable and describe an implementation of the portfolio algorithm with almost-linear computational complexity.

1 Introduction

Suppose a hypothesis lets us place bets that are fair whenever it is true. The observations need not themselves be the quantity of interest: a bet may be based on a bounded score, a difference between two measurements, or an e-value supplied by another procedure. Our wealth over time represents the evidence against that hypothesis: if we gain enough money, the hypothesis must be false. This is the testing-by-betting framework [Shafer and Vovk, 2001, Shafer, 2021, Ramdas and Wang, 2025].

Here, we focus on scalar bounded payoffs. Write the payoff as Xi−μ0X_i - \mu_0, where Xi∈[0,1]X_i \in [0,1] and μ0∈(0,1)\mu_0 \in (0,1). Under a fair null, we assume E[Xi∣Fi−1]=μ0\mathbb{E}[X_i \mid \mathcal{F}_{i-1}] = \mu_0. We can set up our betting game so that an admissible fixed betting fraction β\beta gives wealth

Wealthn(β):=∏i=1n(1+β(Xi−μ0)).(1)\mathrm{Wealth}_{n}(\beta):=\prod_{i=1}^{n}(1+\beta(X_{i}-\mu_{0})). \tag{1}

This is a nonnegative martingale under the null, so Ville's inequality makes rejection at wealth 1/α1/\alpha a level- α\alpha test [Ville, 1939].

A core issue of this approach is choosing a suitable betting strategy. In fact, a strategy that works well for one alternative could work poorly for another, and we do not know the alternative in advance. A natural solution is to spread our initial wealth over fixed bets according to a prior FF:

WealthnF:=∫Wealthn(β)dF(β).\mathrm{Wealth}_{n}^{F}:=\int\mathrm{Wealth}_{n}(\beta)\mathrm{d}F(\beta).

This is known as an F-weighted portfolio for the case of two stocks [Cover, 1991, Cover and Ordentlich, 1996, Orabona and Jun, 2024, Orabona, 2026]. Using a prior F gives a valid test without choosing a single fixed bet, but leaves us with another choice: which prior should we use?

Recent optimality results by Waudby-Smith et al. [2026] and Agrawal et al. [2026] provide partial answers. In the bounded-mean setting, both give sufficient conditions for tests to attain

EQ[τα]∼ln⁡(1/α)ℓQ⋆asα→0(2)\mathbb{E}_{Q}[\tau_{\alpha}]\sim\frac{\ln(1/\alpha)}{\ell_{Q}^{\star}}\quad\mathrm{a s}\alpha\to0 \tag{2}

for each fixed alternative Q, where ℓQ⋆\ell_{Q}^{\star} is the largest expected log wealth of a fixed bet under Q, obtained by Kelly's criterion [Kelly, 1956, Breiman, 1961]. Agrawal et al. also study alternatives approaching the null: when the limiting null law has positive variance, they prove matching-order expected-time bounds at fixed error probability. Finally, they combine tests to attain both guarantees in their respective limits.

However, these results still leave the choice of the prior unresolved. In fact, the fixed-alternative limit in (2) can hold for priors that behave quite differently near the null, while a matching-order near-null bound still leaves the sharp prior-dependent constant unspecified. The prior's mass near the zero bet matters: Robbins-type priors yield Law-of-the-Iterated-Logarithm (LIL) boundaries, whereas smooth priors typically incur a larger logarithmic cost [Robbins, 1970, Orabona, 2018, Orabona and Jun, 2024]. So, the core question of this paper is which priors attain the optimal leading constant uniformly when the error probability and alternative vary together.

We propose to compare expected rejection times with

Bα(Q):=ln⁡1α+LL(ℓQ⋆)ℓQ⋆,whereLL(x):=ln⁡max⁡{1,ln⁡1x}.(3)B_{\alpha}(Q):=\frac{\ln\frac{1}{\alpha}+\mathrm{L L}(\ell_{Q}^{\star})}{\ell_{Q}^{\star}},\quad\mathrm{w h e r e}\quad\mathrm{L L}(x):=\ln\max\left\{1,\ln\frac{1}{x}\right\}. \tag{3}

The first term in (3) captures the cost of requesting a small error probability. The second captures adaptation to the scale of a near-null alternative, as suggested by sequential-testing results [Farrell, 1964, Robbins and Siegmund, 1974, Agrawal et al., 2026]. We propose as an efficiency criterion the worst-case ratio EQ[τα]/Bα(Q)\mathbb{E}_{Q}[\tau_{\alpha}]/B_{\alpha}(Q) as the benchmark diverges, allowing the error probability and the alternative to vary together. Here, smaller efficiency is better.

Our main contribution is to prove that every valid test has efficiency at least 1. Moreover, we give an exact characterization for F-weighted portfolios: their efficiency is equal to a logarithmic decay index measuring how quickly the prior's mass decays near the zero bet. So, for example, Beta priors, including the uniform and Krichevsky–Trofimov priors [Krichevsky and Trofimov, 1981], have the worst efficiency, equal to infinity. In contrast, Robbins-type priors with density proportional near zero to

1∣β∣ln⁡(1/∣β∣)(ln⁡ln⁡(1/∣β∣))1+η,η>0,\frac{1}{|\beta|\ln(1/|\beta|)(\ln\ln(1/|\beta|))^{1+\eta}},\qquad\eta>0,

have the optimal efficiency of 1.

A consequence of our result is that the exact F-weighted portfolio with the combined prior described in Orabona and Jun [2024, Remark 2] is optimal under our criterion. A further consequence is an exact rule for combining priors: the combined prior has the smallest logarithmic decay index on each side of zero, so two individually inefficient priors can together achieve efficiency 1.

Finally, as an example application, in Section 7 we consider the problem of testing whether a bounded random variable has a specified mean and describe an algorithm with almost-linear time evaluation of the resulting wealth process.

References (51)