Documentation

Mathlib.MeasureTheory.Measure.WithDensity

Measure with a given density with respect to another measure #

For a measure μ on α and a function f : α → ℝ≥0∞, we define a new measure μ.withDensity f. On a measurable set s, that measure has value ∫⁻ a in s, f a ∂μ.

An important result about withDensity is the Radon-Nikodym theorem. It states that, given measures μ, ν, if HaveLebesgueDecomposition μ ν then μ is absolutely continuous with respect to ν if and only if there exists a measurable function f : α → ℝ≥0∞ such that μ = ν.withDensity f. See MeasureTheory.Measure.absolutelyContinuous_iff_withDensity_rnDeriv_eq.

noncomputable def MeasureTheory.Measure.withDensity {α : Type u_1} {m : MeasurableSpace α} (μ : MeasureTheory.Measure α) (f : αENNReal) :

Given a measure μ : Measure α and a function f : α → ℝ≥0∞, μ.withDensity f is the measure such that for a measurable set s we have μ.withDensity f s = ∫⁻ a in s, f a ∂μ.

Equations
Instances For
    @[simp]
    theorem MeasureTheory.withDensity_apply {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} (f : αENNReal) {s : Set α} (hs : MeasurableSet s) :
    (MeasureTheory.Measure.withDensity μ f) s = ∫⁻ (a : α) in s, f aμ
    theorem MeasureTheory.withDensity_apply_le {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} (f : αENNReal) (s : Set α) :
    ∫⁻ (a : α) in s, f aμ (MeasureTheory.Measure.withDensity μ f) s

    In the next theorem, the s-finiteness assumption is necessary. Here is a counterexample without this assumption. Let α be an uncountable space, let x₀ be some fixed point, and consider the σ-algebra made of those sets which are countable and do not contain x₀, and of their complements. This is the σ-algebra generated by the sets {x} for x ≠ x₀. Define a measure equal to +∞ on nonempty sets. Let s = {x₀} and f the indicator of sᶜ. Then

    theorem MeasureTheory.withDensity_apply' {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} [MeasureTheory.SFinite μ] (f : αENNReal) (s : Set α) :
    (MeasureTheory.Measure.withDensity μ f) s = ∫⁻ (a : α) in s, f aμ
    @[simp]
    theorem MeasureTheory.withDensity_const {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} (c : ENNReal) :
    (MeasureTheory.Measure.withDensity μ fun (x : α) => c) = c μ
    theorem MeasureTheory.withDensity_tsum {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (h : ∀ (i : ), Measurable (f i)) :
    theorem MeasureTheory.withDensity_apply_eq_zero {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} {s : Set α} (hf : Measurable f) :
    (MeasureTheory.Measure.withDensity μ f) s = 0 μ ({x : α | f x 0} s) = 0
    theorem MeasureTheory.ae_withDensity_iff {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {p : αProp} {f : αENNReal} (hf : Measurable f) :
    (∀ᵐ (x : α) ∂MeasureTheory.Measure.withDensity μ f, p x) ∀ᵐ (x : α) ∂μ, f x 0p x
    theorem MeasureTheory.ae_withDensity_iff_ae_restrict {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {p : αProp} {f : αENNReal} (hf : Measurable f) :
    (∀ᵐ (x : α) ∂MeasureTheory.Measure.withDensity μ f, p x) ∀ᵐ (x : α) ∂MeasureTheory.Measure.restrict μ {x : α | f x 0}, p x
    theorem MeasureTheory.aemeasurable_withDensity_ennreal_iff {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αNNReal} (hf : Measurable f) {g : αENNReal} :
    AEMeasurable g (MeasureTheory.Measure.withDensity μ fun (x : α) => (f x)) AEMeasurable (fun (x : α) => (f x) * g x) μ
    theorem MeasureTheory.lintegral_withDensity_eq_lintegral_mul {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} (h_mf : Measurable f) {g : αENNReal} :
    Measurable g∫⁻ (a : α), g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α), (f * g) aμ

    This is Exercise 1.2.1 from [tao2010]. It allows you to express integration of a measurable function with respect to (μ.withDensity f) as an integral with respect to μ, called the base measure. μ is often the Lebesgue measure, and in this circumstance f is the probability density function, and (μ.withDensity f) represents any continuous random variable as a probability measure, such as the uniform distribution between 0 and 1, the Gaussian distribution, the exponential distribution, the Beta distribution, or the Cauchy distribution (see Section 2.4 of [wasserman2004]). Thus, this method shows how to one can calculate expectations, variances, and other moments as a function of the probability density function.

    theorem MeasureTheory.set_lintegral_withDensity_eq_set_lintegral_mul {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} {g : αENNReal} (hf : Measurable f) (hg : Measurable g) {s : Set α} (hs : MeasurableSet s) :
    ∫⁻ (x : α) in s, g xMeasureTheory.Measure.withDensity μ f = ∫⁻ (x : α) in s, (f * g) xμ
    theorem MeasureTheory.lintegral_withDensity_eq_lintegral_mul₀' {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : AEMeasurable f μ) {g : αENNReal} (hg : AEMeasurable g (MeasureTheory.Measure.withDensity μ f)) :
    ∫⁻ (a : α), g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α), (f * g) aμ

    The Lebesgue integral of g with respect to the measure μ.withDensity f coincides with the integral of f * g. This version assumes that g is almost everywhere measurable. For a version without conditions on g but requiring that f is almost everywhere finite, see lintegral_withDensity_eq_lintegral_mul_non_measurable

    theorem MeasureTheory.set_lintegral_withDensity_eq_lintegral_mul₀' {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : AEMeasurable f μ) {g : αENNReal} (hg : AEMeasurable g (MeasureTheory.Measure.withDensity μ f)) {s : Set α} (hs : MeasurableSet s) :
    ∫⁻ (a : α) in s, g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α) in s, (f * g) aμ
    theorem MeasureTheory.lintegral_withDensity_eq_lintegral_mul₀ {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : AEMeasurable f μ) {g : αENNReal} (hg : AEMeasurable g μ) :
    ∫⁻ (a : α), g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α), (f * g) aμ
    theorem MeasureTheory.set_lintegral_withDensity_eq_lintegral_mul₀ {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : AEMeasurable f μ) {g : αENNReal} (hg : AEMeasurable g μ) {s : Set α} (hs : MeasurableSet s) :
    ∫⁻ (a : α) in s, g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α) in s, (f * g) aμ
    theorem MeasureTheory.lintegral_withDensity_le_lintegral_mul {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} (f_meas : Measurable f) (g : αENNReal) :
    ∫⁻ (a : α), g aMeasureTheory.Measure.withDensity μ f ∫⁻ (a : α), (f * g) aμ
    theorem MeasureTheory.lintegral_withDensity_eq_lintegral_mul_non_measurable {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} (f_meas : Measurable f) (hf : ∀ᵐ (x : α) ∂μ, f x < ) (g : αENNReal) :
    ∫⁻ (a : α), g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α), (f * g) aμ
    theorem MeasureTheory.set_lintegral_withDensity_eq_set_lintegral_mul_non_measurable {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} (f_meas : Measurable f) (g : αENNReal) {s : Set α} (hs : MeasurableSet s) (hf : ∀ᵐ (x : α) ∂MeasureTheory.Measure.restrict μ s, f x < ) :
    ∫⁻ (a : α) in s, g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α) in s, (f * g) aμ
    theorem MeasureTheory.lintegral_withDensity_eq_lintegral_mul_non_measurable₀ {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} (hf : AEMeasurable f μ) (h'f : ∀ᵐ (x : α) ∂μ, f x < ) (g : αENNReal) :
    ∫⁻ (a : α), g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α), (f * g) aμ
    theorem MeasureTheory.set_lintegral_withDensity_eq_set_lintegral_mul_non_measurable₀ {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) {f : αENNReal} {s : Set α} (hf : AEMeasurable f (MeasureTheory.Measure.restrict μ s)) (g : αENNReal) (hs : MeasurableSet s) (h'f : ∀ᵐ (x : α) ∂MeasureTheory.Measure.restrict μ s, f x < ) :
    ∫⁻ (a : α) in s, g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α) in s, (f * g) aμ
    theorem MeasureTheory.set_lintegral_withDensity_eq_set_lintegral_mul_non_measurable₀' {α : Type u_1} {m0 : MeasurableSpace α} (μ : MeasureTheory.Measure α) [MeasureTheory.SFinite μ] {f : αENNReal} (s : Set α) (hf : AEMeasurable f (MeasureTheory.Measure.restrict μ s)) (g : αENNReal) (h'f : ∀ᵐ (x : α) ∂MeasureTheory.Measure.restrict μ s, f x < ) :
    ∫⁻ (a : α) in s, g aMeasureTheory.Measure.withDensity μ f = ∫⁻ (a : α) in s, (f * g) aμ
    theorem MeasureTheory.withDensity_inv_same₀ {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : AEMeasurable f μ) (hf_ne_zero : ∀ᵐ (x : α) ∂μ, f x 0) (hf_ne_top : ∀ᵐ (x : α) ∂μ, f x ) :
    theorem MeasureTheory.withDensity_inv_same {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : Measurable f) (hf_ne_zero : ∀ᵐ (x : α) ∂μ, f x 0) (hf_ne_top : ∀ᵐ (x : α) ∂μ, f x ) :
    theorem MeasureTheory.withDensity_absolutelyContinuous' {α : Type u_1} {m0 : MeasurableSpace α} {μ : MeasureTheory.Measure α} {f : αENNReal} (hf : AEMeasurable f μ) (hf_ne_zero : ∀ᵐ (x : α) ∂μ, f x 0) (hf_ne_top : ∀ᵐ (x : α) ∂μ, f x ) :

    If f is almost everywhere positive and finite, then μ ≪ μ.withDensity f. See also withDensity_absolutelyContinuous for the reverse direction, which always holds.

    A sigma-finite measure is absolutely continuous with respect to some finite measure.