Chebyshev's Inequality
Statement
For a square-integrable real random variable with mean , variance , and any :
Writing gives the memorable form .
Visualization
Consider a discrete distribution approximating a bell shape:
Mean (by symmetry). Variance , so .
| Threshold | Exact | Chebyshev | |
|---|---|---|---|
| 1 | 1.5 | (trivial) | |
| 1.5 | 2.25 | ||
| 2 | 3.0 | ||
| 3 | 4.5 |
The bound is distribution-free — it cannot be improved for all distributions simultaneously (the bound is tight for a two-point mass).
Proof Sketch
Chebyshev is Markov applied to the non-negative random variable :
Connections
Chebyshev's inequality is Markov's InequalityMarkov's InequalityA non-negative random variable rarely exceeds a multiple of its expectationRead more → applied to the square deviation. Its power comes from using more information (the variance). The weak law of large numbers follows directly: sample averages concentrate around the mean with rate . The same spirit of concentration appears in the study of Iterated Function SystemsIterated Function SystemsConstructing fractals via contractive affine transformationsRead more →, where contraction ratios control convergence rates.
Lean4 Proof
The proof below uses ProbabilityTheory.meas_ge_le_variance_div_sq from Mathlib.Probability.Moments.Variance (Mathlib v4.28.0).
meas_ge_le_variance_div_sq is itself proved by reducing to meas_ge_le_evariance_div_sq, which in turn reduces to meas_ge_le_mul_pow_eLpNorm_enorm — precisely the Markov inequality applied to .
Lean4 Proof
import Mathlib.Probability.Moments.Variance
namespace MoonMath
open MeasureTheory ProbabilityTheory
/-- **Chebyshev's inequality** (real-valued form).
For a square-integrable random variable `X` and threshold `c > 0`,
`μ {ω | c ≤ |X ω - μ[X]|} ≤ ENNReal.ofReal (Var[X] / c²)`. -/
theorem chebyshev_inequality
{Ω : Type*} {m : MeasurableSpace Ω} (μ : Measure Ω)
[IsFiniteMeasure μ] {X : Ω → ℝ}
(hX : MemLp X 2 μ) {c : ℝ} (hc : 0 < c) :
μ {ω | c ≤ |X ω - μ[X]|} ≤ ENNReal.ofReal (variance X μ / c ^ 2) :=
meas_ge_le_variance_div_sq hX hc
end MoonMathReferenced by
- Nash Equilibrium ExistenceOptimization
- Law of Total ExpectationProbability
- Borel-Cantelli LemmaProbability
- Bayes' TheoremProbability
- Minkowski's InequalityProbability
- Strong Law of Large NumbersProbability
- Markov's InequalityProbability
- Central Limit TheoremProbability
- Chernoff BoundProbability
- Mutual InformationInformation Theory