Documentation

CslibFrontier.Probability.Freedman

Ville's maximal inequality and Freedman's martingale concentration inequality #

Along a discrete sequential process Cslib.Probability.PMF.seqProcess step with history-dependent transition kernels step t : (Fin t → α) → PMF α, this module proves:

  1. Ville's maximal supermartingale inequality (seqProcess_ville_le, [Vil39]): for any nonnegative ℝ≥0∞-valued supermartingale Z along seqProcess step and threshold c : ℝ≥0∞, stopping Z at the first prefix k ≤ n where c ≤ Z k (Fin.take k hk h) preserves the supermartingale property and yields (seqProcess step n).toOuterMeasure {h | ∃ (k : ℕ) (hk : k ≤ n), c ≤ Z k (Fin.take k hk h)} * c ≤ Z 0 Fin.elim0 on arbitrary outcome types α without [Fintype α] or [MeasurableSpace α].
  2. Freedman's maximal martingale tail inequality ([Freedman1975, Theorem (1.6)]): for any real-valued supermartingale X along seqProcess step whose one-step increments on supported transitions satisfy the one-sided bound X (k + 1) (Fin.snoc h x) - X k h ≤ b and predictable conditional second-moment bound ∑' x, (step k h x).toReal * (X (k + 1) (Fin.snoc h x) - X k h)² ≤ V k h (for a martingale, the exact conditional variance Var(X_{k+1} - X_k | h)), the compensated exponential process is a nonnegative supermartingale with expectation at most 1 (tsum_seqProcess_freedman_exp_le_one). Combining with Ville's maximal inequality and optimizing the Laplace parameter gives:
  3. Bounded-increment sequential Bernstein corollaries (seqProcess_bernstein_maximal_ge_le, seqProcess_bernstein_ge_le, seqProcess_bernstein_le_le, seqProcess_bernstein_abs_sub_ge_le): when |X (k + 1) (Fin.snoc h x) - X k h| ≤ b on supported steps, conditional moment summability holds automatically, yielding maximal and fixed-time upper, lower, and two-sided sequential Bernstein bounds.

Main definitions #

Main results #

References #

Prefix projections and predictable quadratic variation #

@[reducible, inline]
abbrev Cslib.Probability.PMF.seqPredVar {α : Type u_1} (V : (j : ℕ) → (Fin j → α) → ℝ) (k : ℕ) (h : Fin k → α) :

Cumulative predictable quadratic variation ∑ j < k, V j (h_{≤ j}) along a trajectory prefix h : Fin k → α.

@[simp]
theorem Cslib.Probability.PMF.seqPredVar_zero {α : Type u_1} (V : (j : ℕ) → (Fin j → α) → ℝ) (h : Fin 0 → α) :
seqPredVar V 0 h = 0
@[simp]
theorem Cslib.Probability.PMF.seqPredVar_snoc {α : Type u_1} (V : (j : ℕ) → (Fin j → α) → ℝ) (k : ℕ) (h : Fin k → α) (a : α) :
seqPredVar V (k + 1) (Fin.snoc h a) = seqPredVar V k h + V k h

Ville's maximal supermartingale inequality #

theorem Cslib.Probability.PMF.seqProcess_ville_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (Z : (k : ℕ) → (Fin k → α) → ENNReal) (n : ℕ) (hsuper : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), (step k h) x * Z (k + 1) (Fin.snoc h x) ≤ Z k h) (c : ENNReal) :
(seqProcess step n).toOuterMeasure {h : Fin n → α | ∃ (k : ℕ) (hk : k ≤ n), c ≤ Z k (Fin.take k hk h)} * c ≤ Z 0 Fin.elim0

Ville's maximal supermartingale inequality along seqProcess [Vil39]: if Z : ∀ k, (Fin k → α) → ℝ≥0∞ satisfies ∑' x, step k h x * Z (k + 1) (Fin.snoc h x) ≤ Z k h on every supported prefix h (k < n), then for any threshold c : ℝ≥0∞, (seqProcess step n).toOuterMeasure {h | ∃ (k : ℕ) (hk : k ≤ n), c ≤ Z k (Fin.take k hk h)} * c ≤ Z 0 Fin.elim0.

Freedman's compensated exponential supermartingale and maximal inequality #

