Stat.Concentration.Hilbert­Empirical­Mean

Dimension-free concentration of bounded Hilbert-valued empirical means: finite-product variance identities, expected-norm control, and McDiarmid confidence radii without a finite-dimensionality assumption.

Basic 5 core · 12 supporting This module defines the population and empirical means of a Hilbert-valued feature map and proves their finite-product second-moment identities. ★ centeredEmpiricalMean_secondMoment_le

Dimension-free Hilbert empirical-mean moments

This module defines the population and empirical means of a Hilbert-valued feature map and proves their finite-product second-moment identities. In particular, it establishes the dimension-free variance-of-the-mean calculation by expanding Hilbert inner products and cancelling independent centered cross terms; no finite-dimensionality assumption is used.

def populationMean reviewed
Causalean.Stat.Concentration.HilbertEmpiricalMean

The population mean of a Hilbert-valued feature map under a measure (a probability law in intended use; none is required) is given by its Bochner integral, which is zero when the feature map is not integrable.

Definition (Lean source)
X :
Type u_1
shared
H :
Type u_2
shared
P :
f :
X → H
populationMean P f :
H
∫ x, f x ∂P
Causalean.Stat.Concentration.HilbertEmpiricalMean.populationMean · Causalean/Stat/Concentration/HilbertEmpiricalMean/Basic.lean:30
def empiricalMean reviewed
Causalean.Stat.Concentration.HilbertEmpiricalMean

The empirical mean of a Hilbert-valued feature map on a sample with the stated size and observations is given by the inverse sample size times its finite coordinate sum. For sample size zero the inverse is zero by convention, so the value is zero.

Definition (Lean source)
X :
Type u_1
shared
H :
Type u_2
shared
f :
X → H
m :
z :
Fin m → X
empiricalMean f m z :
H
(m : ℝ)⁻¹ • ∑ r, f (z r)
Causalean.Stat.Concentration.HilbertEmpiricalMean.empiricalMean · Causalean/Stat/Concentration/HilbertEmpiricalMean/Basic.lean:36
def centeredEmpiricalMean reviewed
Causalean.Stat.Concentration.HilbertEmpiricalMean

The centered empirical mean for a measure (a probability law in intended use), a Hilbert-valued feature map, and a sample with the stated size and observations is given by its empirical mean minus its population mean.

Definition (Lean source)
X :
Type u_1
shared
H :
Type u_2
shared
P :
f :
X → H
m :
z :
Fin m → X
centeredEmpiricalMean P f m z :
H
Causalean.Stat.Concentration.HilbertEmpiricalMean.centeredEmpiricalMean · Causalean/Stat/Concentration/HilbertEmpiricalMean/Basic.lean:43
def centeredEmpiricalMeanNorm reviewed
Causalean.Stat.Concentration.HilbertEmpiricalMean

The norm statistic for a centered empirical mean under a measure (a probability law in intended use), a Hilbert-valued feature map, and a sample with the stated size and observations is given by the Hilbert norm of that centered mean.

Definition (Lean source)
X :
Type u_1
shared
H :
Type u_2
shared
P :
f :
X → H
m :
z :
Fin m → X
centeredEmpiricalMeanNorm P f m z :
‖centeredEmpiricalMean P f m z‖
Causalean.Stat.Concentration.HilbertEmpiricalMean.centeredEmpiricalMeanNorm · Causalean/Stat/Concentration/HilbertEmpiricalMean/Basic.lean:51
theorem centeredEmpiricalMean_secondMoment_le reviewed
Causalean.Stat.Concentration.HilbertEmpiricalMean

For a probability law, a strongly measurable square-integrable Hilbert-valued feature map, and a positive sample size, the centered empirical mean has second moment at most the inverse sample size times the raw population second moment.

Formal statement
X :
Type u_1
shared
H :
Type u_2
shared
f :
X → H
hf_L2 :
MemLp f 2 P
m :
hm :
0 < m
∫ z : Fin m → X, ‖centeredEmpiricalMean P f m z‖ ^ 2 ∂(Measure.pi (fun _ : Fin m => P))
≤ (m : ℝ)⁻¹ * ∫ x, ‖f x‖ ^ 2 ∂P
Proof (Lean source)
theorem centeredEmpiricalMean_secondMoment_le (P : Measure X) [IsProbabilityMeasure P] (f : X → H) (hf : StronglyMeasurable f) (hf_L2 : MemLp f 2 P) {m : ℕ} (hm : 0 < m) : ∫ z : Fin m → X, ‖centeredEmpiricalMean P f m z‖ ^ 2 ∂(Measure.pi (fun _ : Fin m => P)) ≤ (m : ℝ)⁻¹ * ∫ x, ‖f x‖ ^ 2 ∂P := by rw [centeredEmpiricalMean_secondMoment_eq P f hf hf_L2 hm] exact mul_le_mul_of_nonneg_left (population_centered_secondMoment_le P f hf hf_L2) (by positivity)
Causalean.Stat.Concentration.HilbertEmpiricalMean.centeredEmpiricalMean_secondMoment_le · Causalean/Stat/Concentration/HilbertEmpiricalMean/Basic.lean:337 · uses centeredEmpiricalMean
12 supporting declarations (lemmas, instances)
Tail 1 core · 3 supporting This module turns the Hilbert empirical-mean second-moment identity into an expected-norm bound and a scalar McDiarmid tail bound. ★ centeredEmpiricalMean_norm_highProbability

