TwoPoint #
Ported from scottnarmstrong/CoarseGraining at c7ddd76c08ade64fed1b8d2ca51be14dfee8deb4. Module imports, support namespace and local option directives adapted for Lean Pool.
Two-point variance identity and a Jensen bound #
Building blocks for the Efron–Stein inequality.
Homogenization.variance_eq_half_integral_sub_sq: for a bounded measurable real random variableXon a probability space,Var[X] = ½ ∫∫ (X a − X b)² dμ dμ.Homogenization.sq_integral_le_integral_sq: Jensen's inequality in the form(∫ X)² ≤ ∫ X²for a bounded measurableXon a probability space.
Everything is stated for bounded observables, which makes all integrability
side conditions immediate; no L²-generality is attempted.
A bounded measurable function is MemLp 2 on a probability (finite) measure.
A bounded measurable function is integrable on a probability (finite) measure.
The square of a bounded measurable function is integrable.
Two-point variance identity. For a bounded measurable real random variable
X on a probability space, the variance equals one half of the mean squared
difference of two independent samples.
Jensen's inequality, (∫ X)² ≤ ∫ X², for a bounded measurable function on
a probability space.