Mathlib.Probability.Kernel.WithDensity
23 declarations. Mathlib docs · Source
theorem ProbabilityTheory.Kernel.withDensity.congr_simp E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ κ_1 : ProbabilityTheory.Kernel α β)
(e_κ : κ = κ_1) [inst : ProbabilityTheory.IsSFiniteKernel κ] (f f_1 : α → β → ENNReal),
f = f_1 → κ.withDensity f = κ_1.withDensity f_1
def ProbabilityTheory.Kernel.withDensity E1 #
{α : Type u_1} →
{β : Type u_2} →
{mα : MeasurableSpace α} →
{mβ : MeasurableSpace β} →
(κ : ProbabilityTheory.Kernel α β) →
[ProbabilityTheory.IsSFiniteKernel κ] → (α → β → ENNReal) → ProbabilityTheory.Kernel α β
Kernel with image (κ a).withDensity (f a) if Function.uncurry f is measurable, and
with image 0 otherwise. If Function.uncurry f is measurable, it satisfies
∫⁻ b, g b ∂(withDensity κ f hf a) = ∫⁻ b, f a b * g b ∂(κ a).
theorem ProbabilityTheory.Kernel.withDensity_of_not_measurable E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsSFiniteKernel κ],
¬Measurable (Function.uncurry f) → κ.withDensity f = 0
theorem ProbabilityTheory.Kernel.withDensity_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsSFiniteKernel κ],
Measurable (Function.uncurry f) → ∀ (a : α), (κ.withDensity f) a = (κ a).withDensity (f a)
theorem ProbabilityTheory.Kernel.withDensity_apply' E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsSFiniteKernel κ],
Measurable (Function.uncurry f) → ∀ (a : α) (s : Set β), ((κ.withDensity f) a) s = ∫⁻ (b : β) in s, f a b ∂κ a
theorem ProbabilityTheory.Kernel.withDensity_congr_ae E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ] {f g : α → β → ENNReal},
Measurable (Function.uncurry f) →
Measurable (Function.uncurry g) → (∀ (a : α), f a =ᵐ[κ a] g a) → κ.withDensity f = κ.withDensity g
theorem ProbabilityTheory.Kernel.withDensity_absolutelyContinuous E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
[inst : ProbabilityTheory.IsSFiniteKernel κ] (f : α → β → ENNReal) (a : α),
((κ.withDensity f) a).AbsolutelyContinuous (κ a)
theorem ProbabilityTheory.Kernel.withDensity_one E0 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ], κ.withDensity 1 = κ
theorem ProbabilityTheory.Kernel.withDensity_one' E0 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ], (κ.withDensity fun x x_1 ↦ 1) = κ
theorem ProbabilityTheory.Kernel.withDensity_zero E0 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ], κ.withDensity 0 = 0
theorem ProbabilityTheory.Kernel.withDensity_zero' E0 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ], (κ.withDensity fun x x_1 ↦ 0) = 0
theorem ProbabilityTheory.Kernel.lintegral_withDensity E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsSFiniteKernel κ],
Measurable (Function.uncurry f) →
∀ (a : α) {g : β → ENNReal}, Measurable g → ∫⁻ (b : β), g b ∂(κ.withDensity f) a = ∫⁻ (b : β), f a b * g b ∂κ a
theorem ProbabilityTheory.Kernel.integral_withDensity E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
{E : Type u_4} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {f : β → E}
[inst_2 : ProbabilityTheory.IsSFiniteKernel κ] {a : α} {g : α → β → NNReal},
Measurable (Function.uncurry g) → ∫ (b : β), f b ∂(κ.withDensity fun a b ↦ ↑(g a b)) a = ∫ (b : β), g a b • f b ∂κ a
theorem ProbabilityTheory.Kernel.withDensity_add_left E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ η : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ] [inst_1 : ProbabilityTheory.IsSFiniteKernel η] (f : α → β → ENNReal),
(κ + η).withDensity f = κ.withDensity f + η.withDensity f
theorem ProbabilityTheory.Kernel.withDensity_kernel_sum E1 #
∀ {α : Type u_1} {β : Type u_2} {ι : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} [inst : Countable ι]
(κ : ι → ProbabilityTheory.Kernel α β) (hκ : ∀ (i : ι), ProbabilityTheory.IsSFiniteKernel (κ i))
(f : α → β → ENNReal),
(ProbabilityTheory.Kernel.sum κ).withDensity f = ProbabilityTheory.Kernel.sum fun i ↦ (κ i).withDensity f
theorem ProbabilityTheory.Kernel.withDensity_add_right E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
[inst : ProbabilityTheory.IsSFiniteKernel κ] {f g : α → β → ENNReal},
Measurable (Function.uncurry f) →
Measurable (Function.uncurry g) → κ.withDensity (f + g) = κ.withDensity f + κ.withDensity g
theorem ProbabilityTheory.Kernel.withDensity_sub_add_cancel E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
[inst : ProbabilityTheory.IsSFiniteKernel κ] {f g : α → β → ENNReal},
Measurable (Function.uncurry f) →
Measurable (Function.uncurry g) →
(∀ (a : α), g a ≤ᵐ[κ a] f a) → (κ.withDensity fun a x ↦ f a x - g a x) + κ.withDensity g = κ.withDensity f
theorem ProbabilityTheory.Kernel.withDensity_tsum E1 #
∀ {α : Type u_1} {β : Type u_2} {ι : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} [inst : Countable ι]
(κ : ProbabilityTheory.Kernel α β) [inst_1 : ProbabilityTheory.IsSFiniteKernel κ] {f : ι → α → β → ENNReal},
(∀ (i : ι), Measurable (Function.uncurry (f i))) →
κ.withDensity (∑' (n : ι), f n) = ProbabilityTheory.Kernel.sum fun n ↦ κ.withDensity (f n)
theorem ProbabilityTheory.Kernel.isFiniteKernel_withDensity_of_bounded E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsFiniteKernel κ] {B : ENNReal},
B ≠ ⊤ → (∀ (a : α) (b : β), f a b ≤ B) → ProbabilityTheory.IsFiniteKernel (κ.withDensity f)
If a kernel κ is finite and a function f : α → β → ℝ≥0∞ is bounded, then withDensity κ f
is finite.
theorem ProbabilityTheory.Kernel.isSFiniteKernel_withDensity_of_isFiniteKernel E2 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsFiniteKernel κ],
(∀ (a : α) (b : β), f a b ≠ ⊤) → ProbabilityTheory.IsSFiniteKernel (κ.withDensity f)
Auxiliary lemma for IsSFiniteKernel.withDensity.
If a kernel κ is finite, then withDensity κ f is s-finite.
theorem ProbabilityTheory.Kernel.IsSFiniteKernel.withDensity E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {f : α → β → ENNReal}
(κ : ProbabilityTheory.Kernel α β) [inst : ProbabilityTheory.IsSFiniteKernel κ],
(∀ (a : α) (b : β), f a b ≠ ⊤) → ProbabilityTheory.IsSFiniteKernel (κ.withDensity f)
For an s-finite kernel κ and a function f : α → β → ℝ≥0∞ which is everywhere finite,
withDensity κ f is s-finite.
instance ProbabilityTheory.Kernel.instIsSFiniteKernelWithDensityOfNNReal E0 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} (κ : ProbabilityTheory.Kernel α β)
[inst : ProbabilityTheory.IsSFiniteKernel κ] (f : α → β → NNReal),
ProbabilityTheory.IsSFiniteKernel (κ.withDensity fun a b ↦ ↑(f a b))
For an s-finite kernel κ and a function f : α → β → ℝ≥0, withDensity κ f is s-finite.
theorem ProbabilityTheory.Kernel.withDensity_mul E1 #
∀ {α : Type u_1} {β : Type u_2} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {κ : ProbabilityTheory.Kernel α β}
[inst : ProbabilityTheory.IsSFiniteKernel κ] {f : α → β → NNReal} {g : α → β → ENNReal},
Measurable (Function.uncurry f) →
Measurable (Function.uncurry g) →
(κ.withDensity fun a x ↦ ↑(f a x) * g a x) = (κ.withDensity fun a x ↦ ↑(f a x)).withDensity g