Dimension-free Hilbert empirical-mean concentration

This module turns the Hilbert empirical-mean second-moment identity into an expected-norm bound and a scalar McDiarmid tail bound. A unit-norm feature map therefore has centered empirical mean within the standard dimension-free radius with high probability in every complete real Hilbert space.

theorem centeredEmpiricalMean_norm_highProbability reviewed
Causalean.Stat.Concentration.HilbertEmpiricalMean

For a probability law, a strongly measurable Hilbert-valued feature map with unit-norm bound at every observation, a nonempty sample size, and a confidence level strictly between zero and one, the centered empirical mean lies within the standard dimension-free radius with probability at least one minus the confidence level.

Formal statement
X :
Type u_2
shared
H :
Type u_3
shared
f :
X → H
hbound :
∀ x, ‖f x‖ ≤ 1
m :
hm :
1 ≤ m
δ :
:
0 < δ
hδ_one :
δ < 1
1 - ofReal δ
≤ (Measure.pi (fun _ : Fin m => P)) {z | ‖(m : ℝ)⁻¹ • ∑ r, f (z r) - ∫ x, f x ∂P‖ ≤ 1 / sqrt m + sqrt (2 * log (1 / δ) / m)}
Proof (Lean source)
theorem centeredEmpiricalMean_norm_highProbability (P : Measure X) [IsProbabilityMeasure P] (f : X → H) (hf : StronglyMeasurable f) (hbound : ∀ x, ‖f x‖ ≤ 1) {m : ℕ} (hm : 1 ≤ m) {δ : ℝ} (hδ : 0 < δ) (hδ_one : δ < 1) : 1 - ofReal δ ≤ (Measure.pi (fun _ : Fin m => P)) {z | ‖(m : ℝ)⁻¹ • ∑ r, f (z r) - ∫ x, f x ∂P‖ ≤ 1 / sqrt m + sqrt (2 * log (1 / δ) / m)} := by let Q : Measure (Fin m → X) := Measure.pi (fun _ : Fin m => P) let bad : Set (Fin m → X) := {z | 1 / sqrt m + sqrt (2 * log (1 / δ) / m) < ‖(m : ℝ)⁻¹ • ∑ r, f (z r) - ∫ x, f x ∂P‖} have hbad_meas : MeasurableSet bad := by dsimp only [bad] simpa only [centeredEmpiricalMeanNorm, centeredEmpiricalMean, empiricalMean, populationMean] using measurableSet_lt measurable_const (measurable_centeredEmpiricalMeanNorm P f hf m) have htail : (Q bad).toReal ≤ δ := by simpa only [Q, bad] using centeredEmpiricalMean_norm_tail_le P f hf hbound hm hδ hδ_one have hbad_ne : Q bad ≠ ⊤ := measure_ne_top Q bad have hbad : Q bad ≤ ofReal δ := by calc Q bad = ofReal (Q bad).toReal := (ENNReal.ofReal_toReal hbad_ne).symm _ ≤ ofReal δ := ENNReal.ofReal_le_ofReal htail have hcompl : {z | ‖(m : ℝ)⁻¹ • ∑ r, f (z r) - ∫ x, f x ∂P‖ ≤ 1 / sqrt m + sqrt (2 * log (1 / δ) / m)} = badᶜ := by ext z simp only [bad, Set.mem_ofPred_eq, mem_compl_iff, not_lt] rw [show Measure.pi (fun _ : Fin m => P) = Q by rfl, hcompl, prob_compl_eq_one_sub hbad_meas] exact tsub_le_tsub_left hbad 1
Causalean.Stat.Concentration.HilbertEmpiricalMean.centeredEmpiricalMean_norm_highProbability · Causalean/Stat/Concentration/HilbertEmpiricalMean/Tail.lean:193
3 supporting declarations (lemmas, instances)