Stat.Concentration.Random­Design­Weighted­Hoeffding

Random-design weighted Hoeffding concentration: conditional exponential-moment and self-normalized tail bounds for bounded marks whose weights depend measurably on the entire design vector.

Basic 4 core · 8 supporting This module proves conditional Hoeffding exponential-moment bounds for finite i.i.d. ★ product_weighted_centered_conditional_mgf_le

Conditional Hoeffding MGFs with random-design weights

This module proves conditional Hoeffding exponential-moment bounds for finite i.i.d. samples whose coefficient array is a measurable function of the complete design vector. It supplies a kernel-native formulation and a regular-conditional-distribution corollary, deriving rather than assuming conditional independence of the marks.

def realizedWeightEnergy reviewed
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding

For a coefficient array determined by a complete design vector and a complete design vector, the realized weight energy is the sum of the squares of the coefficients selected by that design vector.

Definition (Lean source)
N :
D :
Type*
w :
(Fin N -> D) -> Fin N -> Real
d :
Fin N -> D
realizedWeightEnergy w d :
∑ i, (w d i) ^ 2
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding.realizedWeightEnergy · Causalean/Stat/Concentration/RandomDesignWeightedHoeffding/Basic.lean:26
def weightedCenteredMarkSum reviewed
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding

For a real-valued conditional mean function of a design value, a coefficient array determined by a complete design vector, a complete design vector, and a vector of real marks, the weighted centered mark sum is the sum over sample positions of the selected coefficient times the mark minus its conditional mean at the corresponding design value.

Definition (Lean source)
N :
D :
Type*
mD :
D -> Real
w :
(Fin N -> D) -> Fin N -> Real
d :
Fin N -> D
y :
Fin N -> Real
weightedCenteredMarkSum mD w d y :
∑ i, w d i * (y i - mD (d i))
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding.weightedCenteredMarkSum · Causalean/Stat/Concentration/RandomDesignWeightedHoeffding/Basic.lean:31
def selfNormalizedWeightedCenteredSum reviewed
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding

For a design map, a real-valued outcome map, a real-valued conditional mean function of the design, a coefficient array determined by a complete design vector, and a finite vector of sampled units, the self-normalized weighted centered sum is the weighted centered sum divided by the square root of the realized weight energy of the sampled design vector; when that energy is zero, this value is zero.

Definition (Lean source)
N :
Omega D :
Type*
design :
Omega -> D
Y :
Omega -> Real
mD :
D -> Real
w :
(Fin N -> D) -> Fin N -> Real
z :
Fin N -> Omega
selfNormalizedWeightedCenteredSum design Y mD w z :
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding.selfNormalizedWeightedCenteredSum · Causalean/Stat/Concentration/RandomDesignWeightedHoeffding/Basic.lean:37
theorem product_weighted_centered_conditional_mgf_le reviewed
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding

A probability law P, measurable design, and measurable outcome that is almost surely in the unit interval, together with a measurable regression equal almost surely to the conditional expectation given the design and measurable complete-design weights, give the conditional Hoeffding exponential-moment bound on almost every complete design vector.

