# Markov's inequality

Markov's inequality gives an upper bound for the measure of the set (indicated in red) where ${\displaystyle f(x)}$ exceeds a given level ${\displaystyle \varepsilon }$. The bound combines the level ${\displaystyle \varepsilon }$ with the average value of ${\displaystyle f}$.

In probability theory, Markov's inequality gives an upper bound for the probability that a non-negative function of a random variable is greater than or equal to some positive constant. It is named after the Russian mathematician Andrey Markov, although it appeared earlier in the work of Pafnuty Chebyshev (Markov's teacher), and many sources, especially in analysis, refer to it as Chebyshev's inequality (sometimes, calling it the first Chebyshev inequality, while referring to Chebyshev's inequality as the second Chebyshev's inequality) or Bienaymé's inequality.

Markov's inequality (and other similar inequalities) relate probabilities to expectations, and provide (frequently loose but still useful) bounds for the cumulative distribution function of a random variable.

An example of an application of Markov's inequality is the fact that (assuming incomes are non-negative) no more than 1/5 of the population can have more than 5 times the average income.

## Statement

If X is a nonnegative random variable and a > 0, then

${\displaystyle \mathbb {P} (X\geq a)\leq {\frac {\mathbb {E} (X)}{a}}}$[1]

In the language of measure theory, Markov's inequality states that if (X, Σ, μ) is a measure space, f is a measurable extended real-valued function, and ε > 0, then

${\displaystyle \mu (\{x\in X:|f(x)|\geq \varepsilon \})\leq {1 \over \varepsilon }\int _{X}|f|\,d\mu .}$

This measure theoretic definition is sometimes referred to as Chebyshev's inequality.[2]

### Extended version for monotonically increasing functions

If φ is a monotonically increasing function from the nonnegative reals to the nonnegative reals, X is a random variable, a ≥ 0, and φ(a) > 0, then

${\displaystyle \mathbb {P} (|X|\geq a)\leq {\frac {\mathbb {E} (\varphi (|X|))}{\varphi (a)}}}$

## Proofs

We separate the case in which the measure space is a probability space from the more general case because the probability case is more accessible for the general reader.

### Proof In the language of probability theory

For any event ${\displaystyle E}$, let ${\displaystyle I_{E}}$ be the indicator random variable of ${\displaystyle E}$, that is, ${\displaystyle I_{E}=1}$ if ${\displaystyle E}$ occurs and ${\displaystyle I_{E}=0}$ otherwise.

Using this notation, we have ${\displaystyle I_{(X\geq a)}=1}$ if the event ${\displaystyle X\geq a}$ occurs, and ${\displaystyle I_{(X\geq a)}=0}$ if ${\displaystyle X. Then, given ${\displaystyle a>0}$,

${\displaystyle aI_{(X\geq a)}\leq X\,}$

which is clear if we consider the two possible values of ${\displaystyle X\geq a}$. If ${\displaystyle X, then ${\displaystyle I_{(X\geq a)}=0}$, and so ${\displaystyle aI_{(X\geq a)}=0\leq X}$. Otherwise, we have ${\displaystyle X\geq a}$, for which ${\displaystyle I_{X\geq a}=1}$ and so ${\displaystyle aI_{X\geq a}=a\leq X}$.

Since ${\displaystyle \mathbb {E} }$ is a monotonically increasing function, taking expectation of both sides of an inequality cannot reverse it. Therefore,

${\displaystyle \mathbb {E} (aI_{(X\geq a)})\leq \mathbb {E} (X).\,}$

Now, using linearity of expectations, the left side of this inequality is the same as

${\displaystyle a\mathbb {E} (I_{(X\geq a)})=a(1\cdot \mathbb {P} (X\geq a)+0\cdot \mathbb {P} (X

Thus we have

${\displaystyle a\mathbb {P} (X\geq a)\leq \mathbb {E} (X)\,}$

and since a > 0, we can divide both sides by a.

### In the language of measure theory

We may assume that the function ${\displaystyle f}$ is non-negative, since only its absolute value enters in the equation. Now, consider the real-valued function s on X given by

${\displaystyle s(x)={\begin{cases}\varepsilon ,&{\text{if }}f(x)\geq \varepsilon \\0,&{\text{if }}f(x)<\varepsilon \end{cases}}}$

Then ${\displaystyle 0\leq s(x)\leq f(x)}$. By the definition of the Lebesgue integral

${\displaystyle \int _{X}f(x)\,d\mu \geq \int _{X}s(x)\,d\mu =\varepsilon \mu (\{x\in X:\,f(x)\geq \varepsilon \})}$

and since ${\displaystyle \varepsilon >0}$, both sides can be divided by ${\displaystyle \varepsilon }$, obtaining

${\displaystyle \mu (\{x\in X:\,f(x)\geq \varepsilon \})\leq {1 \over \varepsilon }\int _{X}f\,d\mu .}$

Q.E.D.

## Corollaries

### Chebyshev's inequality

Chebyshev's inequality uses the variance to bound the probability that a random variable deviates far from the mean. Specifically:

${\displaystyle \mathbb {P} (|X-\mathbb {E} (X)|\geq a)\leq {\frac {\mathrm {Var} (X)}{a^{2}}},}$

for any a>0. Here Var(X) is the variance of X, defined as:

${\displaystyle \operatorname {Var} (X)=\mathbb {E} [(X-\mathbb {E} (X))^{2}].}$

Chebyshev's inequality follows from Markov's inequality by considering the random variable

${\displaystyle (X-\mathbb {E} (X))^{2}}$

and the constant

${\displaystyle a^{2}}$

${\displaystyle \mathbb {P} ((X-\mathbb {E} (X))^{2}\geq a^{2})\leq {\frac {\operatorname {Var} (X)}{a^{2}}},}$

This argument can be summarized (where "MI" indicates use of Markov's inequality):

${\displaystyle \mathbb {P} (|X-\mathbb {E} (X)|\geq a)=\mathbb {P} \left((X-\mathbb {E} (X))^{2}\geq a^{2}\right){\overset {\underset {\mathrm {MI} }{}}{\leq }}{\frac {\mathbb {E} \left({(X-\mathbb {E} (X))}^{2}\right)}{a^{2}}}={\frac {\operatorname {Var} (X)}{a^{2}}}}$

### Other corollaries

1. The "monotonic" result can be demonstrated by:
${\displaystyle \mathbb {P} (|X|\geq a)\leq \mathbb {P} (\varphi (|X|)\geq \varphi (a)){\overset {\underset {\mathrm {MI} }{}}{\leq }}={\frac {\mathbb {E} (\varphi (|X|))}{\varphi (a)}}}$
2. The result that, for a nonnegative random variable X, the quantile function of X satisfies:
${\displaystyle Q_{X}(1-p)\leq {\frac {\mathbb {E} (X)}{p}},}$
the proof using
${\displaystyle p\leq \mathbb {P} (X\geq Q_{X}(1-p)){\overset {\underset {\mathrm {MI} }{}}{\leq }}{\frac {\mathbb {E} (X)}{Q_{X}(1-p)}}.}$
3. Let ${\displaystyle M\succeq 0}$ be a self-adjoint matrix-valued random variable and a > 0. Then
${\displaystyle \mathbb {P} (M\npreceq a\cdot I)\leq {\frac {\mathrm {tr} \left(E(M)\right)}{na}}.}$
can be shown in a similar manner.