Documentation

CslibFrontier.Probability.PMF.Markov

Markov's inequality for discrete distributions #

For a discrete distribution p and an extended nonnegative score f, the probability that f is at least t, scaled by t, is at most the expectation ∑' i, p i * f i. The statement needs no measurable structure. Mathlib's MeasureTheory.mul_meas_ge_le_lintegral is the measure-theoretic form, and Fintype.mul_dens_filter_le_expect the uniform finite form.

Main results #

theorem Cslib.Probability.PMF.mul_toOuterMeasure_le_tsum {ι : Type u_1} (p : PMF ι) (f : ι → ENNReal) (t : ENNReal) :
t * p.toOuterMeasure {i : ι | t ≤ f i} ≤ ∑' (i : ι), p i * f i

Markov's inequality for a probability mass function and an extended nonnegative score: t · Pr[t ≤ f] ≤ E[f].

theorem Cslib.Probability.PMF.toOuterMeasure_toReal_le_tsum_div {ι : Type u_1} (p : PMF ι) {f : ι → ℝ} (hf₀ : ∀ (i : ι), 0 ≤ f i) (hf₁ : ∀ (i : ι), f i ≤ 1) {t : ℝ} (ht : 0 < t) :
(p.toOuterMeasure {i : ι | t ≤ f i}).toReal ≤ (∑' (i : ι), (p i).toReal * f i) / t

Markov's inequality for a real score with values in [0, 1]: Pr[t ≤ f] ≤ E[f] / t.

theorem Cslib.Probability.PMF.toOuterMeasure_bind_le_tsum_nat {ι : Type u_1} {β : Type u_2} (p : PMF ι) (step : ι → PMF β) (bad : Set β) (f : ι → ℕ) (hzero : ∀ a ∈ p.support, f a = 0 → ∀ b ∈ (step a).support, b ∉ bad) :
(p.bind step).toOuterMeasure bad ≤ ∑' (a : ι), p a * ↑(f a)

One-step integer Markov bound: if an integer potential f : ι → ℕ vanishes on supported states only where the next step step never lands in bad, then the probability of bad after p.bind step is at most the expected value of f under p.