Documentation

CslibFrontier.Probability.Minimax.LeCam

Le Cam's two-point minimax lower-bound method #

Le Cam's two-point method lowers minimax estimation risk to binary hypothesis testing between two distributions whose target parameters are separated under the loss function ([LC73]; [Tsy09], Sections 2.2–2.4).

This file develops the method at two levels of generality:

  1. General probability measures (Measure α): via a Hahn decomposition of (μ, ν),
  2. Finite distributions (PMF X), randomized estimators, and i.i.d. rates:

Main results #

References #

Measure-theoretic Neyman–Pearson identity and Le Cam two-point bound #

theorem Cslib.Probability.leCam_measure_add_ge {α : Type u_1} {mα : MeasurableSpace α} (μ ν : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure ν] {L₀ L₁ : α → ℝ} {sep : ℝ} (hL₀ : ∀ (x : α), 0 ≤ L₀ x) (hL₁ : ∀ (x : α), 0 ≤ L₁ x) (hint₀ : MeasureTheory.Integrable L₀ μ) (hint₁ : MeasureTheory.Integrable L₁ ν) (hsep : ∀ (x : α), sep ≤ L₀ x + L₁ x) :
sep * (1 - MeasureTheory.tvDist μ ν / 2) ≤ ∫ (x : α), L₀ x ∂μ + ∫ (x : α), L₁ x ∂ν

Measure-theoretic Le Cam sum inequality: if L₀, L₁ ≥ 0 are integrable under probability measures μ, ν and satisfy ∀ x, sep ≤ L₀ x + L₁ x, then sep · (1 - tvDist μ ν / 2) ≤ ∫ L₀ ∂μ + ∫ L₁ ∂ν.

theorem Cslib.Probability.leCam_measure_max_ge {α : Type u_1} {mα : MeasurableSpace α} (μ ν : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure ν] {L₀ L₁ : α → ℝ} {sep : ℝ} (hL₀ : ∀ (x : α), 0 ≤ L₀ x) (hL₁ : ∀ (x : α), 0 ≤ L₁ x) (hint₀ : MeasureTheory.Integrable L₀ μ) (hint₁ : MeasureTheory.Integrable L₁ ν) (hsep : ∀ (x : α), sep ≤ L₀ x + L₁ x) :
sep / 2 * (1 - MeasureTheory.tvDist μ ν / 2) ≤ max (∫ (x : α), L₀ x ∂μ) (∫ (x : α), L₁ x ∂ν)

Measure-theoretic Le Cam minimax bound: under the hypotheses of leCam_measure_add_ge, (sep / 2) · (1 - tvDist μ ν / 2) ≤ max (∫ L₀ ∂μ) (∫ L₁ ∂ν).

theorem Cslib.Probability.leCam_measure_max_ge_of_klDiv {α : Type u_1} {mα : MeasurableSpace α} (μ ν : MeasureTheory.Measure α) [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure ν] {L₀ L₁ : α → ℝ} {sep : ℝ} (hsep0 : 0 ≤ sep) (hkl : InformationTheory.klDiv μ ν ≠ ⊤) (hL₀ : ∀ (x : α), 0 ≤ L₀ x) (hL₁ : ∀ (x : α), 0 ≤ L₁ x) (hint₀ : MeasureTheory.Integrable L₀ μ) (hint₁ : MeasureTheory.Integrable L₁ ν) (hsep : ∀ (x : α), sep ≤ L₀ x + L₁ x) :
sep / 2 * (1 - √((InformationTheory.klDiv μ ν).toReal / 2)) ≤ max (∫ (x : α), L₀ x ∂μ) (∫ (x : α), L₁ x ∂ν)

Measure-theoretic Le Cam–Pinsker bound: when 0 ≤ sep and klDiv μ ν ≠ ⊤, (sep / 2) · (1 - √(KL(μ ‖ ν) / 2)) ≤ max (∫ L₀ ∂μ) (∫ L₁ ∂ν).

Neyman–Pearson testing lower bound: for every measurable acceptance region A, the sum of type-I and type-II error probabilities satisfies 1 - tvDist μ ν / 2 ≤ μ.real Aᶜ + ν.real A.

Neyman–Pearson testing optimality: there exists a measurable acceptance region A attaining μ.real Aᶜ + ν.real A = 1 - tvDist μ ν / 2.

Finite-distribution (PMF) Le Cam bounds and Bernoulli minimax estimation rates #

theorem Cslib.Probability.PMF.leCam_add_ge {X : Type u_1} [Fintype X] (p₀ p₁ : PMF X) {L₀ L₁ : X → ℝ} {sep : ℝ} (hL₀ : ∀ (x : X), 0 ≤ L₀ x) (hL₁ : ∀ (x : X), 0 ≤ L₁ x) (hsep : ∀ (x : X), sep ≤ L₀ x + L₁ x) :
sep * (1 - dist p₀ p₁) ≤ ∑ x : X, (p₀ x).toReal * L₀ x + ∑ x : X, (p₁ x).toReal * L₁ x

