Theorem
Markov, Chebyshev, Jensen and Chernoff inequalities
Adapted
Bounds the probability that a random variable is far from its mean using only one or two of its moments, or its whole moment generating function, and shows on one worked tail which of the four bounds is worth using.
Prerequisites: Random variables and distributions, Expectation, variance and covariance, Generating functions
A distribution is usually known only through a few of its moments: a measurement has a quoted mean and standard deviation, a simulation reports a sample average, a model fixes an energy scale. The inequalities below answer the question such partial knowledge can still answer — how much probability can be sitting far out in the tail? — without any assumption about the shape of the distribution.
They form a hierarchy. One moment gives a bound that decays like , two moments give , and the whole moment generating function gives a bound that decays exponentially. All three are proved by the same one-line device, and the worked example below shows what each is worth on a single concrete tail.
Throughout, is a real random variable on a probability space , denotes expectation, and . Physics texts write for and for ; we use both notations and say which is which when it matters. A tail probability is a quantity of the form or .
A function is convex if
which says that each chord of the graph lies on or above the graph. Convexity in this sense has a dual description: for every there is a slope with
so that the graph lies on or above each of its supporting lines. We call strictly convex if some such choice of is strictly increasing in .
Two conventions are in play in the literature and it pays to know which one a book is using. Evans defines convexity by the chord inequality and derives the supporting-line property as a theorem; Grimmett and Stirzaker take the supporting-line property as the definition, remark in a footnote that this is convenient for their purposes, and assert that it is equivalent to the more usual one. We follow Evans' definition, and treat the supporting-line property as the consequence we actually use; nothing below depends on the choice.
The moment generating function of is , defined for those real at which the expectation is finite (see Generating functions). It is finite at , where .
Let be non-negative and let be a random variable for which is finite. Then
Four specialisations are used constantly.
- Markov's inequality. Take . If then
- Chebyshov's inequality. Take to get for . Applying this to and writing with and gives the form used in the physical sciences, Grimmett and Stirzaker spell the name Chebyshov, note in a footnote that this transliteration is at odds with common practice, and record that the inequality was found independently by Bienaymé and others; Arfken, Weber and Harris write Chebyshev. The two names denote the same inequality.
- A general increasing weight. If is strictly increasing then gives
- A matching lower bound for a bounded weight. If is non-negative and bounded above by , then
Let be convex and let have a finite mean. Then
in the sense that the left-hand side is well defined in and dominates the right-hand side. If moreover is strictly convex and , then is almost surely constant.
Evans states the same inequality for averages over a set: if is open and bounded, is summable and is convex, then
This is the probabilistic statement for with drawn uniformly from , extended to vector-valued and to a convex on .
Let be a random variable whose moment generating function is finite for some . Then for every such and every ,
where . The exponent is the quantity whose large- behaviour is the subject of Large deviations and Cramer's theorem; here we use only the inequality, which holds for every single and needs no limit.
The concrete case worked out by Grimmett and Stirzaker is a sum of Bernoulli trials. Let be independent events of common probability , let be the number of the first that occur, and put . Then
and the same bound holds for by applying it to the complementary events. This is Bernstein's inequality. Note what it says and what it does not: the bound is uniform in , it decays exponentially in at fixed , and the constant in the exponent is not the best possible — see the remark and the example below.
Every one of these bounds comes from the same two-line move. A probability is the expectation of an indicator, and an indicator can be bounded below by anything that is small where the event fails and large where it holds. If and , then pointwise: on the inequality is the definition of , and off the right side is zero while the left is non-negative. Taking expectations converts a statement about functions into the master inequality. Every named case is a choice of .
The choice of decides how fast the bound decays in , because the bound is with on the event. A weight that grows faster uses more of the distribution and pays off further out: gives , gives , and gives — but only if is finite, which is a real restriction. Since the exponential bound holds for every admissible , we are free to optimise over , and that free parameter is what makes it sharp.
Jensen's inequality is not of this family. It is the statement that a convex graph lies above each of its tangents, integrated: put the supporting line at the mean, and averaging the inequality kills the linear term.
The master inequality. Let and let be its indicator. Because everywhere and on ,
Expectation is monotone, and , so . Dividing by gives the claim. Non-negativity of is used exactly once, in the step off .
Markov and Chebyshov. Put ; then and the master inequality is Markov's. Put ; then for , so . Replacing by turns into , and setting gives . For this is the familiar .
Arfken, Weber and Harris reach the same conclusion in two visible steps rather than one, and the intermediate step is worth seeing because it is where the integral is cut. For a non-negative with density ,
the first inequality discarding a non-negative piece of the integral and the second replacing by its smallest value on the remaining range. Applying this to with reproduces the form.
A general increasing weight. Let be strictly increasing on and put , which is non-negative. Strict monotonicity gives , so the master inequality applied with the level is the claim. (If were merely non-decreasing, the two events could differ and only one implication would survive.)
The lower bound. Let take values in and let , with as before. Now bound from above: on we have , and on the complement . Hence
Taking expectations gives , and dividing by gives the stated bound.
Let , which exists by hypothesis, and take the supporting line of at the point : there is a with
Substituting gives an inequality between random variables. The right-hand side has finite expectation , using the hypothesis to split the expectation. Therefore the negative part of is integrable, is well defined in , and monotonicity of expectation gives
which is the inequality. The whole content of the proof is that the linear term has mean zero when the line is placed at the mean; placing it anywhere else would leave a residue.
The equality case. Suppose is strictly convex and . Write for the supporting line at , and set . Then by the displayed inequality and by assumption, so almost surely: almost every value taken by lies on that line.
Suppose, for contradiction, that is not almost surely constant. Then , for otherwise almost surely with mean , which forces almost surely. So there is some with , and also by construction. Now take any with . By the chord definition of convexity, is at most the value at of the chord joining to ; both endpoints lie on , so that chord is , giving . Combined with this makes on the whole interval , so is affine there with slope .
Finally, let be a supporting slope at such a . Comparing with for small of either sign gives for and for , hence for every in the open interval . A function that is constant on an interval is not strictly increasing, contradicting strict convexity. Therefore is almost surely constant.
The exponential bound. Fix with . The map is strictly increasing, so , and is non-negative. The master inequality at level gives
This holds for each admissible separately, so we may take the infimum of the right-hand side, which is the exponential of minus the supremum of .
Bernstein's inequality. Write , where is the indicator of , so the are independent and take the value with probability and with probability . Fix and . We apply the exponential bound not to itself but to the centred and scaled variable, which keeps the algebra symmetric in and . Since is the event in question,
where the last equality uses independence to factorise and then absorbs the factor into the bracket as .
The bracket must now be bounded by something manageable in . Grimmett and Stirzaker use the elementary inequality
which we verify in the remark below. Applying it with and with ,
because the two linear terms are and and cancel exactly. This cancellation is the point of centring: it is what removes the first-order term and leaves a bound that is quadratic in . Since we have , so each exponential is at most and the bracket is at most . Therefore
The exponent is a quadratic in with positive leading coefficient, minimised at , where . This choice is legitimate because it is positive. Hence the bound .
For the lower tail, replace each by its complement: the indicators are independent with common success probability , their sum is , and , to which the bound just proved applies with in place of . Since the bound does not involve , the same number comes out.
Non-negativity of . This is the only hypothesis in the master inequality, and it is used in exactly one place: bounding on the complement of . Drop it and the conclusion is false. Let be or with probability each and take , which is not non-negative. Then , so the proposed bound is negative for every , while .
Finiteness of the moment used. Markov's inequality is vacuous but not false when , and likewise for Chebyshov when the variance is infinite. The Cauchy distribution, with density , has no mean at all, so neither bound says anything about it; its tail really does decay only like , which is the Markov rate, so no better moment-free bound is available in that generality.
Finiteness of . The Chernoff bound is the one with a genuine restriction. If for every — as for any distribution with a tail heavier than exponential, for instance the log-normal — the bound degenerates to and is useless. Grimmett and Stirzaker's Exercise (5.11.3) records the converse: is finite in a neighbourhood of the origin exactly when there are positive constants and with for . So the hypothesis of the Chernoff bound and the kind of conclusion it delivers are two views of one property of .
Strict monotonicity of in case 3. Used to turn into . With a weight that is only non-decreasing, may be constant on an interval containing , and then can be strictly larger than ; the inequality still holds in the direction we want, but the two events are no longer interchangeable.
Convexity in Jensen. Only the existence of one supporting line, at the mean, is used. Nothing is needed at any other point, and need not be differentiable. The inequality reverses for concave (apply it to ), which is why while .
The elementary inequality . Both sides equal at . Three ranges:
- . Then , so already, and adding only helps.
- . Subtracting from the exponential series kills the linear term: . Factoring out , the sum is , since . And . Hence .
- . Write with . The alternating exponential series gives for , while because . Chaining the two gives .
A numerical sweep over confirms that , with equality only at .
The constant in Bernstein's inequality. It is not optimal, and the two places it is lost are visible in the proof: bounding and by , and using rather than the exact generating function. Optimising over exactly instead gives the sharper exponent , where
attained at . For and this exponent is per trial against Bernstein's , a factor of eight in the rate; the example below shows what that costs.
Given a tail to bound, with above the mean:
- Ask what you know. Only : use Markov. Also the variance: use Chebyshov on . Also the moment generating function, or is a sum of independent bounded pieces: use Chernoff.
- Centre before you bound. Markov and Chebyshov applied to itself bound , which is the wrong event when the mean is far from zero. Apply them to and ask for a deviation, not a value.
- Check whether the deviation is large or moderate. Write the Chebyshov bound as and the Chernoff bound as for a sum of pieces. Chebyshov wins at small deviations and small ; the exponential bound wins once exceeds roughly . Compute both: neither dominates.
- For a sum, do the optimisation in exactly if you can. For independent summands, , so and the supremum is a one-dimensional calculus problem. Differentiating gives the stationarity condition . Only fall back on a ready-made bound like Bernstein's when the exact optimisation is inconvenient.
- Sanity-check against a known case. If the summands are bounded, compare the bound with the normal approximation from The central limit theorem. The normal approximation is not a bound, but a tail bound that is smaller than it over the range where the approximation is good is a sign of an algebra slip.
A Monte Carlo program estimates a probability by generating independent trials and reporting the success fraction . Suppose the truth is . How likely is the program to report , that is, to be wrong by five percentage points on the high side? Here is binomial with parameters and , so , and ; the event is , a deviation of ten standard deviations.
Markov, on itself. With ,
This is correct and worthless: it is not far from the trivial bound . The reason is step 2 of the method — Markov applied to an uncentred variable measures how large is, not how far it has moved.
Chebyshov, on the deviation. With , i.e. ,
or . The single tail is at most this, so . Two moments have bought a factor of ninety over Markov.
Bernstein. With and ,
five times better than Chebyshov.
Chernoff, optimised exactly. Here , so with the stationarity condition reads , giving
Substituting back, with . Hence
The exact answer. Summing the binomial mass function from to gives
So on this tail the four bounds overestimate the truth by factors of about , , and respectively. The optimised Chernoff bound is the only one of the four that gets the order of magnitude even approximately right, and it is wrong only by a factor of — the polynomial prefactor that an exponential bound cannot see. Chebyshov and Bernstein, which differ by a factor of five from each other, are both off by twenty orders of magnitude. The moral is not that Chebyshov is bad but that at ten standard deviations the quantity being estimated is exponentially small, and only a bound with an exponential in it can track that.
Where the ordering reverses. At a moderate deviation the comparison goes the other way. Take with the same . Chebyshov gives , whereas Bernstein gives , six times worse. Setting , the two bounds are and , and they cross near ; below that, two moments beat the lossy exponential bound. This is why step 3 of the method says to compute both.
How many samples a simulation needs. Chebyshov's inequality is the standard distribution-free answer to "how long must I run?". For a sample mean of independent measurements with variance , , so guarantees accuracy with confidence whatever the distribution. This is the quantitative content of the weak law; see Laws of large numbers for the limit statement and for a worked sample-size calculation.
The language of experimental physics. A claim quoted at "five sigma" is a statement about a tail, and which tail bound is meant matters. For a normal variable the two-sided tails at one, two and three standard deviations are , and , computable as . Chebyshov's inequality gives only , and for the same three cases. Arfken, Weber and Harris make exactly this comparison at and call the contrast strong: the distribution-free bound is forty times weaker than the normal answer. The gap is the price of knowing nothing about the shape, and it is why an experiment that cannot justify a normal model quotes much more conservative limits.
Concentration of counts. A detector that records independent events with probability per gate, or a spin system in which independent sites each contribute , has a count whose fluctuation is controlled by Bernstein's inequality uniformly in : the chance that the observed rate differs from by more than is at most . Because the bound does not involve , it can be used before the rate is known — for choosing a gate count in advance, or for setting a threshold that must hold for every source strength.
Jensen and the free energy. Let be the energy of a configuration drawn from some reference distribution and let . The map is strictly convex, so Jensen's inequality gives
The left-hand side is a free energy and the right-hand side a mean energy, so the inequality is the familiar statement that the free energy of a system never exceeds the average energy of the reference ensemble, with equality only if is almost surely constant. Read in the other direction it is the variational principle behind mean-field approximations: any trial ensemble gives an upper bound on the true free energy, and the best trial ensemble is the one that makes the bound tightest.
Jensen and information. Applying the inequality to the convex function , or to , gives the non-negativity of the Kullback-Leibler divergence that appeared in the optimised Chernoff exponent above, and with it the fact that the exponent is strictly positive whenever the deviation is real. That observation is the starting point of Large deviations and Cramer's theorem.