Chernoff bound
In probability theory, the Chernoff bound, named after Herman Chernoff, gives exponentially decreasing bounds on tail distributions of sums of independent random variables. It is a sharper bound than the known first or second moment based tail bounds such as Markov's inequality or Chebyshev inequality, which only yield power-law bounds on tail decay. However, the Chernoff bound requires that the variates be independent – a condition that neither the Markov nor the Chebyshev inequalities require.
It is related to the (historically earliest) Bernstein inequalities, and to Hoeffding's inequality.
Example
Let X1, ..., Xn be independent Bernoulli random variables, each having probability p > 1/2. Then the probability of simultaneous occurrence of more than n/2 of the events {Xk = 1} has an exact value S, where
The Chernoff bound shows that S has the following upper bound:
Indeed, noticing that μ = np, we get by the multiplicative form of Chernoff bound (see below or Corollary 13.3 in Sinclair's class notes),
This result admits various generalizations as outlined below. One can encounter many flavours of Chernoff bounds: the original additive form (which gives a bound on the absolute error) or the more practical multiplicative form (which bounds the error relative to the mean).
A motivating example
The simplest case of Chernoff bounds is used to bound the success probability of majority agreement for n independent, equally likely events.
A simple motivating example is to consider a biased coin. One side (say, Heads), is more likely to come up than the other, but you don't know which and would like to find out. The obvious solution is to flip it many times and then choose the side that comes up the most. But how many times do you have to flip it to be confident that you've chosen correctly?
In our example, let Xi denote the event that the ith coin flip comes up Heads; suppose that we want to ensure we choose the wrong side with at most a small probability ε. Then, rearranging the above, we must have:
If the coin is noticeably biased, say coming up on one side 60% of the time (p = .6), then we can guess that side with 95% (ε = .05) accuracy after 150 flips (n = 150). If it is 90% biased, then a mere 10 flips suffices. If the coin is only biased a tiny amount, like most real coins are, the number of necessary flips becomes much larger.
More practically, the Chernoff bound is used in randomized algorithms (or in computational devices such as quantum computers) to determine a bound on the number of runs necessary to determine a value by majority agreement, up to a specified probability. For example, suppose an algorithm (or machine) A computes the correct value of a function f with probability p > 1/2. If we choose n satisfying the inequality above, the probability that a majority exists and is equal to the correct value is at least 1 − ε, which for small enough ε is quite reliable. If p is a constant, ε diminishes exponentially with growing n, which is what makes algorithms in the complexity class BPP efficient.
Notice that if p is very close to 1/2, the necessary n can become very large. For example, if p = 1/2 + 1/2m, as it might be in some PP algorithms, the result is that n is bounded below by an exponential function in m:
The first step in the proof of Chernoff bounds
The Chernoff bound for a random variable X, which is the sum of n independent random variables , is obtained by applying etX for some well-chosen value of t. This method was first applied by Sergei Bernstein to prove the related Bernstein inequalities.
From Markov's inequality and using independence we can derive the following useful inequality:
For any t > 0,
In particular optimizing over t and using independence we obtain,
-
(1)
Similarly,
and so,
Precise statements and proofs
Theorem for additive form (absolute error)
The following Theorem is due to Wassily Hoeffding and hence is called Chernoff-Hoeffding theorem.
Assume random variables are i.i.d. Let p = E[Xi], Xi ∈ {0, 1}, and ε > 0. Then
and
where
is the Kullback-Leibler divergence between Bernoulli distributed random variables with parameters x and y respectively. If , then
Proof
Let q = p + ε. Taking a = mq in (1), we obtain:
Now, knowing that , we have
Therefore we can easily compute the infimum, using calculus:
Setting the equation to zero and solving, we have
so that
Thus,
As q = p + ε > p, we see that t > 0, so our bound is satisfied on t. Having solved for t, we can plug back into the equations above to find that
We now have our desired result, that
To complete the proof for the symmetric case, we simply define the random variable Yi = 1−Xi, apply the same proof, and plug it into our bound.
Simpler bounds
A simpler bound follows by relaxing the theorem using , which follows from the convexity of and the fact that
This result is a special case of Hoeffding's inequality. Sometimes, the bound for , which is stronger for p < 1/8, is also used.
Theorem for multiplicative form of Chernoff bound (relative error)
Let random variables be independent random variables taking on values 0 or 1. Further, assume that . Then, if we let and μ be the expectation of X, for any δ > 0
Proof
According to (1),
The third line above follows because takes the value with probability pi and the value 1 with probability . This is identical to the calculation above in the proof of the Theorem for additive form (absolute error).
Rewriting as and recalling that (with strict inequality if x > 0), we set . The same result can be obtained by directly replacing a in the equation for the Chernoff bound with (1 + δ)μ.[1]
Thus,
If we simply set t = log(1+δ) so that t > 0 for δ > 0, we can substitute and find
This proves the result desired. A similar proof strategy can be used to show that
Using Chernoff bound, we can prove some simpler result:
- ,
- .
Better Chernoff bounds for some special cases
We can obtain stronger bounds using simpler proof techniques for some special cases of symmetric random variables.
Let be independent random variables,
- .
(a) .
Then,
- ,
and therefore also
- .
(b)
Then,
- ,
- ,
Applications of Chernoff bound
Chernoff bounds have very useful applications in set balancing and packet routing in sparse networks.
The set balancing problem arises while designing statistical experiments. Typically while designing a statistical experiment, given the features of each participant in the experiment, we need to know how to divide the participants into 2 disjoint groups such that each feature is roughly as balanced as possible between the two groups. Refer to this book section for more info on the problem.
Chernoff bounds are also used to obtain tight bounds for permutation routing problems which reduce network congestion while routing packets in sparse networks. Refer to this book section for a thorough treatment of the problem.
Matrix Chernoff bound
Rudolf Ahlswede and Andreas Winter introduced (Ahlswede & Winter 2003) a Chernoff bound for matrix-valued random variables.
If M is distributed according to some distribution over d × d matrices with zero mean, and if are independent copies of M then for any ε > 0,
where holds almost surely and C > 0 is an absolute constant.
Notice that the number of samples in the inequality depends logarithmically on d. In general, unfortunately, such a dependency is inevitable: take for example a diagonal random sign matrix of dimension d. The operator norm of the sum of t independent samples is precisely the maximum deviation among d independent random walks of length t. In order to achieve a fixed bound on the maximum deviation with constant probability, it is easy to see that t should grow logarithmically with d in this scenario.[2]
The following theorem can be obtained by assuming M has low rank, in order to avoid the dependency on the dimensions.
Theorem without the dependency on the dimensions
Let 0 < ε < 1 and M be a random symmetric real matrix with and almost surely. Assume that each element on the support of M has at most rank r. Set
If holds almost surely, then
where are i.i.d. copies of M.
See also
- Bennett's inequality
- Bernstein inequalities (probability theory)
- Efron-Stein inequality
- Hoeffding's inequality
- Markov's inequality
- Chebyshev's inequality
References
- Chernoff, H. (1952). "A Measure of Asymptotic Efficiency for Tests of a Hypothesis Based on the sum of Observations". Annals of Mathematical Statistics 23 (4): 493–507. doi:10.1214/aoms/1177729330. JSTOR 2236576. MR 57518. Zbl 0048.11804.
- Hoeffding, W. (1963). "Probability Inequalities for Sums of Bounded Random Variables". Journal of the American Statistical Association 58 (301): 13–30. doi:10.2307/2282952. JSTOR 2282952.
- Chernoff, H. (1981). "A Note on an Inequality Involving the Normal Distribution". Annals of Probability 9 (3): 533. doi:10.1214/aop/1176994428. JSTOR 2243541. MR 614640. Zbl 0457.60014.
- Hagerup, T. (1990). "A guided tour of Chernoff bounds". Information Processing Letters 33 (6): 305. doi:10.1016/0020-0190(90)90214-I.
- Ahlswede, R.; Winter, A. (2003). "Strong Converse for Identification via Quantum Channels". IEEE Transactions on Information Theory 48 (3): 569–579. arXiv:quant-ph/0012127.
- Mitzenmacher, M.; Upfal, E. (2005). Probability and Computing: Randomized Algorithms and Probabilistic Analysis. ISBN 978-0-521-83540-4.
- Nielsen, F. (2011). "Chernoff information of exponential families". arXiv:1102.2684 [cs.IT].
- Sinclair, Alistair. "Class notes for the course "Randomness and Computation" given Fall 2011". Retrieved 26 December 2012.