Salta al contenuto
Note per Studenti Markov and Chebyshev Inequalities Report

Markov and Chebyshev Inequalities

In questa pagina 3

Nonnegative random variables

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)X\sim N(\mu,\sigma^2) are never nonnegative, since P(X<0)>0P(X<0)>0 for all μ\mu and σ2\sigma^2. Uniforms can be nonnegative: U([0,1])\mathcal{U}([0,1]) is, but U([−1,1])\mathcal{U}([-1,1]) is not.

Markov inequality

Lemma (Markov). If X≥0X\ge0 (i.e. XX is nonnegative) and a>0a>0 is a given constant, then

 P(X≥a)≤E(X)a \boxed{\,P(X\ge a)\le\frac{E(X)}{a}\,}

Proof (for XX with density fXf_X). Since X≥0X\ge0,

E(X)=∫0∞xfX(x) dx=∫0axfX(x) dx⏟≥0+∫a+∞xfX(x) dx ≥ ∫a+∞xfX(x) dx ≥ a∫a+∞fX(x) dx=a P(X≥a).E(X)=\int_0^\infty x f_X(x)\,dx=\underbrace{\int_0^a xf_X(x)\,dx}_{\ge0}+\int_a^{+\infty}xf_X(x)\,dx\ \ge\ \int_a^{+\infty}xf_X(x)\,dx\ \ge\ a\int_a^{+\infty}f_X(x)\,dx=a\,P(X\ge a).

The last inequality holds because x≥ax\ge a on the domain of integration. Dividing by aa gives the claim. □\square

Examples

Geometric. X∼G ⁣(118)X\sim G\!\left(\frac1{18}\right), so E(X)=18E(X)=18.

  • Exact probability: P(X>36)=(1−118)36≃0.127P(X>36)=\left(1-\frac1{18}\right)^{36}\simeq0.127.
  • Via Markov: P(X>36)≤P(X≥36)≤E(X)36=1836=0.5P(X>36)\le P(X\ge36)\le\dfrac{E(X)}{36}=\dfrac{18}{36}=0.5.

Comparing the upper bound 0.50.5 with the exact probability 0.1270.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)X\sim\mathrm{Bin}(n,p): P ⁣(X≥n2)≤E(X)n/2=npn/2=2p.P\!\left(X\ge\frac n2\right)\le\frac{E(X)}{n/2}=\frac{np}{n/2}=2p.

Lightbulbs. A government agency tests lightbulbs and finds an average life of 7500 hours. The producer says that at least 34\frac34 of his lightbulbs last over 15000 hours, i.e. P(X>15000)≥34P(X>15000)\ge\frac34. This is absurd, since by Markov P(X>15000)≤E(X)15000=750015000=12.P(X>15000)\le\frac{E(X)}{15000}=\frac{7500}{15000}=\frac12.

Chebyshev inequality

Lemma (Chebyshev). Let XX be a random variable with finite E(X)E(X) and var(X)\mathrm{var}(X). Then for all ε>0\varepsilon>0

 P(∣X−E(X)∣≥ε)≤var(X)ε2 \boxed{\,P\big(|X-E(X)|\ge\varepsilon\big)\le\frac{\mathrm{var}(X)}{\varepsilon^2}\,}

Proof. Y=∣X−E(X)∣Y=|X-E(X)| is a nonnegative random variable, therefore by Markov applied to Y2Y^2

P(Y≥ε)=P(Y2≥ε2)≤E(Y2)ε2.P(Y\ge\varepsilon)=P(Y^2\ge\varepsilon^2)\le\frac{E(Y^2)}{\varepsilon^2}.

Substituting Y=∣X−E(X)∣Y=|X-E(X)|, E(Y2)=E((X−E(X))2)=var(X)E(Y^2)=E\big((X-E(X))^2\big)=\mathrm{var}(X), which is Chebyshev's inequality P(∣X−E(X)∣2≥ε2)≤var(X)ε2P(|X-E(X)|^2\ge\varepsilon^2)\le\frac{\mathrm{var}(X)}{\varepsilon^2}. □\square

Remark. It is sometimes useful to write the inequality for the complementary event:

P(∣X−E(X)∣2<ε2)≥1−var(X)ε2.P\big(|X-E(X)|^2<\varepsilon^2\big)\ge1-\frac{\mathrm{var}(X)}{\varepsilon^2}.

Examples

Binomial. X∼Bin ⁣(100,12)X\sim\mathrm{Bin}\!\left(100,\frac12\right): E(X)=100⋅12=50E(X)=100\cdot\frac12=50, var(X)=100⋅12⋅12=25\mathrm{var}(X)=100\cdot\frac12\cdot\frac12=25. Then

P(41≤X≤59)=P(−9≤X−50≤9)=P(∣X−E(X)∣<10)≥1−var(X)102=1−25100=34.P(41\le X\le59)=P(-9\le X-50\le9)=P(|X-E(X)|<10)\ge1-\frac{\mathrm{var}(X)}{10^2}=1-\frac{25}{100}=\frac34.

Gaussian. X∼N(μ,σ2)X\sim N(\mu,\sigma^2):

interval Chebyshev lower bound exact value
P(∣X−μ∣<σ)P(\lvert X-\mu\rvert<\sigma) 1−σ2σ2=01-\frac{\sigma^2}{\sigma^2}=0 (trivial)
P(∣X−μ∣≤2σ)P(\lvert X-\mu\rvert\le2\sigma) 1−σ24σ2=34=0.751-\frac{\sigma^2}{4\sigma^2}=\frac34=0.75 about 0.950.95
P(∣X−μ∣≤3σ)P(\lvert X-\mu\rvert\le3\sigma) 1−σ29σ2=89≃0.881-\frac{\sigma^2}{9\sigma^2}=\frac89\simeq0.88 about 0.9970.997

Why is it useful if it is so loose? Because it is universal, i.e. valid whatever the distribution of XX might be: only the mean and the variance are needed. For the variance of sums that feed these bounds see Covariance and CorrelationThe variance of a sum X + Y equals var(X) + var(Y) + 2 cov(X,Y), where the covariance E((X - E(X))(Y - E(Y))) cannot be computed from the two marginal laws alone, which motivates the study of random vectors and joint behaviour.Covariance and Correlation →.

Versione ripasso

Markov. X≥0X\ge0, a>0a>0: P(X≥a)≤E(X)aP(X\ge a)\le\dfrac{E(X)}{a}. Proof: E(X)≥∫a∞xfX≥a∫a∞fX=aP(X≥a)E(X)\ge\int_a^\infty xf_X\ge a\int_a^\infty f_X=aP(X\ge a). Nonnegative: Bernoulli, binomial, geometric, Poisson, exponential, U([0,1])\mathcal{U}([0,1]). Never nonnegative: Gaussians.

Chebyshev. finite E(X)E(X), var(X)\mathrm{var}(X), ε>0\varepsilon>0: P(∣X−E(X)∣≥ε)≤var(X)ε2,P(∣X−E(X)∣<ε)≥1−var(X)ε2.P(|X-E(X)|\ge\varepsilon)\le\frac{\mathrm{var}(X)}{\varepsilon^2},\qquad P(|X-E(X)|<\varepsilon)\ge1-\frac{\mathrm{var}(X)}{\varepsilon^2}. Proof: Markov on Y2Y^2, Y=∣X−E(X)∣Y=|X-E(X)|.

Examples.

  • G(1/18)G(1/18): P(X>36)≃0.127P(X>36)\simeq0.127 exactly, Markov gives ≤0.5\le0.5 (very conservative).
  • Bin(n,p)\mathrm{Bin}(n,p): P(X≥n/2)≤2pP(X\ge n/2)\le2p.
  • Lightbulb mean 75007500 h: P(X>15000)≤12P(X>15000)\le\frac12, so "at least 34\frac34 last over 1500015000 h" is impossible.
  • Bin(100,12)\mathrm{Bin}(100,\frac12): E=50E=50, var=25\mathrm{var}=25, P(41≤X≤59)≥34P(41\le X\le59)\ge\frac34.
  • Gaussian: within 2σ2\sigma at least 0.750.75 (exact ≃0.95\simeq0.95), within 3σ3\sigma at least 0.880.88 (exact ≃0.997\simeq0.997); within 1σ1\sigma the bound is trivial (00).

Why useful: universal, only mean (and variance) needed, valid for every distribution.

Typical mistakes. Applying Markov to a variable that can be negative; using ≥\ge vs >> carelessly at integer thresholds; reading the bound as an approximation (it is only an upper/lower bound, often far from the exact value).

Teoria collegata