Documentation

CslibFrontier.Probability.OptimalStopping.FullInfoSecretary

The full-information secretary problem #

In the full-information secretary problem (Gilbert and Mosteller, 1966), n candidates have independent Uniform[0, 1) qualities X_0, …, X_{n-1} observed sequentially. Upon observing X_i, the decision maker irrevocably decides whether to hire candidate i (winning iff X_i is the overall maximum) or reject and continue.

This module formalizes the exact Gilbert–Mosteller solution:

  1. Exact optimal thresholds gmThreshold r (r remaining candidates after the current one): gmThreshold 0 = 0, and for r ≥ 1, gmThreshold r ∈ [1/2, 1) is the unique root of ∑_{j=1}^r (t^{-j} - 1) / j = 1 (gmSum_gmThreshold, gmThreshold_strictMono). In arrival time, the decision thresholds gmThreshold (n - 1) > ⋯ > gmThreshold 0 = 0 are strictly decreasing, and gmThresholdRule n stops at the first record exceeding the current threshold.
  2. Backward-induction optimality: defining the value function gmValue by gmValue 0 m = 0 and gmValue (r + 1) m = m * gmValue r m + ∫ y in m..1, max (y^r) (gmValue r y), every measurable stopping rule satisfies winProb stop n ≤ gmValue n 0 (winProb_le_gmValue), and gmThresholdRule n attains equality (winProb_gmThresholdRule, winProb_le_winProb_gmThresholdRule).
  3. Closed-form formula and exact small-n values: gmValue n 0 = 1 / n + (1 / n) * ∑_{k=1}^{n-1} ∑_{j=1}^k (gmThreshold k)^{n - j} / (n - j) (gmValue_zero_eq_sum), yielding winProb (gmThresholdRule 1) 1 = 1, winProb (gmThresholdRule 2) 2 = 3 / 4, and winProb (gmThresholdRule 3) 3 = (293 + 48 * √6) / 600.
  4. Monotonicity, Gilbert–Mosteller limit, and strict separation from no-information: A minimum-deletion coupling proves gmValue (n + 1) 0 ≤ gmValue n 0 for all n ≥ 1 (gmValue_zero_succ_le). As n → ∞, gmValue n 0 converges to the Gilbert–Mosteller constant gilbertMostellerConst ≈ 0.580164… (tendsto_gmValue_zero, gilbertMostellerConst_le_gmValue_zero), which is rigorously bracketed in (58 / 100, 581 / 1000) (gilbertMostellerConst_gt_58_div_100, gilbertMostellerConst_lt_581_div_1000). Consequently, for every n ≥ 1, 58 / 100 < winProb (gmThresholdRule n) n, and for every n ≥ 2 and every rank-based (no-information) rule rule, Secretary.successProb rule n < winProb (gmThresholdRule n) n (secretary_successProb_lt_fullInfo).

Main definitions #

Main results #

References #

Model: i.i.d. Uniform[0, 1) observations and measurable stopping rules #

The i.i.d. Uniform[0, 1) product probability measure on Fin n → ℝ.

Instances For

    The stopping rule stop wins on the sequence x : Fin n → ℝ if it stops at some index i : Fin n attaining the overall maximum of x.

    The probability that stop selects the maximum of n i.i.d. Uniform[0, 1) draws.

    A deterministic stopping rule stop : List ℝ → Bool is measurable up to horizon n if each round's decision is a measurable function of the prefix observed so far.

    Gilbert–Mosteller thresholds #

    The Gilbert–Mosteller threshold sum S_r(x) = ∑_{j=1}^r (x^{-j} - 1) / j.

    The Gilbert–Mosteller optimal acceptance threshold when r candidates remain after the current one: gmThreshold 0 = 0, and for r ≥ 1, gmThreshold r ∈ [1 / 2, 1) is the unique root of gmSum r t = 1.

    Backward-induction value function and polynomial representation #

    The backward-induction optimal win probability V_r(m) when r observations remain and the running maximum of past observations is m ∈ [0, 1].

    The Gilbert–Mosteller optimal stopping rule for n candidates: stop at arrival i (after seeing past of length i < n) iff the current candidate x is a running maximum (∀ y ∈ past, y ≤ x) and exceeds the threshold gmThreshold (n - 1 - i).

    Backward-induction optimality of gmThresholdRule #

    Every measurable stopping rule wins with probability at most gmValue n 0.

    Exact win probability of the Gilbert–Mosteller threshold rule.

    Optimality of the Gilbert–Mosteller threshold rule ([GM66]): no measurable stopping rule beats gmThresholdRule n on n i.i.d. Uniform[0, 1) draws.

    Closed-form formula for gmValue n 0 and exact small-n values #

    theorem Cslib.Probability.OptimalStopping.FullInfoSecretary.gmValue_zero_eq_sum {n : ℕ} (hn : 1 ≤ n) :
    gmValue n 0 = 1 / ↑n + 1 / ↑n * ∑ k ∈ Finset.Icc 1 (n - 1), ∑ j ∈ Finset.Icc 1 k, gmThreshold k ^ (n - j) / ↑(n - j)

    Exact closed-form formula for the optimal full-information win probability: gmValue n 0 = 1 / n + (1 / n) * ∑_{k=1}^{n-1} ∑_{j=1}^k (gmThreshold k)^{n - j} / (n - j) for every n ≥ 1.

    Exact value for n = 1: winProb (gmThresholdRule 1) 1 = 1.

    Exact value for n = 2: winProb (gmThresholdRule 2) 2 = 3 / 4.

    Exact value for n = 3: winProb (gmThresholdRule 3) 3 = (293 + 48 * √6) / 600.

    Monotonicity via minimum-deletion coupling #

    Monotonicity of optimal full-information win probability via minimum-deletion coupling: for every n ≥ 1, gmValue (n + 1) 0 ≤ gmValue n 0.

    The optimal win probability gmValue n 0 is antitone on n ≥ 1.

    Asymptotic constant gmC, limit gilbertMostellerConst, and numeric bounds #

    The Gilbert–Mosteller equation function G(c) = ∫_0^1 (e^{c x} - 1) / x dx.

    The Gilbert–Mosteller threshold constant c ≈ 0.804352…, the unique positive root of ∫_0^1 (e^{c x} - 1) / x dx = 1.

    The limiting win-probability integral I(c) = ∫_0^1 ∫_0^1 exp(-c v / (1 - v t)) dt dv.

    The Gilbert–Mosteller constant c_GM ≈ 0.580164…, the limiting optimal win probability in the full-information secretary problem.

    Gilbert–Mosteller asymptotic limit ([GM66]): as n → ∞, the optimal full-information win probability gmValue n 0 converges to gilbertMostellerConst.

    For every n ≥ 1, the optimal full-information win probability is at least gilbertMostellerConst.

    Finite-M reduction of gmLimIntegral and rigorous numeric bracket (0.58, 0.581) #

    Rigorous upper bound on the Gilbert–Mosteller constant: gilbertMostellerConst < 581 / 1000.

    For every n ≥ 1, the Gilbert–Mosteller full-information rule wins with probability strictly exceeding 58 / 100 (and in fact at least gilbertMostellerConst > 0.58).

    Strict separation from the no-information secretary problem: for every n ≥ 2 and every rank-based rule rule : Secretary.Rule, the optimal full-information rule strictly beats the no-information success probability.