Formal statement
N :
Omega D :
design :
Omega -> D
hdesign :
Measurable design
Y :
Omega -> Real
hY :
hY_nonneg :
∀ᵐ omega ∂P, 0 <= Y omega
hY_le_one :
∀ᵐ omega ∂P, Y omega <= 1
mD :
D -> Real
hmD :
hcond :
P[Y | comap design inferInstance] =ᵐ[P] mD ∘ design
w :
(Fin N -> D) -> Fin N -> Real
hw :
∀ᵐ d ∂Measure.pi (fun _ : Fin N => P.map design), ∀ s : Real, ∫ y, exp (s * weightedCenteredMarkSum mD w d y) ∂Causalean.Stat.finProductKernel N (condDistrib Y design P) d <
= exp (s ^ 2 * realizedWeightEnergy w d / 8)
Proof (Lean source)
theorem product_weighted_centered_conditional_mgf_le {N : Nat} {Omega D : Type*} [MeasurableSpace Omega] [MeasurableSpace D] (P : Measure Omega) [IsProbabilityMeasure P] (design : Omega -> D) (hdesign : Measurable design) (Y : Omega -> Real) (hY : Measurable Y) (hY_nonneg : ∀ᵐ omega ∂P, 0 <= Y omega) (hY_le_one : ∀ᵐ omega ∂P, Y omega <= 1) (mD : D -> Real) (hmD : Measurable mD) (hcond : P[Y | comap design inferInstance] =ᵐ[P] mD ∘ design) (w : (Fin N -> D) -> Fin N -> Real) (hw : Measurable w) : ∀ᵐ d ∂Measure.pi (fun _ : Fin N => P.map design), ∀ s : Real, ∫ y, exp (s * weightedCenteredMarkSum mD w d y) ∂Causalean.Stat.finProductKernel N (condDistrib Y design P) d <= exp (s ^ 2 * realizedWeightEnergy w d / 8) := by -- Derive the conditional-distribution mean and range from `hcond` and the ambient -- bounds, then invoke the kernel-native product theorem. No conditional-independence -- hypothesis is introduced here. have hY_mem : ∀ᵐ omega ∂P, Y omega ∈ Icc (0 : ℝ) 1 := hY_nonneg.and hY_le_one have hY_int : Integrable Y P := Integrable.of_mem_Icc 0 1 hY.aemeasurable hY_mem have hmean_comp : (fun omega => ∫ y, y ∂condDistrib Y design P (design omega)) =ᵐ[P] mD ∘ design := (condExp_ae_eq_integral_condDistrib' hdesign hY_int).symm.trans hcond have hmean : ∀ᵐ d ∂P.map design, ∫ y, y ∂condDistrib Y design P d = mD d := by rw [ae_map_iff hdesign.aemeasurable] · filter_upwards [hmean_comp] with x hx exact hx · exact measurableSet_eq_fun (((stronglyMeasurable_id.comp_measurable measurable_snd).integral_condDistrib (X := design) (Y := Y) (μ := P)).measurable) hmD have hpair : ∀ᵐ p ∂(P.map design ⊗ₘ condDistrib Y design P), p.2 ∈ Icc (0 : ℝ) 1 := by rw [compProd_map_condDistrib hY.aemeasurable] rw [ae_map_iff (hdesign.prodMk hY).aemeasurable] · simpa using hY_mem · exact measurableSet_Icc.preimage measurable_snd have hrange : ∀ᵐ d ∂P.map design, ∀ᵐ y ∂condDistrib Y design P d, y ∈ Icc (0 : ℝ) 1 := Measure.ae_ae_of_ae_compProd hpair letI : IsProbabilityMeasure (P.map design) := Measure.isProbabilityMeasure_map hdesign.aemeasurable exact product_weighted_centered_attachKernel_conditional_mgf_le (P.map design) (condDistrib Y design P) mD hmD hmean hrange w hw
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding.product_weighted_centered_conditional_mgf_le · Causalean/Stat/Concentration/RandomDesignWeightedHoeffding/Basic.lean:287 · uses realizedWeightEnergy , weightedCenteredMarkSum , finProductKernel
8 supporting declarations (lemmas, instances)
Tail 1 core · 2 supporting This module transports the conditional random-design MGF bound to a retained-design law and then to an i.i.d. ★ product_weighted_centered_tail_le

Self-normalized random-design weighted Hoeffding tails

This module transports the conditional random-design MGF bound to a retained-design law and then to an i.i.d. observation product. It provides two-sided self-normalized Hoeffding tails for weights that depend measurably on every observed design coordinate.

theorem product_weighted_centered_tail_le reviewed
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding

A probability law P, measurable design, and measurable outcome that is almost surely in the unit interval, together with a measurable regression equal almost surely to the conditional expectation given the design, measurable complete-design weights of positive realized energy almost surely, and a nonnegative threshold, yield the two-sided self-normalized Hoeffding tail bound for the finite i.i.d. sample.

Formal statement
N :
Omega D :
design :
Omega -> D
hdesign :
Measurable design
Y :
Omega -> Real
hY :
hY_nonneg :
∀ᵐ omega ∂P, 0 <= Y omega
hY_le_one :
∀ᵐ omega ∂P, Y omega <= 1
mD :
D -> Real
hmD :
hcond :
P[Y | comap design inferInstance] =ᵐ[P] mD ∘ design
w :
(Fin N -> D) -> Fin N -> Real
hw :
henergy :
∀ᵐ z ∂Measure.pi (fun _ : Fin N => P), 0 < realizedWeightEnergy w (designVector design z)
t :
ht :
0 <= t
(Measure.pi (fun _ : Fin N => P)).real {z | t * sqrt (realizedWeightEnergy w (designVector design z)) <= |weightedCenteredSum design Y mD w z|} <
= 2 * exp (-2 * t ^ 2)
Proof (Lean source)
theorem product_weighted_centered_tail_le {N : Nat} {Omega D : Type*} [MeasurableSpace Omega] [MeasurableSpace D] (P : Measure Omega) [IsProbabilityMeasure P] (design : Omega -> D) (hdesign : Measurable design) (Y : Omega -> Real) (hY : Measurable Y) (hY_nonneg : ∀ᵐ omega ∂P, 0 <= Y omega) (hY_le_one : ∀ᵐ omega ∂P, Y omega <= 1) (mD : D -> Real) (hmD : Measurable mD) (hcond : P[Y | comap design inferInstance] =ᵐ[P] mD ∘ design) (w : (Fin N -> D) -> Fin N -> Real) (hw : Measurable w) (henergy : ∀ᵐ z ∂Measure.pi (fun _ : Fin N => P), 0 < realizedWeightEnergy w (designVector design z)) {t : Real} (ht : 0 <= t) : (Measure.pi (fun _ : Fin N => P)).real {z | t * sqrt (realizedWeightEnergy w (designVector design z)) <= |weightedCenteredSum design Y mD w z|} <= 2 * exp (-2 * t ^ 2) := by have hY_mem : ∀ᵐ omega ∂P, Y omega ∈ Icc (0 : Real) 1 := hY_nonneg.and hY_le_one have hY_int : Integrable Y P := Integrable.of_mem_Icc 0 1 hY.aemeasurable hY_mem have hmean_comp : (fun omega => ∫ y, y ∂condDistrib Y design P (design omega)) =ᵐ[P] mD ∘ design := (condExp_ae_eq_integral_condDistrib' hdesign hY_int).symm.trans hcond have hmean : ∀ᵐ d ∂P.map design, ∫ y, y ∂condDistrib Y design P d = mD d := by rw [ae_map_iff hdesign.aemeasurable] · filter_upwards [hmean_comp] with x hx exact hx · exact measurableSet_eq_fun (((stronglyMeasurable_id.comp_measurable measurable_snd).integral_condDistrib (X := design) (Y := Y) (μ := P)).measurable) hmD have hpair : ∀ᵐ p ∂(P.map design ⊗ₘ condDistrib Y design P), p.2 ∈ Icc (0 : Real) 1 := by rw [compProd_map_condDistrib hY.aemeasurable] rw [ae_map_iff (hdesign.prodMk hY).aemeasurable] · simpa using hY_mem · exact measurableSet_Icc.preimage measurable_snd have hrange : ∀ᵐ d ∂P.map design, ∀ᵐ y ∂condDistrib Y design P d, y ∈ Icc (0 : Real) 1 := Measure.ae_ae_of_ae_compProd hpair let obsLaw : Measure (Fin N -> Omega) := Measure.pi (fun _ : Fin N => P) let designLaw : Measure (Fin N -> D) := Measure.pi (fun _ : Fin N => P.map design) let designVec : (Fin N -> Omega) -> (Fin N -> D) := designVector design have hdesignVec : Measurable designVec := by simpa only [designVec] using measurable_designVector design hdesign have henergySet : MeasurableSet {d : Fin N -> D | 0 < realizedWeightEnergy w d} := measurableSet_lt measurable_const (measurable_realizedWeightEnergy hw) have hmapDesign : obsLaw.map designVec = designLaw := by change (Measure.pi (fun _ : Fin N => P)).map (fun z : Fin N -> Omega => fun i => design (z i)) = Measure.pi (fun _ : Fin N => P.map design) exact Causalean.Stat.map_pi_finCoordinatewise N P hdesign have henergyDesign : ∀ᵐ d ∂designLaw, 0 < realizedWeightEnergy w d := by rw [← hmapDesign, ae_map_iff hdesignVec.aemeasurable henergySet] simpa only [obsLaw, designVec] using henergy letI : IsProbabilityMeasure (P.map design) := Measure.isProbabilityMeasure_map hdesign.aemeasurable have hattached := product_weighted_centered_attachKernel_tail_le (N := N) (P.map design) (condDistrib Y design P) mD hmD hmean hrange w hw henergyDesign ht let jointMap : (Fin N -> Omega) -> (Fin N -> D) × (Fin N -> Real) := fun z => (designVector design z, fun i => Y (z i)) have hjointMap : Measurable jointMap := by exact (measurable_designVector design hdesign).prodMk (measurable_finCoordinatewise N hY) let event : Set ((Fin N -> D) × (Fin N -> Real)) := {p | t * sqrt (realizedWeightEnergy w p.1) <= |weightedCenteredMarkSum mD w p.1 p.2|} have hevent : MeasurableSet event := by exact measurableSet_le (measurable_const.mul ((measurable_realizedWeightEnergy hw).comp measurable_fst).sqrt) (measurable_weightedCenteredMarkSum hmD hw).abs have hpull : jointMap ⁻¹' event = {z | t * sqrt (realizedWeightEnergy w (designVector design z)) <= |weightedCenteredSum design Y mD w z|} := by ext z simp only [Set.mem_preimage, Set.mem_setOf_eq, jointMap, event] change t * sqrt (realizedWeightEnergy w (designVector design z)) <= |∑ i, w (designVector design z) i * (Y (z i) - mD (design (z i)))| ↔ _ rfl have hlaw := product_observation_law_map_design_outcome (N := N) P design hdesign Y hY have hmapReal := map_measureReal_apply (μ := obsLaw) hjointMap hevent rw [hlaw] at hmapReal change obsLaw.real {z | t * sqrt (realizedWeightEnergy w (designVector design z)) <= |weightedCenteredSum design Y mD w z|} <= 2 * exp (-2 * t ^ 2) rw [← hpull, ← hmapReal] simpa only [designLaw] using hattached
Causalean.Stat.Concentration.RandomDesignWeightedHoeffding.product_weighted_centered_tail_le · Causalean/Stat/Concentration/RandomDesignWeightedHoeffding/Tail.lean:286 · uses designVector , weightedCenteredSum , realizedWeightEnergy
2 supporting declarations (lemmas, instances)