Documentation

CslibFrontier.Foundations.MeasureTheory.Integral.PiUpdate

Resampling one coordinate of a product measure #

Under a product Measure.pi μ of probability measures, replacing coordinate i of a sample by an independent draw from a probability measure ν gives a sample from the product in which the ith factor is ν. Formally, the map (v, z) ↦ Function.update v i z sends (Measure.pi μ).prod ν to Measure.pi (Function.update μ i ν); for ν = μ i it preserves Measure.pi μ.

The integral form says that one can integrate over coordinate i first, while keeping the other coordinates of the original sample. This avoids reindexing ι as {i} ⊕ {j // j ≠ i}.

Replacing the coordinates one at a time interpolates between two products Measure.pi μ and Measure.pi ν through the hybrids Measure.pi (s.piecewise ν μ), which draw the coordinates in s from ν and the others from μ. Adding one coordinate t to s changes the integral of F by the integral, over the hybrid for s, of the change caused by redrawing coordinate t from ν t instead of μ t (integral_pi_piecewise_insert_sub). Summing these steps bounds the difference between the two products (abs_integral_pi_sub_le_sum); this is the bookkeeping of Lindeberg's replacement method.

Main results #

theorem MeasureTheory.measurePreserving_update_measure {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] (i : ι) (ν : Measure (X i)) [IsProbabilityMeasure ν] :
MeasurePreserving (fun (p : ((j : ι) → X j) × X i) => Function.update p.1 i p.2) ((Measure.pi μ).prod ν) (Measure.pi (Function.update μ i ν))

Replacing coordinate i of a sample from a product of probability measures by an independent draw from ν: (v, z) ↦ Function.update v i z maps (Measure.pi μ).prod ν to Measure.pi (Function.update μ i ν).

theorem MeasureTheory.measurePreserving_update {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] (i : ι) :
MeasurePreserving (fun (p : ((j : ι) → X j) × X i) => Function.update p.1 i p.2) ((Measure.pi μ).prod (μ i)) (Measure.pi μ)

Resampling coordinate i of a product of probability measures preserves the product: (v, z) ↦ Function.update v i z maps (Measure.pi μ).prod (μ i) to Measure.pi μ.

theorem MeasureTheory.integral_integral_update_measure {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] (i : ι) (ν : Measure (X i)) [IsProbabilityMeasure ν] {F : ((j : ι) → X j) → E} (hF : Integrable F (Measure.pi (Function.update μ i ν))) :
∫ (v : (i : ι) → X i), ∫ (z : X i), F (Function.update v i z) ∂ν ∂Measure.pi μ = ∫ (v : (i : ι) → X i), F v ∂Measure.pi (Function.update μ i ν)

Fubini over one coordinate, with a new law for it. Integrating F against the product in which the ith factor is replaced by ν is the same as first integrating over an independent draw of coordinate i from ν, keeping the other coordinates of a sample from Measure.pi μ.

theorem MeasureTheory.integrable_integral_update_measure {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] (i : ι) (ν : Measure (X i)) [IsProbabilityMeasure ν] {F : ((j : ι) → X j) → E} (hF : Integrable F (Measure.pi (Function.update μ i ν))) :
Integrable (fun (v : (a : ι) → X a) => ∫ (z : X i), F (Function.update v i z) ∂ν) (Measure.pi μ)

The inner integral of integral_integral_update_measure is integrable in the outer sample.

theorem MeasureTheory.integral_integral_update {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] {F : ((j : ι) → X j) → E} (hF : Integrable F (Measure.pi μ)) (i : ι) :
∫ (v : (i : ι) → X i), ∫ (z : X i), F (Function.update v i z) ∂μ i ∂Measure.pi μ = ∫ (v : (i : ι) → X i), F v ∂Measure.pi μ

Fubini over one coordinate. Integrating F against a product of probability measures is the same as first integrating over a fresh draw of coordinate i, keeping the other coordinates of the outer sample.

theorem MeasureTheory.ae_integrable_update {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] {E : Type u_3} [NormedAddCommGroup E] {F : ((j : ι) → X j) → E} (hF : Integrable F (Measure.pi μ)) (i : ι) :
∀ᵐ (v : (a : ι) → X a) ∂Measure.pi μ, Integrable (fun (z : X i) => F (Function.update v i z)) (μ i)

For integrable F on a product of probability measures, the restriction z ↦ F (Function.update v i z) of F to the line through v along coordinate i is μ i-integrable for almost every v.

theorem MeasureTheory.integral_integral_update_swap {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] {F : ((j : ι) → X j) → E} (hF : Integrable F (Measure.pi μ)) (i : ι) :
∫ (z : X i), ∫ (v : (i : ι) → X i), F (Function.update v i z) ∂Measure.pi μ ∂μ i = ∫ (v : (i : ι) → X i), F v ∂Measure.pi μ

Fubini over one coordinate, outer form. Integrating F against a product of probability measures is the same as first fixing coordinate i to z, averaging over the other coordinates, and then integrating over z ∼ μ i.

theorem MeasureTheory.integral_apply_eval_eq_integral_integral {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] {i : ι} {Φ : ((j : ι) → X j) → X i → E} (hΦ : ∀ (v : (a : ι) → X a) (z : X i), Φ (Function.update v i z) = Φ v) (hint : Integrable (fun (v : (j : ι) → X j) => Φ v (v i)) (Measure.pi μ)) :
∫ (v : (i : ι) → X i), Φ v (v i) ∂Measure.pi μ = ∫ (v : (i : ι) → X i), ∫ (z : X i), Φ v z ∂μ i ∂Measure.pi μ

Evaluating at a fresh coordinate. If Φ v does not depend on coordinate i of v, then evaluating it at v i has the same integral as evaluating it at an independent draw from μ i: ∫ v, Φ v (v i) ∂Measure.pi μ = ∫ v, ∫ z, Φ v z ∂μ i ∂Measure.pi μ. In online-to-batch arguments, Φ v is the loss of the hypothesis played before example i was seen.

Hybrids of two product measures #

theorem MeasureTheory.isProbabilityMeasure_piecewise {ι : Type u_1} {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] (ν : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (ν i)] (s : Finset ι) [(i : ι) → Decidable (i ∈ s)] (i : ι) :

The factors of a hybrid of two families of probability measures are probability measures.

theorem MeasureTheory.integral_pi_piecewise_insert_sub {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] (ν : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (ν i)] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] {F : ((j : ι) → X j) → E} {s : Finset ι} {t : ι} (ht : t ∉ s) (hF : ∀ (s : Finset ι), Integrable F (Measure.pi (s.piecewise ν μ))) :
∫ (v : (i : ι) → X i), F v ∂Measure.pi ((insert t s).piecewise ν μ) - ∫ (v : (i : ι) → X i), F v ∂Measure.pi (s.piecewise ν μ) = ∫ (v : (i : ι) → X i), ∫ (z : X t), F (Function.update v t z) ∂ν t - ∫ (z : X t), F (Function.update v t z) ∂μ t ∂Measure.pi (s.piecewise ν μ)

