Finitely supported distributions #
Adapted for Lean Pool by changing module paths and selecting explicit imports.
Komlos.IsDist P means that P : E →₀ ℝ is nonnegative and has total mass 1.
Komlos.mass is the sum of the weights; Komlos.mean is their weighted sum in a real vector
space.
The mass and mean are additive. For pointwise maxima and minima, the sum of the two masses
and the sum of the two means are preserved. Komlos.mean_mem_convexHull places the mean of a
probability distribution in the convex hull of its support.
Total weight of a finitely supported real-valued function.
Equations
- Komlos.mass P = P.sum fun (x : E) (r : ℝ) => r
Instances For
The weighted sum of the support points, without dividing by the total mass.
Equations
- Komlos.mean P = P.sum fun (x : E) (r : ℝ) => r • x
Instances For
theorem
Komlos.mean_mem_convexHull
{E : Type u_1}
[AddCommGroup E]
[Module ℝ E]
{S : E →₀ ℝ}
(hS : IsDist S)
{s : Finset E}
(h : S.support ⊆ s)
: