Documentation

CslibFrontier.Probability.OptimalStopping.Mixtures

Mixtures theorem for randomized optimal stopping rules #

A behavioral randomized stopping rule (BehavioralRule α := List α → PMF Bool) flips an independent coin rule h : PMF Bool at each observed history h (most recent observation first) to decide whether to stop. Its stopping-time distribution on remaining observations xs after past is randomizedStopIndex rule past xs : PMF (Option ℕ), and its expected payoff is randomizedPayoff rule reward past xs, which equals the expectation of reward at randomizedStopIndex (randomizedPayoff_eq_tsum_randomizedStopIndex).

This module proves the general mixtures equivalence between behavioral randomized stopping rules and mixtures of deterministic stopping rules (List α → Bool), following Kuhn's theorem for single-agent perfect-recall decision trees:

  1. Canonical Uniform[0, 1) quantile coupling (arbitrary observation type α, arbitrary horizon, arbitrary observation law μ : PMF (List α)): Let survProb rule h be the probability that rule does not stop along the history h, and define the deterministic rule quantileRule rule u h := decide (u < 1 - survProb rule h). When u is drawn from Lebesgue measure restricted to [0, 1) (unitUniform), quantileRule induces the exact same stopping-time distribution on every trajectory xs (randomizedStopIndex_eq_unitUniform_quantileRule) and the exact same expected payoff under every observation law μ (expectedRandomizedPayoff_eq_lintegral_quantileRule).
  2. Finite-support PMF mixture (finite observation type [Fintype α], horizon n): Drawing an independent coin for every nonempty history of length at most n yields a discrete mixture mixedOfBehavioral n rule : PMF (List α → Bool) over deterministic rules with the exact same stopping-time distribution (randomizedStopIndex_eq_map_mixedOfBehavioral) and expected payoff (expectedRandomizedPayoff_eq_tsum_mixedOfBehavioral), so some single deterministic rule does at least as well (exists_deterministic_ge_randomized).
  3. Converse (mixed → behavioral) (arbitrary α, arbitrary ν : PMF (List α → Bool)): Conditioning on surviving the prior history yields behavioralOfMixed ν : BehavioralRule α inducing the exact same stopping-time distribution (randomizedStopIndex_behavioralOfMixed) and expected payoff (expectedRandomizedPayoff_behavioralOfMixed).
  4. Optimality corollaries: the supremum expected payoff over behavioral randomized stopping rules equals the supremum over deterministic stopping rules for every observation law μ (iSup_expectedRandomizedPayoff_eq_iSup_deterministic), and under jointLaw laws no behavioral randomized rule exceeds valueFrom or optimalRule (expectedRandomizedPayoff_le_valueFrom, expectedRandomizedPayoff_le_optimalRule).

Main definitions #

Main results #

References #

Behavioral randomized stopping rules #

@[reducible, inline]

A behavioral randomized stopping rule: on observing a history (most recent observation first), it returns a Boolean coin deciding whether to stop.

noncomputable def Cslib.Probability.OptimalStopping.randomizedStopIndex {α : Type u_1} (rule : BehavioralRule α) :
List α → List α → PMF (Option ℕ)

The distribution of the stopping position of a behavioral rule rule on remaining observations xs after the history past (most recent first).

noncomputable def Cslib.Probability.OptimalStopping.randomizedPayoff {α : Type u_1} (rule : BehavioralRule α) (reward : List α → List α → ENNReal) :
List α → List α → ENNReal

The expected payoff of a behavioral rule rule on a fixed sequence of remaining observations xs after the history past (most recent first).

theorem Cslib.Probability.OptimalStopping.randomizedStopIndex_pure {α : Type u_1} (stop : List α → Bool) (past xs : List α) :
randomizedStopIndex (fun (h : List α) => PMF.pure (stop h)) past xs = PMF.pure (stopIndex stop past xs)

A deterministic rule embedded as a behavioral rule has deterministic stopping index.

theorem Cslib.Probability.OptimalStopping.randomizedPayoff_pure {α : Type u_1} (stop : List α → Bool) (reward : List α → List α → ENNReal) (past xs : List α) :
randomizedPayoff (fun (h : List α) => PMF.pure (stop h)) reward past xs = payoff stop reward past xs

A deterministic rule embedded as a behavioral rule collects the same payoff.