One step of the hybrid argument. Moving coordinate t ∉ s from μ t to ν t changes the integral of F over the hybrid Measure.pi (s.piecewise ν μ) by the integral, over that hybrid, of the change caused by redrawing coordinate t from ν t instead of μ t.

theorem MeasureTheory.abs_integral_pi_sub_le_sum {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ ν : (i : ι) → Measure (X i)) {F : ((j : ι) → X j) → ℝ} (δ : ι → ℝ) (hδ : ∀ (s : Finset ι), ∀ t ∉ s, |∫ (v : (i : ι) → X i), F v ∂Measure.pi ((insert t s).piecewise ν μ) - ∫ (v : (i : ι) → X i), F v ∂Measure.pi (s.piecewise ν μ)| ≤ δ t) :
|∫ (v : (i : ι) → X i), F v ∂Measure.pi μ - ∫ (v : (i : ι) → X i), F v ∂Measure.pi ν| ≤ ∑ t : ι, δ t

The hybrid argument. If, for every s and t ∉ s, moving coordinate t of the hybrid Measure.pi (s.piecewise ν μ) from μ t to ν t changes the integral of F by at most δ t, then the integrals of F over Measure.pi μ and Measure.pi ν differ by at most ∑ t, δ t.

theorem MeasureTheory.integral_finset_prod_pi_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {X : ι → Type u_2} [(i : ι) → MeasurableSpace (X i)] (μ : (i : ι) → Measure (X i)) [∀ (i : ι), IsProbabilityMeasure (μ i)] [LinearOrder ι] (F : ι → ((i : ι) → X i) → ℝ) (B : ι → ℝ) (hF : ∀ (i : ι) (v : (i : ι) → X i), 0 ≤ F i v) (hB : ∀ (i : ι), 0 ≤ B i) (hadapted : ∀ (i j : ι), i < j → ∀ (v : (a : ι) → X a) (z : X j), F i (Function.update v j z) = F i v) (hint : ∀ (s : Finset ι), Integrable (fun (v : (i : ι) → X i) => ∏ i ∈ s, F i v) (Measure.pi μ)) (hstep : ∀ (i : ι) (v : (a : ι) → X a), ∫ (z : X i), F i (Function.update v i z) ∂μ i ≤ B i) (s : Finset ι) :
∫ (v : (i : ι) → X i), ∏ i ∈ s, F i v ∂Measure.pi μ ≤ ∏ i ∈ s, B i

A product of nonnegative adapted factors has integral at most the product of the uniform bounds on their one-coordinate integrals.