Documentation

CslibFrontier.Probability.OptimalStopping.ProphetSecretary

The prophet secretary inequality #

In the prophet secretary problem ([EHLM17]), n independent (not necessarily identically distributed) nonnegative values X₀, …, Xₙ₋₁ with laws μ : Fin n → PMF ℝ≥0 arrive in a uniformly random order σ : Equiv.Perm (Fin n). Unlike the adversarial-order prophet inequality, whose tight competitive ratio is 1/2, random arrival order breaks the 1/2 barrier and permits a 1 - 1/e approximation (1/2 < 1 - Real.exp (-1)).

Following the single-threshold randomized tie-breaking approach of [EHKS18], a single threshold τ : ℝ≥0 and independent tie-breaking coin coin : PMF Bool (reusing Prophet.withCoin, Prophet.tieRule, and Prophet.tieExpectedReward) suffice to achieve 1 - 1/e for arbitrary discrete nonnegative laws μ (with atoms, countable support, and no integrability hypothesis):

  1. Let rᵢ = P(¬ acceptᵢ) be the rejection probability of item i under (τ, coin). Choose (τ, coin) so that the overall rejection probability satisfies ∏ᵢ rᵢ = e⁻¹ (exists_prod_rejectProb_eq_exp_neg_one), by taking an upper (1 - e⁻¹)-quantile of maxᵢ Xᵢ and solving for the tie-breaking bias via the intermediate value theorem.
  2. For each permutation σ, the threshold part of tieExpectedReward equals τ (1 - ∏ᵢ rᵢ) = τ (1 - e⁻¹), independent of σ.
  3. Averaging over σ ~ uniformOfFintype (Equiv.Perm (Fin n)), the probability that no item arriving before i is accepted equals the Beta-integral polynomial ∫₀¹ ∏_{j ≠ i} (1 - t (1 - rⱼ)) dt. By weighted AM–GM, 1 - t (1 - rⱼ) ≥ rⱼ^t, so the integrand is pointwise at least (∏ⱼ rⱼ)^t = e⁻ᵗ, whose integral over [0, 1] is 1 - e⁻¹.
  4. Combining both parts with Prophet.expectedMax_le_add_sum gives ENNReal.ofReal (1 - Real.exp (-1)) * expectedMax (List.ofFn μ) ≤ secretaryTieExpectedReward τ coin μ (exists_prophetSecretary_bound).

Because the independent tie-breaking coins are sampled by arrival position independently of the realized arrival permutation σ, expressing secretaryTieExpectedReward τ coin μ as the finite average over deterministic coin assignments b : Fin n → Bool and picking a maximizing b produces a single σ-independent deterministic online stopping rule stop : List ℝ≥0 → Bool achieving at least (1 - 1/e) · E[max] (exists_prophetSecretary_deterministic_bound).

Main definitions #

Main results #

References #

Expected reward of the single-threshold rule (τ, coin) when items with laws μ arrive in a uniformly random order σ : Equiv.Perm (Fin n).

Expected reward of a deterministic online stopping rule stop (independent of the realized arrival permutation σ) when items with laws μ arrive in a uniformly random order σ : Equiv.Perm (Fin n).

Beta integral and permutation-averaged survival probability #

Existence of a single threshold with overall rejection probability e⁻¹ #

Exact decomposition of tieExpectedReward for non-identical laws #

The 1 - 1/e prophet secretary inequality #

Prophet secretary bound for a calibrated threshold: if (τ, coin) has overall rejection probability ∏ᵢ P(¬ acceptᵢ) = e⁻¹, then tieRule τ under uniform random arrival order achieves at least (1 - 1/e) · E[max].

The prophet secretary inequality ([EHLM17]; single-threshold proof after [EHKS18]): for any n : ℕ and independent nonnegative distributions μ : Fin n → PMF ℝ≥0, there exists a single threshold τ and tie-breaking coin coin such that under uniformly random arrival order, the online threshold algorithm collects at least (1 - 1/e) · E[max].

Deterministic prophet secretary inequality: for any n : ℕ and independent nonnegative distributions μ : Fin n → PMF ℝ≥0, there exists a single deterministic online stopping rule stop : List ℝ≥0 → Bool (independent of the realized arrival order σ) whose expected reward under uniformly random arrival order is at least (1 - 1/e) · E[max].