theorem Cslib.Probability.OptimalStopping.randomizedPayoff_eq_tsum_randomizedStopIndex {α : Type u_1} (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (past xs : List α) :
randomizedPayoff rule reward past xs = ∑' (o : Option ℕ), (randomizedStopIndex rule past xs) o * o.elim 0 fun (k : ℕ) => reward ((List.take (k + 1) xs).reverse ++ past) (List.drop (k + 1) xs)

The expected payoff of a behavioral rule is the expectation of the reward evaluated at its stopping-time distribution.

Canonical Uniform[0, 1) quantile coupling #

The uniform probability measure on [0, 1).

Instances For
    noncomputable def Cslib.Probability.OptimalStopping.survProb {α : Type u_1} (rule : BehavioralRule α) :
    List α → ℝ

    Survival probability of rule along the history h (most recent observation first): the probability that rule does not stop at any observation in h.

    noncomputable def Cslib.Probability.OptimalStopping.quantileRule {α : Type u_1} (rule : BehavioralRule α) (u : ℝ) :
    List α → Bool

    Canonical deterministic stopping rule at quantile u ∈ [0, 1): stop at history h iff u lies below the cumulative stopping probability 1 - survProb rule h.

    General mixtures theorem (stopping-time distribution): for any observation type α, any behavioral rule rule : BehavioralRule α, any observation sequence xs : List α, and any stopping time o : Option ℕ, the canonical Uniform[0, 1) quantile coupling quantileRule rule u induces the exact same stopping-time distribution as rule.

    theorem Cslib.Probability.OptimalStopping.randomizedPayoff_eq_lintegral_quantileRule {α : Type u_1} (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (xs : List α) :
    randomizedPayoff rule reward [] xs = ∫⁻ (u : ℝ), payoff (quantileRule rule u) reward [] xs ∂unitUniform

    Trajectory payoff equivalence under the quantile coupling: on every observation sequence xs, the expected payoff of a behavioral rule equals the Uniform[0, 1) average of the payoffs of the deterministic quantile rules quantileRule rule u.

    theorem Cslib.Probability.OptimalStopping.expectedRandomizedPayoff_eq_lintegral_quantileRule {α : Type u_1} (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (μ : PMF (List α)) :
    ∑' (xs : List α), μ xs * randomizedPayoff rule reward [] xs = ∫⁻ (u : ℝ), ∑' (xs : List α), μ xs * payoff (quantileRule rule u) reward [] xs ∂unitUniform

    General mixtures theorem (expected payoff): for any observation type α, any observation law μ : PMF (List α) (not necessarily independent), any reward function, and any behavioral randomized stopping rule rule, the expected payoff of rule equals the Uniform[0, 1) average of the expected payoffs of the deterministic stopping rules quantileRule rule u.

    Finite-horizon discrete PMF mixture for finite observation spaces #

    noncomputable def Cslib.Probability.OptimalStopping.mixedOfBehavioral {α : Type u_1} [Fintype α] (n : ℕ) (rule : BehavioralRule α) :
    PMF (List α → Bool)

    Finite-horizon discrete mixture over deterministic stopping rules for a behavioral rule rule on a finite observation type α: draw an independent coin for each nonempty history of length at most n.

    theorem Cslib.Probability.OptimalStopping.randomizedStopIndex_eq_map_mixedOfBehavioral {α : Type u_1} [Fintype α] (n : ℕ) (rule : BehavioralRule α) {xs : List α} (hlen : xs.length ≤ n) :
    randomizedStopIndex rule [] xs = PMF.map (fun (stop : List α → Bool) => stopIndex stop [] xs) (mixedOfBehavioral n rule)

    Finite-horizon discrete mixtures theorem (stopping-time distribution): on a finite observation type α, for every sequence xs of length at most n, the finite-support mixture mixedOfBehavioral n rule : PMF (List α → Bool) induces the exact same stopping-time distribution as rule.

    theorem Cslib.Probability.OptimalStopping.expectedRandomizedPayoff_eq_tsum_mixedOfBehavioral {α : Type u_1} [Fintype α] (n : ℕ) (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (μ : PMF (List α)) (hsupp : ∀ xs ∈ μ.support, xs.length ≤ n) :
    ∑' (xs : List α), μ xs * randomizedPayoff rule reward [] xs = ∑' (stop : List α → Bool), (mixedOfBehavioral n rule) stop * ∑' (xs : List α), μ xs * payoff stop reward [] xs

    Finite-horizon discrete mixtures theorem (expected payoff): under any observation law μ supported on sequences of length at most n over a finite type α, the expected payoff of rule equals the expectation over stop ~ mixedOfBehavioral n rule of the deterministic expected payoff of stop.

    theorem Cslib.Probability.OptimalStopping.exists_deterministic_ge_randomized {α : Type u_1} [Finite α] (n : ℕ) (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (μ : PMF (List α)) (hsupp : ∀ xs ∈ μ.support, xs.length ≤ n) :
    ∃ (stop : List α → Bool), ∑' (xs : List α), μ xs * randomizedPayoff rule reward [] xs ≤ ∑' (xs : List α), μ xs * payoff stop reward [] xs

    Finite-horizon derandomization: on a finite observation type α and any observation law μ supported on sequences of length at most n, some deterministic stopping rule achieves at least the expected payoff of rule.

    Converse: discrete mixtures to behavioral rules #

    noncomputable def Cslib.Probability.OptimalStopping.behavioralOfMixed {α : Type u_1} (ν : PMF (List α → Bool)) :

    Mixed-to-behavioral conversion: given any discrete mixture ν : PMF (List α → Bool) over deterministic stopping rules on an arbitrary type α, the conditional behavioral rule stops at x :: past with probability P_ν(stop at x :: past | survived past).

    theorem Cslib.Probability.OptimalStopping.randomizedStopIndex_behavioralOfMixed {α : Type u_1} (ν : PMF (List α → Bool)) (xs : List α) :
    randomizedStopIndex (behavioralOfMixed ν) [] xs = PMF.map (fun (stop : List α → Bool) => stopIndex stop [] xs) ν

    Converse mixtures theorem (stopping-time distribution): every discrete mixture ν of deterministic stopping rules has an observationally equivalent behavioral rule behavioralOfMixed ν with the exact same stopping-time distribution on every trajectory xs.

    theorem Cslib.Probability.OptimalStopping.expectedRandomizedPayoff_behavioralOfMixed {α : Type u_1} (ν : PMF (List α → Bool)) (reward : List α → List α → ENNReal) (μ : PMF (List α)) :
    ∑' (xs : List α), μ xs * randomizedPayoff (behavioralOfMixed ν) reward [] xs = ∑' (stop : List α → Bool), ν stop * ∑' (xs : List α), μ xs * payoff stop reward [] xs

    Converse mixtures theorem (expected payoff): behavioralOfMixed ν attains the exact same expected payoff as the mixture ν under every observation law μ and reward function.

    Optimality corollaries #

    theorem Cslib.Probability.OptimalStopping.iSup_expectedRandomizedPayoff_eq_iSup_deterministic {α : Type u_1} (reward : List α → List α → ENNReal) (μ : PMF (List α)) :
    ⨆ (rule : BehavioralRule α), ∑' (xs : List α), μ xs * randomizedPayoff rule reward [] xs = ⨆ (stop : List α → Bool), ∑' (xs : List α), μ xs * payoff stop reward [] xs

    Randomization does not increase the supremum expected payoff: for every observation type α, observation law μ : PMF (List α) (correlated or independent), and reward function, the supremum expected payoff over behavioral randomized stopping rules equals the supremum over deterministic stopping rules.

    theorem Cslib.Probability.OptimalStopping.expectedRandomizedPayoff_le_valueFrom {α : Type u_1} (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (laws : List (PMF α)) :
    ∑' (xs : List α), (jointLaw laws) xs * randomizedPayoff rule reward [] xs ≤ valueFrom reward laws []

    No behavioral randomized rule beats backward induction: under independent observations jointLaw laws, every behavioral randomized stopping rule has expected payoff at most valueFrom reward laws [].

    theorem Cslib.Probability.OptimalStopping.expectedRandomizedPayoff_le_optimalRule {α : Type u_1} (rule : BehavioralRule α) (reward : List α → List α → ENNReal) (laws : List (PMF α)) :
    ∑' (xs : List α), (jointLaw laws) xs * randomizedPayoff rule reward [] xs ≤ ∑' (xs : List α), (jointLaw laws) xs * payoff (optimalRule reward laws) reward [] xs

    Deterministic backward induction is optimal even among behavioral randomized rules: optimalRule achieves at least the expected payoff of every behavioral randomized stopping rule.