theorem Cslib.Probability.PMF.tsum_seqProcess_freedman_exp_le_one {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X V : (k : ℕ) → (Fin k → α) → ℝ) {b : ℝ} (hb : 0 < b) (n : ℕ) (hd1 : ∀ k < n, ∀ h ∈ (seqProcess step k).support, Summable fun (x : α) => ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h)) (hd2 : ∀ k < n, ∀ h ∈ (seqProcess step k).support, Summable fun (x : α) => ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ≤ 0) (hupper : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) - X k h ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ V k h) {s : ℝ} (hs : 0 ≤ s) :
∑' (h : Fin n → α), (seqProcess step n) h * ENNReal.ofReal (Real.exp (s * (X n h - X 0 Fin.elim0) - (Real.exp (s * b) - 1 - s * b) / b ^ 2 * seqPredVar V n h)) ≤ 1

Freedman's compensated exponential supermartingale bound [Freedman1975, §1]: under one-sided bounded conditional increments X (k + 1) (Fin.snoc h x) - X k h ≤ b (b > 0), nonpositive conditional drift, and predictable conditional second-moment bound V k h, the expected value of exp (s * (X n h - X 0 Fin.elim0) - ((exp (s b) - 1 - s b) / b²) * seqPredVar V n h) is at most 1 for every s ≥ 0.

theorem Cslib.Probability.PMF.seqProcess_exists_prefix_ge_and_var_le_bennett {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X V : (k : ℕ) → (Fin k → α) → ℝ) {b v ε : ℝ} (hb : 0 < b) (hv : 0 < v) (hε : 0 ≤ ε) (n : ℕ) (hd1 : ∀ k < n, ∀ h ∈ (seqProcess step k).support, Summable fun (x : α) => ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h)) (hd2 : ∀ k < n, ∀ h ∈ (seqProcess step k).support, Summable fun (x : α) => ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ≤ 0) (hupper : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) - X k h ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ V k h) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | ∃ (k : ℕ) (hk : k ≤ n), X 0 Fin.elim0 + ε ≤ X k (Fin.take k hk h) ∧ seqPredVar V k (Fin.take k hk h) ≤ v}).toReal ≤ Real.exp (-(v / b ^ 2) * InformationTheory.klFun (1 + b * ε / v))

Freedman's maximal martingale inequality, sharp Poisson/Bennett form [Freedman1975, Theorem (1.6)]: for any discrete supermartingale X along seqProcess step with one-sided increment bound X (k + 1) (Fin.snoc h x) - X k h ≤ b (b > 0) and predictable conditional second-moment bound V k h, for every v > 0 and ε ≥ 0, the probability that some prefix k ≤ n simultaneously reaches X 0 Fin.elim0 + ε ≤ X k (Fin.take k hk h) while seqPredVar V k (Fin.take k hk h) ≤ v is at most exp (-(v / b²) * klFun (1 + b ε / v)).

theorem Cslib.Probability.PMF.seqProcess_exists_prefix_ge_and_var_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X V : (k : ℕ) → (Fin k → α) → ℝ) {b v ε : ℝ} (hb : 0 ≤ b) (hv : 0 ≤ v) (hε : 0 ≤ ε) (n : ℕ) (hd1 : ∀ k < n, ∀ h ∈ (seqProcess step k).support, Summable fun (x : α) => ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h)) (hd2 : ∀ k < n, ∀ h ∈ (seqProcess step k).support, Summable fun (x : α) => ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ≤ 0) (hupper : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, X (k + 1) (Fin.snoc h x) - X k h ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ V k h) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | ∃ (k : ℕ) (hk : k ≤ n), X 0 Fin.elim0 + ε ≤ X k (Fin.take k hk h) ∧ seqPredVar V k (Fin.take k hk h) ≤ v}).toReal ≤ Real.exp (-ε ^ 2 / (2 * (v + b * ε / 3)))

Freedman's maximal martingale inequality, unconditional Bernstein form [Freedman1975, Theorem (1.6)]: under the hypotheses of seqProcess_exists_prefix_ge_and_var_le_bennett, for every b ≥ 0, v ≥ 0, and ε ≥ 0 (including b = 0, v = 0, and ε = 0), the maximal probability that some prefix k ≤ n reaches X 0 Fin.elim0 + ε ≤ X k (Fin.take k hk h) with seqPredVar V k (Fin.take k hk h) ≤ v is at most exp (-ε² / (2 * (v + b ε / 3))).