Le Cam sum inequality for PMF: if L₀, L₁ ≥ 0 satisfy ∀ x, sep ≤ L₀ x + L₁ x, then sep · (1 - dist p₀ p₁) ≤ ∑ x, p₀ x · L₀ x + ∑ x, p₁ x · L₁ x.

theorem Cslib.Probability.PMF.leCam_max_ge {X : Type u_1} {T : Type u_2} {Θ : Type u_3} [Fintype X] (p₀ p₁ : PMF X) {loss : T → Θ → ℝ} {θ₀ θ₁ : Θ} {sep : ℝ} (hloss₀ : ∀ (t : T), 0 ≤ loss t θ₀) (hloss₁ : ∀ (t : T), 0 ≤ loss t θ₁) (hsep : ∀ (t : T), sep ≤ loss t θ₀ + loss t θ₁) (est : X → T) :
sep / 2 * (1 - dist p₀ p₁) ≤ max (∑ x : X, (p₀ x).toReal * loss (est x) θ₀) (∑ x : X, (p₁ x).toReal * loss (est x) θ₁)

Le Cam two-point minimax bound for deterministic estimators est : X → T: if ∀ t, sep ≤ loss t θ₀ + loss t θ₁, then worst-case expected loss over {θ₀, θ₁} is at least (sep / 2) · (1 - dist p₀ p₁).

theorem Cslib.Probability.PMF.leCam_randomized_max_ge {X : Type u_1} {T : Type u_2} {Θ : Type u_3} [Fintype X] [Fintype T] (p₀ p₁ : PMF X) {loss : T → Θ → ℝ} {θ₀ θ₁ : Θ} {sep : ℝ} (hloss₀ : ∀ (t : T), 0 ≤ loss t θ₀) (hloss₁ : ∀ (t : T), 0 ≤ loss t θ₁) (hsep : ∀ (t : T), sep ≤ loss t θ₀ + loss t θ₁) (est : X → PMF T) :
sep / 2 * (1 - dist p₀ p₁) ≤ max (∑ x : X, (p₀ x).toReal * ∑ t : T, ((est x) t).toReal * loss t θ₀) (∑ x : X, (p₁ x).toReal * ∑ t : T, ((est x) t).toReal * loss t θ₁)

Le Cam two-point minimax bound for randomized estimators est : X → PMF T.

theorem Cslib.Probability.PMF.leCam_max_ge_of_klDiv {X : Type u_1} {T : Type u_2} {Θ : Type u_3} [Fintype X] [MeasurableSpace X] [MeasurableSingletonClass X] {p₀ p₁ : PMF X} (hsupp : p₀.support ⊆ p₁.support) {loss : T → Θ → ℝ} {θ₀ θ₁ : Θ} {sep : ℝ} (hsep0 : 0 ≤ sep) (hloss₀ : ∀ (t : T), 0 ≤ loss t θ₀) (hloss₁ : ∀ (t : T), 0 ≤ loss t θ₁) (hsep : ∀ (t : T), sep ≤ loss t θ₀ + loss t θ₁) (est : X → T) :
sep / 2 * (1 - √((InformationTheory.klDiv p₀.toMeasure p₁.toMeasure).toReal / 2)) ≤ max (∑ x : X, (p₀ x).toReal * loss (est x) θ₀) (∑ x : X, (p₁ x).toReal * loss (est x) θ₁)

Le Cam–Pinsker minimax bound on PMF: when p₀.support ⊆ p₁.support and 0 ≤ sep, worst-case expected loss is at least (sep / 2) · (1 - √(D(p₀ ‖ p₁) / 2)).

theorem Cslib.Probability.PMF.leCam_iid_max_ge_of_klDiv {X : Type u_1} {T : Type u_2} {Θ : Type u_3} [Fintype X] [MeasurableSpace X] [MeasurableSingletonClass X] {p₀ p₁ : PMF X} (hsupp : p₀.support ⊆ p₁.support) (n : ℕ) {loss : T → Θ → ℝ} {θ₀ θ₁ : Θ} {sep : ℝ} (hsep0 : 0 ≤ sep) (hloss₀ : ∀ (t : T), 0 ≤ loss t θ₀) (hloss₁ : ∀ (t : T), 0 ≤ loss t θ₁) (hsep : ∀ (t : T), sep ≤ loss t θ₀ + loss t θ₁) (est : (Fin n → X) → T) :
sep / 2 * (1 - √(↑n * (InformationTheory.klDiv p₀.toMeasure p₁.toMeasure).toReal / 2)) ≤ max (∑ x : Fin n → X, ((iid p₀ n) x).toReal * loss (est x) θ₀) (∑ x : Fin n → X, ((iid p₁ n) x).toReal * loss (est x) θ₁)

