Empirical measures of sequences #
This file defines the empirical probability measure of a nonempty finite population
(empiricalMeasureOfFintype) and, as its κ := Fin (n + 1) case, of the first n + 1 terms of a
sequence (empiricalMeasure), together with their evaluation, integration, and measurability API.
The successor indexing is what supplies the Nonempty instance for the sequence form, so it needs
no side condition, and it matches the shape used in limit theorems.
There is one construction, not two: the sequence form is defined as the specialization, so the two can never drift apart.
It also provides empiricalMeasureOfFintype for a population indexed by an arbitrary nonempty
finite type. This is the finite-population form used by quantitative sampling arguments.
The construction is a uniform finite sum of Dirac measures. It is the process-level prerequisite
for the empirical-measure form of de Finetti's theorem in the Exchangeability roadmap.
The empirical probability measure of a nonempty finite population x : κ → α.
Unlike empiricalMeasure, its population can have an arbitrary nonempty finite index type rather
than a natural-number prefix.
Equations
- TauCeti.Probability.empiricalMeasureOfFintype x = ⟨∑ i : κ, (↑(Fintype.card κ))⁻¹ • MeasureTheory.Measure.dirac (x i), ⋯⟩
Instances For
The measure underlying a finite empirical population is the normalized sum of its Dirac masses.
Evaluation of a finite empirical population on a measurable set is its empirical frequency.
On a discrete finite index type, a finite empirical population is the pushforward of the uniform law on its indices.
Integrating against a finite empirical population is averaging over its values.
The Lebesgue integral against a finite empirical population is the average of the values.
Finite empirical distributions depend measurably on the population.
The empirical probability measure of the first n + 1 terms of a sequence.
This is the κ := Fin (n + 1) case of empiricalMeasureOfFintype; the successor indexing is what
supplies the Nonempty instance, so no side condition is needed.
Equations
- TauCeti.Probability.empiricalMeasure x n = TauCeti.Probability.empiricalMeasureOfFintype fun (i : Fin (n + 1)) => x ↑i
Instances For
The measure underlying an empirical measure is the uniform finite sum of Dirac measures.
Evaluation of an empirical measure on a measurable set is its empirical frequency.
The real-valued form of empiricalMeasure_apply.
Evaluation of a path's empirical measure, written as indicators on the sample space.
Integrating against an empirical measure is averaging over the sampled values.
The Lebesgue integral against an empirical measure is the average of the sampled values.
Empirical measures depend measurably on a sequence of measurable observations.