The first inequality applies to nonnegative random variables. Examples of nonnegative random variables are the Bernoulli, binomial, geometric, Poisson and exponential ones. Gaussian random variables X∼N(μ,σ2) are never nonnegative, since P(X<0)>0 for all μ and σ2. Uniforms can be nonnegative: U([0,1]) is, but U([−1,1]) is not.
Markov inequality
Lemma (Markov). If X≥0 (i.e. X is nonnegative) and a>0 is a given constant, then
The last inequality holds because x≥a on the domain of integration. Dividing by a gives the claim. □
Examples
Geometric.X∼G(181), so E(X)=18.
Exact probability: P(X>36)=(1−181)36≃0.127.
Via Markov: P(X>36)≤P(X≥36)≤36E(X)=3618=0.5.
Comparing the upper bound 0.5 with the exact probability 0.127 it is evident that the Markov inequality is very conservative. Nevertheless it is extremely useful (see the Chebyshev inequality below).
Binomial.X∼Bin(n,p):
P(X≥2n)≤n/2E(X)=n/2np=2p.
Lightbulbs. A government agency tests lightbulbs and finds an average life of 7500 hours. The producer says that at least 43 of his lightbulbs last over 15000 hours, i.e. P(X>15000)≥43. This is absurd, since by Markov
P(X>15000)≤15000E(X)=150007500=21.
Chebyshev inequality
Lemma (Chebyshev). Let X be a random variable with finite E(X) and var(X). Then for all ε>0
P(∣X−E(X)∣≥ε)≤ε2var(X)
Proof.Y=∣X−E(X)∣ is a nonnegative random variable, therefore by Markov applied to Y2
P(Y≥ε)=P(Y2≥ε2)≤ε2E(Y2).
Substituting Y=∣X−E(X)∣, E(Y2)=E((X−E(X))2)=var(X), which is Chebyshev's inequality P(∣X−E(X)∣2≥ε2)≤ε2var(X). □
Remark. It is sometimes useful to write the inequality for the complementary event:
P(∣X−E(X)∣2<ε2)≥1−ε2var(X).
Examples
Binomial.X∼Bin(100,21): E(X)=100⋅21=50, var(X)=100⋅21⋅21=25. Then
Lightbulb mean 7500 h: P(X>15000)≤21, so "at least 43 last over 15000 h" is impossible.
Bin(100,21): E=50, var=25, P(41≤X≤59)≥43.
Gaussian: within 2σ at least 0.75 (exact ≃0.95), within 3σ at least 0.88 (exact ≃0.997); within 1σ the bound is trivial (0).
Why useful: universal, only mean (and variance) needed, valid for every distribution.
Typical mistakes. Applying Markov to a variable that can be negative; using ≥ vs > carelessly at integer thresholds; reading the bound as an approximation (it is only an upper/lower bound, often far from the exact value).