I.i.d. Le Cam–Pinsker minimax bound: from n i.i.d. observations under p₀ or p₁ (p₀.support ⊆ p₁.support), worst-case expected loss is at least (sep / 2) · (1 - √(n · D(p₀ ‖ p₁) / 2)).

theorem Cslib.Probability.PMF.leCam_max_ge_of_chiSquare {X : Type u_1} {T : Type u_2} {Θ : Type u_3} [Fintype X] {p₀ p₁ : PMF X} (hsupp : p₀.support ⊆ p₁.support) {loss : T → Θ → ℝ} {θ₀ θ₁ : Θ} {sep : ℝ} (hsep0 : 0 ≤ sep) (hloss₀ : ∀ (t : T), 0 ≤ loss t θ₀) (hloss₁ : ∀ (t : T), 0 ≤ loss t θ₁) (hsep : ∀ (t : T), sep ≤ loss t θ₀ + loss t θ₁) (est : X → T) :
sep / 2 * (1 - √(chiSquare p₀ p₁) / 2) ≤ max (∑ x : X, (p₀ x).toReal * loss (est x) θ₀) (∑ x : X, (p₁ x).toReal * loss (est x) θ₁)

Le Cam–χ² minimax bound on PMF: when p₀.support ⊆ p₁.support and 0 ≤ sep, worst-case expected loss is at least (sep / 2) · (1 - √(χ²(p₀ ‖ p₁)) / 2).

Perturbed symmetric coins and Bernoulli mean minimax lower bounds #

theorem Cslib.Probability.PMF.mem_support_coin_of_Ioo {p : ↑unitInterval} (hp0 : 0 < ↑p) (hp1 : ↑p < 1) (b : Bool) :

Support of coin p is all of Bool whenever 0 < p and p < 1.

theorem Cslib.Probability.PMF.toReal_klDiv_coin_perturbed_le {δ : ℝ} (hδ : |δ| ≤ 1 / 6) (p₀ p₁ : ↑unitInterval) (hp₀ : ↑p₀ = 1 / 2 - δ) (hp₁ : ↑p₁ = 1 / 2 + δ) :

KL divergence between symmetric δ-perturbed fair coins 1/2 ± δ (|δ| ≤ 1/6) is at most 18 · δ² nats, proved via KL ≤ χ². Shared by Le Cam and d-dimensional Assouad rates.

theorem Cslib.Probability.PMF.exists_coin_perturbed_klDiv_le {n : ℕ} (hn : 0 < n) :
have δ := 1 / (6 * √↑n); ∃ (pBit : Bool → ↑unitInterval), ↑(pBit false) = 1 / 2 - δ ∧ ↑(pBit true) = 1 / 2 + δ ∧ (∀ (b₁ b₂ : Bool), (coin (pBit b₁)).support ⊆ (coin (pBit b₂)).support) ∧ ∀ (b : Bool), (InformationTheory.klDiv (coin (pBit b)).toMeasure (coin (pBit !b)).toMeasure).toReal ≤ 1 / (2 * ↑n)

Symmetric 1 / (6 √n)-perturbed fair coins pBit : Bool → I for sample size n ≥ 1, with full Bool support and single-flip divergence D(coin (pBit b) ‖ coin (pBit (!b))) ≤ 1 / (2 n).

theorem Cslib.Probability.PMF.bernoulli_mean_minimax_sq_lower_bound {n : ℕ} (hn : 0 < n) (est : (Fin n → Bool) → ℝ) :
∃ (p : ↑unitInterval), 1 / (72 * ↑n) ≤ ∑ x : Fin n → Bool, ((iid (coin p) n) x).toReal * (est x - ↑p) ^ 2

Ω(1 / n) minimax lower bound for Bernoulli mean estimation under squared error: for every sample size n ≥ 1 and every estimator est : (Fin n → Bool) → ℝ, some bias p ∈ [0, 1] has expected squared error at least 1 / (72 n).

theorem Cslib.Probability.PMF.bernoulli_mean_minimax_abs_lower_bound {n : ℕ} (hn : 0 < n) (est : (Fin n → Bool) → ℝ) :
∃ (p : ↑unitInterval), 1 / (12 * √↑n) ≤ ∑ x : Fin n → Bool, ((iid (coin p) n) x).toReal * |est x - ↑p|

Ω(1 / √n) minimax lower bound for Bernoulli mean estimation under absolute error: for every sample size n ≥ 1 and every estimator est : (Fin n → Bool) → ℝ, some bias p ∈ [0, 1] has expected absolute error at least 1 / (12 √n).