If you know $E(X)$ and $SD(X)$ you can get some idea of how much probability there is in the tails of the distribution of $X$.
In this section we are going to get upper bounds on probabilities such as the gold area in the graph below. That’s $P(X \ge 20)$ for the random variable $X$ whose distribution is displayed in the histogram.
To do this, we will start with an observation about expectations of functions of $X$.
Suppose $g$ and $h$ are functions such that $g(X) \ge h(X)$, that is, $P(g(X) \ge h(X)) = 1$. Then $E(g(X)) \ge E(h(X))$.
This result is apparent when you notice that for all $\omega$ in the outcome space,
Now suppose $X$ is a non-negative random variable, and let $c$ be a positive number. Consider the two functions $g$ and $h$ graphed below.
The function $h$ is the indicator defined by $h(x) = I(x \ge c)$. So $h(X) = I(X \ge c)$ and $E(h(X)) = P(X \ge c)$.
The function $g$ is constructed so that the graph of $g$ is a straight line that is at or above the graph of $h$ on $[0, \infty)$, with the two graphs meeting at $x = 0$ and $x = c$. The equation of the straight line is $g(x) = x/c$.
Thus $g(X) = X/c$ and hence $E(g(X)) = E(X/c) = E(X)/c$.
By construction, $g(x) \ge h(x)$ for $x \ge 0$. Since $X$ is a non-negative random variable, $P(g(X) \ge h(X)) = 1$.
We have just proved
Let $X$ be a non-negative random variable. Then for any $c > 0$,
This result is called a “tail bound” because it puts an upper limit on how big the right tail at $c$ can be. It is worth noting that $P(X > c) \le P(X \ge c) \le E(X)/c$ by Markov’s bound.
In the figure below, $E(X) = 6.5$ and $c = 20$. Markov’s inequality says that the gold area is at most
You can see that the bound is pretty crude. The gold area is clearly quite a bit less than 0.325.
Another way to think of Markov’s bound is that if $X$ is a non-negative random variable with expectation $\mu_X$, then
That is, $P(X \ge 2\mu_X) \le 1/2$, $P(X \ge 5\mu_X) \le 1/5$, and so on. The chance that a non-negative random variable is at least $k$ times the mean is at most $1/k$.
- $k$ need not be an integer. For example, the chance that a non-negative random variable is at least 3.8 times the mean is at most $1/3.8$.
- If $k \le 1$, the inequality doesn’t tell you anything you didn’t already know. If $k \le 1$ then Markov’s bound is 1 or greater. All probabilities are bounded above by 1, so the inequality is true but useless for $k \le 1$.
- When $k$ is large, the bound does tell you something. You are looking at a probability quite far out in the tail of the distribution, and Markov’s bound is $1/k$ which is small.
Markov’s bound only uses $E(X)$, not $SD(X)$. To get bounds on tails it seems better to use $SD(X)$ if we can. Chebyshev’s Inequality does just that. It provides a bound on the two tails outside an interval that is symmetric about $E(X)$ as in the following graph.
The red arrow marks $\mu_X$ as usual, and now the two blue arrows are at a distance of $SD(X)$ on either side of the mean. It is often going to be convenient to think of $E(X)$ as “the origin” and to measure distances in units of SDs on either side.
Thus we can think of the gold area as the probability that $X$ is at least $z$ SDs away from $\mu_X$, for some positive $z$. Now
Chebyshev’s Inequality makes no assumptions about the shape of the distribution. It implies that no matter what the distribution of $X$ looks like,
$P(\mu_X - 2\sigma_X < X < \mu_X + 2\sigma_X) > 1 - 1/4 = 75\%$
- $P(\mu_X - 3\sigma_X < X < \mu_X + 3\sigma_X) > 1 - 1/9 = 88.88…\%$
- $P(\mu_X - 4\sigma_X < X < \mu_X + 4\sigma_X) > 1 - 1/16 = 93.75\%$
- $P(\mu_X - 5\sigma_X < X < \mu_X + 5\sigma_X) > 1 - 1/25 = 96\%$
That is, no matter what the shape of the distribution, the bulk of the probability is in the interval “expected value plus or minus a few SDs”.
This is one reason why the SD is a good measure of spread. No matter what the distribution, if you know the expectation and the SD then you have a pretty good sense of where the bulk of the probability is located.
If you happen to know more about the distribution then of course you can do better than Chebyshev’s bound. But in general Chebyshev’s bound is as well as you can do without making further assumptions.
To formalize the notion of “setting $\mu_X$ as the origin and measuring distances in units of $\sigma_X$, we define a random variable $Z$ called “$X$ in standard units” as follows:
$Z$ measures how far $X$ is above its mean, relative to its SD. In other words, $X$ is $Z$ SDs above the mean:
It is important to learn to go back and forth between these two scales of measurement, as we will be using standard units quite frequently. Note that by the linear function rules,
no matter what the distribution of $X$ is.
Chebyshev’s Inequality says
which is the same as saying
So if you have converted a random variable to standard units, the overwhelming majority of the values of the standardized variable should be in the range $-5$ to $5$. It is possible that there are values outside that range, but it is not likely.
Another Way of Writing Chebyshev’s Inequality
Chebyshev’s Inequality is often written as follows:
For all $c > 0$,
This is the same as our statement but with $c$ replacing $z\sigma_X$. We will use whichever form happens to be convenient in a given setting.
The figure below is analogous to the figure drawn earlier to illustrate the derivation of Markov’s inequality.
The graph of the quadratic function $g(x) = (x - \mu_X)^2/c^2$ is always at or above the graph of the indicator function $h(x) = I(\vert x - \mu_X \vert \ge c)$.
Thus $E(g(X)) ~ \ge ~ E(h(X)) ~ = ~ P(\vert X - \mu_X \vert \ge c)$. Chebyshev’s inequality follows, because $E(g(X)) ~ = ~ E((X - \mu_X)^2)/c^2 ~ = ~ \sigma_X^2/c^2$.