Bayesian Optimal Stopping: Invincible Prophets and Achievable Philosophers
Abstract
We study Bayesian optimal stopping: a hidden world $H$ is drawn from $K$ worlds according to a known prior and determines the joint distribution of $n$ observations. A decision-maker selects one observation irrevocably to maximize its value, learning about the world as observations arrive. We compare algorithms against the Bayes-optimal online policy (the philosopher) and the offline optimum (the prophet). Our results show that the philosopher is achievable in that we find a $(1-\varepsilon)$-approximation of the Bayes-optimal policy that runs in time $\mathrm{poly}(|\mathcal{I}|^{\log^* |\mathcal{I}| + 1/\varepsilon} \cdot (1/\varepsilon)^{1/\varepsilon^2})$, where $|\mathcal{I}|$ is the size of the input. By contrast, the prophet is invincible and no algorithm can obtain a competitive ratio that substantially exceeds the worst-case guarantees. When the observations are conditionally independent and identically distributed given $H$, the secretary's rule is $1/e$-competitive. We show that no algorithm can guarantee a competitive ratio better than $1/e + 1/\mathrm{poly}(K)$ and this bound is attainable. Our approximation scheme builds on a primal improvement subroutine connecting the two benchmarks. Given an $α$-competitive algorithm against the prophet, we construct an algorithm with a strictly better approximation factor against the philosopher. We randomize between the baseline algorithm and a threshold algorithm based on dual martingales that exploit the Bayesian structure. Each improvement yields a tighter dual martingale, enabling repeated primal-dual updates. We approximate these martingales in polynomial time using importance-weighted Monte Carlo sampling. Dual martingales also establish our upper bound on the competitive ratio and may be useful for more general Bayesian online optimization problems.