Ergonomic bounded-increment sequential Bernstein inequalities #

theorem Cslib.Probability.PMF.seqProcess_bernstein_maximal_ge_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X V : (k : ℕ) → (Fin k → α) → ℝ) {b v ε : ℝ} (hb : 0 ≤ b) (hv : 0 ≤ v) (hε : 0 ≤ ε) (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) ≤ 0) (hbdd : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, |X (k + 1) (Fin.snoc h x) - X k h| ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ V k h) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | ∃ (k : ℕ) (hk : k ≤ n), X 0 Fin.elim0 + ε ≤ X k (Fin.take k hk h) ∧ seqPredVar V k (Fin.take k hk h) ≤ v}).toReal ≤ Real.exp (-ε ^ 2 / (2 * (v + b * ε / 3)))

Maximal sequential Bernstein inequality for processes with two-sided bounded increments |X (k + 1) (Fin.snoc h x) - X k h| ≤ b (b ≥ 0, v ≥ 0, ε ≥ 0), requiring no explicit Summable hypotheses.

theorem Cslib.Probability.PMF.seqProcess_bernstein_ge_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (vStep : ℕ → ℝ) {b ε : ℝ} (hb : 0 ≤ b) (hε : 0 ≤ ε) (n : ℕ) (hvStep : ∀ k < n, 0 ≤ vStep k) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ≤ 0) (hbdd : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, |X (k + 1) (Fin.snoc h x) - X k h| ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ vStep k) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | X 0 Fin.elim0 + ε ≤ X n h}).toReal ≤ Real.exp (-ε ^ 2 / (2 * (∑ k ∈ Finset.range n, vStep k + b * ε / 3)))

Sequential Bernstein inequality, upper tail: if X is a supermartingale along seqProcess with |X (k + 1) (Fin.snoc h x) - X k h| ≤ b (b ≥ 0) and conditional second moment bounded by a deterministic sequence vStep k ≥ 0, then X 0 Fin.elim0 + ε ≤ X n h (ε ≥ 0) holds with probability at most exp (-ε² / (2 * ((∑ k ∈ range n, vStep k) + b ε / 3))).

theorem Cslib.Probability.PMF.seqProcess_bernstein_le_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (vStep : ℕ → ℝ) {b ε : ℝ} (hb : 0 ≤ b) (hε : 0 ≤ ε) (n : ℕ) (hvStep : ∀ k < n, 0 ≤ vStep k) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, 0 ≤ ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h)) (hbdd : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, |X (k + 1) (Fin.snoc h x) - X k h| ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ vStep k) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | X n h ≤ X 0 Fin.elim0 - ε}).toReal ≤ Real.exp (-ε ^ 2 / (2 * (∑ k ∈ Finset.range n, vStep k + b * ε / 3)))

Sequential Bernstein inequality, lower tail for submartingales with bounded increments.

theorem Cslib.Probability.PMF.seqProcess_bernstein_abs_sub_ge_le {α : Type u_1} (step : (t : ℕ) → (Fin t → α) → PMF α) (X : (k : ℕ) → (Fin k → α) → ℝ) (vStep : ℕ → ℝ) {b ε : ℝ} (hb : 0 ≤ b) (hε : 0 ≤ ε) (n : ℕ) (hvStep : ∀ k < n, 0 ≤ vStep k) (hmean : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) = 0) (hbdd : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∀ x ∈ (step k h).support, |X (k + 1) (Fin.snoc h x) - X k h| ≤ b) (hvar : ∀ k < n, ∀ h ∈ (seqProcess step k).support, ∑' (x : α), ((step k h) x).toReal * (X (k + 1) (Fin.snoc h x) - X k h) ^ 2 ≤ vStep k) :
((seqProcess step n).toOuterMeasure {h : Fin n → α | ε ≤ |X n h - X 0 Fin.elim0|}).toReal ≤ 2 * Real.exp (-ε ^ 2 / (2 * (∑ k ∈ Finset.range n, vStep k + b * ε / 3)))

Sequential Bernstein inequality, two-sided tail for martingales with bounded increments.