Documentation

CslibFrontier.Probability.Azuma

Sequential PMF processes and the Azuma–Hoeffding inequality #

Cslib.Probability.PMF.seqProcess step n runs n adaptive discrete transitions step t : (Fin t → α) → PMF α, where each step distribution may depend on the full prefix of previous outcomes. For any real-valued process X k : (Fin k → α) → ℝ along these prefixes whose one-step conditional expectation on supported prefixes h ∈ (seqProcess step k).support does not increase (∑' x, (step k h x).toReal * X (k + 1) ... ≤ X k h) and whose one-step values on (step k h).support lie in a history-dependent interval [a, b] of width b - a ≤ c k bounded by a deterministic step width c k, centering the next value by its conditional mean preserves that width, Cslib.Probability.PMF.tsum_mul_exp_sub_mean_le ([Hoeffding1963, §4, eq. (4.16)]) gives the conditional [G] factor ([Azuma1967, §1, p. 357 and Remark 1, p. 358]) with parameter c k / 2, and nonpositive supermartingale drift iterates to the exponential moment bound exp (s² (∑ k < n, c k ^ 2) / 8) (seqProcess_mul_exp_le, adapting [Azuma1967, §2, proof of Lemma 2, display (2.4), pp. 358–359]). Optimizing the Laplace parameter derives the fixed-time upper, lower, and two-sided Azuma–Hoeffding tail corollaries (seqProcess_ge_le, seqProcess_le_le, seqProcess_abs_sub_ge_le; cf. [Hoeffding1963, Theorem 2 (eq. (2.6)) and martingale extension (eq. (2.18))]) on arbitrary outcome types α without [Fintype α] or a caller-supplied [MeasurableSpace α], for all ε ≥ 0 (including zero total squared width ∑ k < n, c k ^ 2 = 0, where the bound evaluates to 1). Measure-theoretic filtrations and random step widths outside a deterministic envelope c k are outside this finite-horizon PMF model.

Main definitions #

Main results #

References #

noncomputable def Cslib.Probability.PMF.seqProcess {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (n : ℕ) :
PMF (Fin n → α)

Finite-horizon sequential PMF process generated by history-dependent transition distributions step t : (Fin t → α) → PMF α.

theorem Cslib.Probability.PMF.tsum_seqProcess_le_initial {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (Z : (k : ℕ) → (Fin k → α) → ENNReal) (n : ℕ) (hstep : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), (step k h) x * Z (k + 1) (Fin.snoc h x) ≤ Z k h) :
∑' (h : Fin n → α), (seqProcess step n) h * Z n h ≤ Z 0 Fin.elim0

A one-step expectation bound along every supported history gives the corresponding finite-horizon bound by the initial value.

theorem Cslib.Probability.PMF.seqProcess_apply {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (n : ℕ) (h : Fin n → α) :
(seqProcess step n) h = ∏ t : Fin n, (step ↑t fun (j : Fin ↑t) => h (j.castLT ⋯)) (h t)

The mass of a trajectory h : Fin n → α under seqProcess step n is the product of the one-step transition probabilities along its prefixes.

theorem Cslib.Probability.PMF.summable_toReal_mul_of_abs_le {α : Type u_1} (p : PMF α) (f : α → ℝ) {C : ℝ} (hC : ∀ x ∈ p.support, |f x| ≤ C) :
Summable fun (x : α) => (p x).toReal * f x

Any real observable bounded on p.support is summable against (p ·).toReal.

theorem Cslib.Probability.PMF.tsum_toReal_seqProcess_step {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (n : ℕ) (g : (Fin (n + 1) → α) → ℝ) {C : ℝ} (hC : ∀ (h : Fin (n + 1) → α), |g h| ≤ C) :
∑' (h : Fin (n + 1) → α), ((seqProcess step (n + 1)) h).toReal * g h = ∑' (h : Fin n → α), ((seqProcess step n) h).toReal * ∑' (a : α), ((step n h) a).toReal * g (Fin.snoc h a)

One-step expectation decomposition along seqProcess: averaging a bounded observable g : (Fin (n + 1) → α) → ℝ over n + 1 steps averages over the first n steps and then over step n h.

theorem Cslib.Probability.PMF.seqProcess_mul_exp_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (c : ℕ → ℝ) (n : ℕ) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * X (k + 1) (Fin.snoc h x) ≤ X k h) (hrange : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∃ (a : ℝ) (b : ℝ), b - a ≤ c k ∧ ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) ∈ Set.Icc a b) {s : ℝ} (hs : 0 ≤ s) :
∑' (h : Fin n → α), (seqProcess step n) h * ENNReal.ofReal (Real.exp (s * (X n h - X 0 Fin.elim0))) ≤ ENNReal.ofReal (Real.exp ((s ^ 2 * ∑ k ∈ Finset.range n, c k ^ 2) / 8))

Azuma–Hoeffding exponential moment bound along seqProcess [Azuma1967, §2, proof of Lemma 2, display (2.4), pp. 358–359; Hoeffding1963, §2 eq. (2.18) and §4 eq. (4.16)]: if at each step k < n and supported prefix h, the conditional expectation of X (k + 1) (Fin.snoc h ·) is at most X k h and its values on (step k h).support lie in a history-dependent interval of width at most the deterministic step bound c k, then for every s ≥ 0 the exponential moment of s * (X n - X 0) is at most exp (s² * (∑ k ∈ range n, c k ^ 2) / 8).

theorem Cslib.Probability.PMF.seqProcess_ge_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (c : ℕ → ℝ) (n : ℕ) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * X (k + 1) (Fin.snoc h x) ≤ X k h) (hrange : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∃ (a : ℝ) (b : ℝ), b - a ≤ c k ∧ ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) ∈ Set.Icc a b) {ε : ℝ} (hε : 0 ≤ ε) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | X 0 Fin.elim0 + ε ≤ X n h}).toReal ≤ Real.exp (-2 * ε ^ 2 / ∑ k ∈ Finset.range n, c k ^ 2)

