Integral average of a function #
In this file we define MeasureTheory.average μ f
(notation: ⨍ x, f x ∂μ
) to be the average
value of f
with respect to measure μ
. It is defined as ∫ x, f x ∂((μ univ)⁻¹ • μ)
, so it
is equal to zero if f
is not integrable or if μ
is an infinite measure. If μ
is a probability
measure, then the average of any function is equal to its integral.
For the average on a set, we use ⨍ x in s, f x ∂μ
(notation for ⨍ x, f x ∂(μ.restrict s)
). For
average w.r.t. the volume, one can omit ∂volume
.
Both have a version for the Lebesgue integral rather than Bochner.
We prove several version of the first moment method: An integrable function is below/above its average on a set of positive measure:
measure_le_setLaverage_pos
for the Lebesgue integralmeasure_le_setAverage_pos
for the Bochner integral
Implementation notes #
The average is defined as an integral over (μ univ)⁻¹ • μ
so that all theorems about Bochner
integrals work for the average without modifications. For theorems that require integrability of a
function, we provide a convenience lemma MeasureTheory.Integrable.to_average
.
Tags #
integral, center mass, average value
Average value of a function w.r.t. a measure #
The (Bochner, Lebesgue) average value of a function f
w.r.t. a measure μ
(notation:
⨍ x, f x ∂μ
, ⨍⁻ x, f x ∂μ
) is defined as the (Bochner, Lebesgue) integral divided by the total
measure, so it is equal to zero if μ
is an infinite measure, and (typically) equal to infinity if
f
is not integrable. If μ
is a probability measure, then the average of any function is equal to
its integral.
Average value of an ℝ≥0∞
-valued function f
w.r.t. a measure μ
, denoted ⨍⁻ x, f x ∂μ
.
It is equal to (μ univ)⁻¹ * ∫⁻ x, f x ∂μ
, so it takes value zero if μ
is an infinite measure. If
μ
is a probability measure, then the average of any function is equal to its integral.
For the average on a set, use ⨍⁻ x in s, f x ∂μ
, defined as ⨍⁻ x, f x ∂(μ.restrict s)
. For the
average w.r.t. the volume, one can omit ∂volume
.
Equations
- MeasureTheory.laverage μ f = ∫⁻ (x : α), f x ∂(μ Set.univ)⁻¹ • μ
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of an ℝ≥0∞
-valued function f
w.r.t. a measure μ
.
It is equal to (μ univ)⁻¹ * ∫⁻ x, f x ∂μ
, so it takes value zero if μ
is an infinite measure. If
μ
is a probability measure, then the average of any function is equal to its integral.
For the average on a set, use ⨍⁻ x in s, f x ∂μ
, defined as ⨍⁻ x, f x ∂(μ.restrict s)
. For the
average w.r.t. the volume, one can omit ∂volume
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of an ℝ≥0∞
-valued function f
w.r.t. to the standard measure.
It is equal to (volume univ)⁻¹ * ∫⁻ x, f x
, so it takes value zero if the space has infinite
measure. In a probability space, the average of any function is equal to its integral.
For the average on a set, use ⨍⁻ x in s, f x
, defined as ⨍⁻ x, f x ∂(volume.restrict s)
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of an ℝ≥0∞
-valued function f
w.r.t. a measure μ
on a set s
.
It is equal to (μ s)⁻¹ * ∫⁻ x, f x ∂μ
, so it takes value zero if s
has infinite measure. If s
has measure 1
, then the average of any function is equal to its integral.
For the average w.r.t. the volume, one can omit ∂volume
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of an ℝ≥0∞
-valued function f
w.r.t. to the standard measure on a set s
.
It is equal to (volume s)⁻¹ * ∫⁻ x, f x
, so it takes value zero if s
has infinite measure. If
s
has measure 1
, then the average of any function is equal to its integral.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of a function f
w.r.t. a measure μ
, denoted ⨍ x, f x ∂μ
.
It is equal to (μ univ).toReal⁻¹ • ∫ x, f x ∂μ
, so it takes value zero if f
is not integrable or
if μ
is an infinite measure. If μ
is a probability measure, then the average of any function is
equal to its integral.
For the average on a set, use ⨍ x in s, f x ∂μ
, defined as ⨍ x, f x ∂(μ.restrict s)
. For the
average w.r.t. the volume, one can omit ∂volume
.
Equations
- MeasureTheory.average μ f = ∫ (x : α), f x ∂(μ Set.univ)⁻¹ • μ
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of a function f
w.r.t. a measure μ
.
It is equal to (μ univ).toReal⁻¹ • ∫ x, f x ∂μ
, so it takes value zero if f
is not integrable or
if μ
is an infinite measure. If μ
is a probability measure, then the average of any function is
equal to its integral.
For the average on a set, use ⨍ x in s, f x ∂μ
, defined as ⨍ x, f x ∂(μ.restrict s)
. For the
average w.r.t. the volume, one can omit ∂volume
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of a function f
w.r.t. to the standard measure.
It is equal to (volume univ).toReal⁻¹ * ∫ x, f x
, so it takes value zero if f
is not integrable
or if the space has infinite measure. In a probability space, the average of any function is equal
to its integral.
For the average on a set, use ⨍ x in s, f x
, defined as ⨍ x, f x ∂(volume.restrict s)
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of a function f
w.r.t. a measure μ
on a set s
.
It is equal to (μ s).toReal⁻¹ * ∫ x, f x ∂μ
, so it takes value zero if f
is not integrable on
s
or if s
has infinite measure. If s
has measure 1
, then the average of any function is
equal to its integral.
For the average w.r.t. the volume, one can omit ∂volume
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pretty printer defined by notation3
command.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Average value of a function f
w.r.t. to the standard measure on a set s
.
It is equal to (volume s).toReal⁻¹ * ∫ x, f x
, so it takes value zero f
is not integrable on s
or if s
has infinite measure. If s
has measure 1
, then the average of any function is equal to
its integral.
Equations
- One or more equations did not get rendered due to their size.
Instances For
First moment method #
First moment method. An integrable function is smaller than its mean on a set of positive measure.
First moment method. An integrable function is greater than its mean on a set of positive measure.
First moment method. The minimum of an integrable function is smaller than its mean.
First moment method. The maximum of an integrable function is greater than its mean.
First moment method. An integrable function is smaller than its mean on a set of positive measure.
First moment method. An integrable function is greater than its mean on a set of positive measure.
First moment method. The minimum of an integrable function is smaller than its mean.
First moment method. The maximum of an integrable function is greater than its mean.
First moment method. The minimum of an integrable function is smaller than its mean, while avoiding a null set.
First moment method. The maximum of an integrable function is greater than its mean, while avoiding a null set.
First moment method. An integrable function is smaller than its integral on a set of positive measure.
First moment method. An integrable function is greater than its integral on a set of positive measure.
First moment method. The minimum of an integrable function is smaller than its integral.
First moment method. The maximum of an integrable function is greater than its integral.
First moment method. The minimum of an integrable function is smaller than its integral, while avoiding a null set.
First moment method. The maximum of an integrable function is greater than its integral, while avoiding a null set.
First moment method. A measurable function is smaller than its mean on a set of positive measure.
First moment method. A measurable function is greater than its mean on a set of positive measure.
First moment method. The minimum of a measurable function is smaller than its mean.
First moment method. The maximum of a measurable function is greater than its mean.
First moment method. A measurable function is greater than its mean on a set of positive measure.
First moment method. The maximum of a measurable function is greater than its mean.
First moment method. The maximum of a measurable function is greater than its mean, while avoiding a null set.
First moment method. A measurable function is smaller than its mean on a set of positive measure.
First moment method. The minimum of a measurable function is smaller than its mean.
First moment method. The minimum of a measurable function is smaller than its mean, while avoiding a null set.
First moment method. A measurable function is smaller than its integral on a set f positive measure.
First moment method. A measurable function is greater than its integral on a set f positive measure.
First moment method. The minimum of a measurable function is smaller than its integral.
First moment method. The maximum of a measurable function is greater than its integral.
First moment method. The minimum of a measurable function is smaller than its integral, while avoiding a null set.
First moment method. The maximum of a measurable function is greater than its integral, while avoiding a null set.
If the average of a function f
along a sequence of sets aₙ
converges to c
(more precisely,
we require that ⨍ y in a i, ‖f y - c‖ ∂μ
tends to 0
), then the integral of gₙ • f
also tends
to c
if gₙ
is supported in aₙ
, has integral converging to one and supremum at most K / μ aₙ
.