Optimal stopping: independent observations and stopping rules #
Observations X₁, …, Xₙ arrive one at a time, drawn independently, Xᵢ from the i-th law of
laws; jointLaw laws is the law of the whole list. Unlike Cslib.Probability.PMF.pi and
Cslib.Probability.PMF.iid, the laws may differ, the value type need not be finite, and the
outcome is a list, the form on which backward induction recurses.
A stopping rule stop : List α → Bool sees the history, most recent observation first, and
decides whether to stop at the current observation. A reward reward past future may depend on
the observations seen when stopping and on those still to come; the secretary problem, for
instance, rewards stopping at the overall best, which depends on the future. payoff stop reward past xs is the reward collected on the remaining observations xs after the history past, and
0 if the rule never stops. Rules are deterministic. A randomized rule is a mixture of
deterministic ones, so every bound below on deterministic rules also bounds randomized ones.
valueFrom reward laws past is the backward-induction (dynamic programming) value: at each
step, the better of stopping now and continuing optimally. tsum_payoff_le_valueFrom shows that
no stopping rule beats it, and tsum_payoff_optimalRule that the rule optimalRule, which stops
exactly when stopping is at least as good as continuing, attains it (valueFrom_eq_iSup).
Main definitions #
Cslib.Probability.OptimalStopping.jointLaw: independent observations as a list.Cslib.Probability.OptimalStopping.payoff,Cslib.Probability.OptimalStopping.stopIndex: the reward collected by a rule and the time at which it stops.Cslib.Probability.OptimalStopping.valueFrom,Cslib.Probability.OptimalStopping.optimalRule: the backward-induction value and rule.
Main results #
Cslib.Probability.OptimalStopping.tsum_jointLaw_cons_mul: expectations underjointLawcondition on the first observation.Cslib.Probability.OptimalStopping.payoff_eq_stopIndex: the payoff is the reward at the stopping time.Cslib.Probability.OptimalStopping.tsum_payoff_le_valueFrom: no rule's expected payoff exceeds the backward-induction value.Cslib.Probability.OptimalStopping.tsum_payoff_optimalRule,Cslib.Probability.OptimalStopping.valueFrom_eq_iSup: the backward-induction rule attains it, so it is the optimal expected payoff.
References #
Observing two blocks of independent observations, one after the other.
The reward collected by the rule stop on the remaining observations xs after the history
past (most recent first): it stops at the first x with stop (x :: past) and collects
reward (x :: past) future, where future are the observations after x. A rule that never
stops collects 0.
The backward-induction value of the remaining observations with laws laws after the history
past: on observing x, the better of stopping, with expected reward over the remaining
observations, and continuing optimally.
The backward-induction rule for the observation laws laws: on the history h (most recent
first), with the laws laws.drop h.length still to come, stop exactly when stopping is at least
as good as continuing optimally.
Backward induction attains the value: the rule optimalRule collects exactly the
backward-induction value.