Documentation

CslibFrontier.Probability.OptimalStopping.Prophet

The prophet inequality #

A gambler observes independent nonnegative values X₁, …, Xₙ one at a time, Xᵢ drawn from the i-th law of laws, and may stop once, collecting the current value; a gambler who never stops collects nothing. A prophet who sees all values in advance collects E[max Xᵢ] (expectedMax laws). The prophet inequality of Krengel and Sucheston says that the gambler can guarantee half of this, and Samuel-Cahn showed that a single threshold suffices: accept the first value of at least (or more than) a fixed t.

expectedMax_le_two_mul_expectedReward is the threshold form proved here. Let R be the probability that the rule accepts no value. If t and R lie on opposite sides of E[max]/2 and 1/2, that is, 2t ≤ E[max] and 1 ≤ 2R, or E[max] ≤ 2t and 2R ≤ 1, then the rule's expected reward is at least E[max]/2. The proof bounds the reward from below by t (1 - R) + R ∑ᵢ E[(Xᵢ - t)⁺] and the maximum from above by t + ∑ᵢ (Xᵢ - t)⁺, both arranged without subtracting extended reals. Two choices of threshold make the hypothesis automatic:

The factor 1/2 is optimal: for tightLaws k, a sure value 1 followed by k + 1 with probability 1/(k + 1) and 0 otherwise, every rule, even one using the whole history, has expected reward at most 1 while E[max] = (2k + 1)/(k + 1) (exists_tightLaws_lt).

The values are ℝ≥0-valued with arbitrary countable support. E[max] may be infinite; the threshold form needs no integrability. A gambler who never stops gets 0; Samuel-Cahn's rules, which take the last value in that case, collect at least as much, so the bounds apply to them too.

Main definitions #

Main results #

References #

The largest value of a list, and 0 for the empty list.

The gambler collects the value at which it stops.

The expected reward of the stopping rule stop on independent values with laws laws.

The prophet's expected reward, the expected maximum of the values.

The rule that accepts the current value x exactly when a x, ignoring the history.

Accept the first value of at least t.

Accept the first value of more than t.

The probability that acceptRule a accepts no value.

No rule collects more than the maximum.

The gambler never beats the prophet.

theorem Cslib.Probability.OptimalStopping.Prophet.listMax_lt_iff {τ : NNReal} (hτ : 0 < τ) (xs : List NNReal) :
listMax xs < τ ↔ ∀ x ∈ xs, x < τ
theorem Cslib.Probability.OptimalStopping.Prophet.expectedMax_le_add_sum (t : NNReal) (laws : List (PMF NNReal)) :
expectedMax laws ≤ ↑t + (List.map (fun (μ : PMF NNReal) => ∑' (x : NNReal), μ x * ↑(x - t)) laws).sum

The prophet collects at most t + ∑ᵢ E[(Xᵢ - t)⁺], for every cutoff t.

For n i.i.d. values, E[max] ≤ t + n E[(X - t)⁺].

theorem Cslib.Probability.OptimalStopping.Prophet.expectedMax_le_two_mul_expectedReward {t : NNReal} {a : NNReal → Bool} (ha₁ : ∀ (x : NNReal), t < x → a x = true) (ha₂ : ∀ (x : NNReal), a x = true → t ≤ x) (laws : List (PMF NNReal)) (h : 2 * ↑t ≤ expectedMax laws ∧ 1 ≤ 2 * rejectProb a laws ∨ expectedMax laws ≤ 2 * ↑t ∧ 2 * rejectProb a laws ≤ 1) :

The prophet inequality, threshold form. Let acceptRule a accept every value above t and only values of at least t, and let R be the probability that it accepts no value. If 2t ≤ E[max] and 1 ≤ 2R, or E[max] ≤ 2t and 2R ≤ 1, then its expected reward is at least half the prophet's.

theorem Cslib.Probability.OptimalStopping.Prophet.expectedMax_le_two_mul_expectedReward_of_two_mul_eq (laws : List (PMF NNReal)) {t : NNReal} (ht : 2 * ↑t = expectedMax laws) {a : NNReal → Bool} (ha₁ : ∀ (x : NNReal), t < x → a x = true) (ha₂ : ∀ (x : NNReal), a x = true → t ≤ x) :

The prophet inequality with threshold E[max]/2 (Kleinberg–Weinberg): whichever way ties at the threshold are broken, the rule collects at least half the prophet's expected reward.

The prophet inequality: when E[max] is finite, accepting the first value of at least E[max]/2 collects at least half the prophet's expected reward.

Samuel-Cahn's rule for a median m of max Xᵢ at or above E[max]/2: accepting the first value of at least m collects at least half the prophet's expected reward.

Samuel-Cahn's rule for a median m of max Xᵢ at or below E[max]/2: accepting the first value of more than m collects at least half the prophet's expected reward.

Samuel-Cahn's prophet inequality. For a median m of max Xᵢ, accepting the first value of at least m, or the first value of more than m, collects at least half the prophet's expected reward.

The maximum of independent values has a median.

Samuel-Cahn's prophet inequality. For all independent nonnegative values there is a single threshold m such that accepting the first value of at least m, or the first value of more than m, collects at least half the prophet's expected reward.

Tightness #

The value k + 1 with probability 1/(k + 1), and 0 otherwise.

theorem Cslib.Probability.OptimalStopping.Prophet.tsum_longShot_mul (k : ℕ) (f : NNReal → ENNReal) :
∑' (x : NNReal), (longShot k) x * f x = (f (↑k + 1) + ↑k * f 0) / (↑k + 1)

The tight instance: a sure value 1, then longShot k.

On tightLaws k, every rule, even one using the whole history, collects at most 1.

The factor 1/2 is optimal. For every c > 1/2 there are two independent finitely supported values on which every stopping rule collects less than c · E[max].