NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Secretary Problems with Random Number of Candidates: How Prior Distributional Information Helps

Junhui Zhang, Patrick JailletarXiv 2023 · DOI

Abstract

The classical Secretary Problem assumes a fixed and known number of candidates, $n$. In many real-world applications, however, the total number of arrivals is uncertain. This paper investigates the Secretary Problem where the number of candidates $N$ is a random variable. We analyze how different levels of prior information—ranging from full distributional knowledge to limited samples—affect the achievable success probability. We demonstrate that simple threshold-based strategies are remarkably robust, providing a $1/e$-approximation of the optimal strategy in full-information settings and achieving minimax optimal results under uncertainty through randomization.

Introduction

The Secretary Problem is a foundational model in optimal stopping theory. In its standard form, an observer views $n$ candidates sequentially and must make an immediate, irrevocable decision to hire or reject each one based solely on their relative rank. The goal is to maximize the probability of selecting the single best candidate. The well-known optimal solution involves rejecting the first $n/e$ (approximately 37%) candidates and then selecting the first candidate who surpasses all previous ones.

While elegant, the assumption of a fixed $n$ is often unrealistic. In dynamic environments such as online ad auctions, high-frequency trading, or rapid-fire hiring cycles, the "time horizon" is frequently unknown. If the number of candidates is chosen by an adversary, the success probability can drop as low as $1/\sqrt{n}$. This research explores the middle ground: when $N$ is not fixed but follows a distribution $p$, how much does knowledge of $p$ help the decision-maker?

Information Regimes and Methodology

The study categorizes the decision-maker's knowledge into three distinct regimes:

  1. Full Information: The exact distribution $p$ of the number of candidates $N$ is known.
  2. Upper Bound Setting: The decision-maker only knows an upper bound $n$ on the maximum possible value of $N$ (or its expectation $\mathbb{E}[N]$).
  3. Sampling Setting: The distribution $p$ is unknown, but the decision-maker has access to $m$ independent samples of $N$ from prior instances.

The authors focus on single-threshold strategies, which involve observing $l-1$ candidates and then accepting the first "best-so-far" candidate at or after index $l$. The analysis utilizes Markov chain modeling to track the state of the search and minimax analysis to determine the best performance against the worst possible distributions. To handle the sampling regime, the authors introduce a "block-based" algorithm that partitions the range of $N$ into logarithmic buckets, allowing for efficient learning of the optimal threshold.

Key Theoretical Insights

The Robustness of Simple Strategies

A primary finding is that simplicity does not sacrifice significant performance. In the full-information setting, while the truly optimal strategy might be mathematically intricate, a simple single-threshold strategy is guaranteed to be a $1/e$-approximation of that optimum. This suggests that practitioners can rely on straightforward rules of thumb even when the arrival distribution is complex.

The Power of Randomization

When only an upper bound $n$ is known, no single fixed threshold can guarantee a high success rate. However, the authors prove that by randomizing the choice of the threshold, a decision-maker can achieve a success probability of approximately $1/\log(n)$. This is shown to be the minimax optimal success probability in the worst-case scenario. Interestingly, for "typical" distributions under a known upper bound, a fixed threshold of $n/e^2$ still yields a constant success probability of roughly 27% ($2/e^2$).

Sample Complexity

In the sampling regime, the research establishes that $O(1/\epsilon^2)$ samples are both necessary and sufficient to learn a strategy that is $\epsilon$-suboptimal compared to the full-information strategy. The success of this approach relies on "local insensitivity"—the fact that the success probability of a threshold strategy does not fluctuate wildly with minor changes in the distribution of $N$.

Extensions to General Online Problems

The techniques developed for the random-horizon Secretary Problem extend to other classic online optimization problems:

  • Matroid Secretary Problems: Selecting a set of candidates that form a basis in a matroid.
  • Prophet Inequalities: Comparing the performance of an online algorithm against an offline "prophet" who knows all values in advance.
  • Online Linear Programming: Making resource allocation decisions under uncertainty.

In these cases, uncertainty in the time horizon generally introduces a logarithmic penalty in the competitive ratio, mirroring the $1/\log(n)$ result found in the upper-bound secretary setting.

Conclusion and Future Directions

This work bridges the gap between the overly optimistic classical Secretary Problem and the overly pessimistic adversarial models. It demonstrates that even minimal distributional information allows for robust decision-making.

Future research may address the current model's assumption of independence between the number of candidates $N$ and their quality. In many markets, high arrival volume may correlate with higher-quality candidates. Additionally, while this paper provides a strong foundation for single-item selection, further exploration into multi-item constraints and tightening the logarithmic gaps in sample complexity remains an open area for the field.

Summary updated

BibTeX
@misc{zhang2023secretary,
  author = {Junhui Zhang and Patrick Jaillet},
  title = {{Secretary Problems with Random Number of Candidates: How Prior Distributional Information Helps}},
  year = {2023},
  eprint = {2310.07884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.07884},
}
Figure