Azuma–Hoeffding inequality, upper tail [Azuma1967, §2, proof of Lemma 2, display (2.4), pp. 358–359; Hoeffding1963, Theorem 2 (eq. (2.6)) and eq. (2.18)]: if X is a discrete supermartingale along seqProcess step whose one-step conditional support at each supported prefix lies in a history-dependent interval of width at most the deterministic step bound c k (k < n), then X n exceeds X 0 Fin.elim0 + ε (ε ≥ 0) with probability at most exp (-2 ε² / ∑ k ∈ range n, c k ^ 2) (1 when ∑ k ∈ range n, c k ^ 2 = 0).

theorem Cslib.Probability.PMF.seqProcess_le_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (c : ℕ → ℝ) (n : ℕ) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, X k h ≤ ∑' (x : α), ((step k h) x).toReal * X (k + 1) (Fin.snoc h x)) (hrange : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∃ (a : ℝ) (b : ℝ), b - a ≤ c k ∧ ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) ∈ Set.Icc a b) {ε : ℝ} (hε : 0 ≤ ε) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | X n h ≤ X 0 Fin.elim0 - ε}).toReal ≤ Real.exp (-2 * ε ^ 2 / ∑ k ∈ Finset.range n, c k ^ 2)

Azuma–Hoeffding inequality, lower tail [Azuma1967, §2, proof of Lemma 2, display (2.4), pp. 358–359; Hoeffding1963, Theorem 2 (eq. (2.6)) and eq. (2.18)]: if X is a discrete submartingale along seqProcess step whose one-step conditional support at each supported prefix lies in a history-dependent interval of width at most the deterministic step bound c k (k < n), then X n falls at or below X 0 Fin.elim0 - ε (ε ≥ 0) with probability at most exp (-2 ε² / ∑ k ∈ range n, c k ^ 2).

theorem Cslib.Probability.PMF.seqProcess_abs_sub_ge_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (c : ℕ → ℝ) (n : ℕ) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * X (k + 1) (Fin.snoc h x) = X k h) (hrange : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∃ (a : ℝ) (b : ℝ), b - a ≤ c k ∧ ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) ∈ Set.Icc a b) {ε : ℝ} (hε : 0 ≤ ε) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | ε ≤ |X n h - X 0 Fin.elim0|}).toReal ≤ 2 * Real.exp (-2 * ε ^ 2 / ∑ k ∈ Finset.range n, c k ^ 2)

Azuma–Hoeffding inequality, two-sided tail [Azuma1967, §2, proof of Lemma 2, display (2.4), pp. 358–359; Hoeffding1963, Theorem 2 (eq. (2.6)) and eq. (2.18)]: if X is a discrete martingale along seqProcess step whose one-step conditional support at each supported prefix lies in a history-dependent interval of width at most the deterministic step bound c k (k < n), then |X n - X 0 Fin.elim0| ≥ ε (ε ≥ 0) with probability at most 2 * exp (-2 ε² / ∑ k ∈ range n, c k ^ 2).