Documentation

CslibFrontier.Probability.OptimalStopping.ProphetIID

The i.i.d. prophet inequality with one randomized threshold #

When the n values are i.i.d., a single threshold does better than half the prophet's expected reward. Each value X ~ μ comes with an independent tie-breaking coin (withCoin). The rule tieRule τ accepts the first value above τ, or equal to τ when its coin shows true. one_sub_pow_mul_expectedMax_le proves that if this rule accepts each value with probability 1/n, it collects at least 1 - (1 - 1/n)ⁿ ≥ 1 - 1/e of E[max] (ofReal_one_sub_exp_mul_expectedMax_le). Such a threshold and coin exist for every law (exists_tieAccept_eq, from PMF.exists_tail_quantile). The coin fills the atom at τ, and it is needed for the constant 1 - (1 - 1/n)ⁿ: the library's optimal-stopping tests exhibit two i.i.d. values on which every deterministic time-invariant rule falls short of 1 - (1 - 1/2)².

The proof writes A = E[X; accept].

A randomized rule is a mixture of deterministic ones, so the optimal deterministic gambler does at least as well (tieExpectedReward_le_valueFrom). Hence optimalRule collects at least 1 - (1 - 1/n)ⁿ of E[max] on i.i.d. values (one_sub_pow_mul_expectedMax_le_expectedReward_optimalRule). The constant 1 - 1/e is not optimal for adaptive rules. The tight i.i.d. constant ≈ 0.745 and its matching threshold policies are not formalized here.

Main definitions #

Main results #

References #

The single-threshold 1 - 1/e guarantee is classical. It reappears, for random arrival orders, in the prophet-secretary literature, which also treats the optimal i.i.d. constant.

A value drawn from μ together with an independent tie-breaking coin.

Accept a value above τ, and a value equal to τ when the coin shows true.

The single-threshold rule with randomized tie-breaking.

The gambler collects the value, not the coin, at which it stops.

The expected reward of tieRule τ on independent values with laws laws, each with an independent coin.

theorem Cslib.Probability.OptimalStopping.Prophet.tsum_withCoin_mul (coin : PMF Bool) (μ : PMF NNReal) (f : NNReal × Bool → ENNReal) :
∑' (o : NNReal × Bool), (withCoin coin μ) o * f o = ∑' (x : NNReal), μ x * (coin true * f (x, true) + coin false * f (x, false))

An expectation under withCoin coin μ averages over the value and the independent coin.

The probability that tieAccept τ accepts a value is P(X > τ) + P(coin) P(X = τ).

The i.i.d. prophet inequality with one randomized threshold. If tieRule τ, with a tie-breaking coin, accepts each of n i.i.d. values with probability 1/n, it collects at least 1 - (1 - 1/n)ⁿ of the prophet's expected reward.

The i.i.d. prophet inequality, 1 - 1/e form.

theorem Cslib.Probability.OptimalStopping.Prophet.exists_tieAccept_eq (μ : PMF NNReal) {q : ENNReal} (hq : 0 < q) (hq1 : q ≤ 1) :
∃ (τ : NNReal) (coin : PMF Bool), (withCoin coin μ).toOuterMeasure {o : NNReal × Bool | tieAccept τ o = true} = q

Every acceptance probability q ∈ (0, 1] is attained by a threshold with a tie-breaking coin.

The i.i.d. prophet inequality: for n i.i.d. values, some threshold with a tie-breaking coin collects at least 1 - (1 - 1/n)ⁿ ≥ 1 - 1/e of the prophet's expected reward.

A randomized threshold collects no more than the optimal deterministic gambler.

The optimal gambler on i.i.d. values collects at least 1 - (1 - 1/n)ⁿ ≥ 1 - 1/e of the prophet's expected reward.