Hoeffding's inequality

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In probability theory, Hoeffding's inequality provides an upper bound on the probability that the sum of bounded independent random variables deviates from its expected value by more than a certain amount. Hoeffding's inequality was proven by Wassily Hoeffding in 1963.[1]

Hoeffding's inequality is a special case of the Azuma–Hoeffding inequality and McDiarmid's inequality. It is similar to the Chernoff bound, but tends to be less sharp, in particular when the variance of the random variables is small.[2] It is similar to, but incomparable with, one of Bernstein's inequalities.

Statement[edit]

Let X1, ..., Xn be independent random variables such that almost surely. Consider the sum of these random variables,

Then Hoeffding's theorem states that, for all t > 0:[3]

Here E[Sn] is the expected value of Sn.

Note that the inequalities also hold when the Xi have been obtained using sampling without replacement; in this case the random variables are not independent anymore. A proof of this statement can be found in Hoeffding's paper. For slightly better bounds in the case of sampling without replacement, see for instance the paper by Serfling (1974).

Example[edit]

Suppose and for all i. This can occur when Xi are independent Bernoulli random variables, though they need not be identically distributed. Then we get the inequality[4]

for all . This is a version of the additive Chernoff bound which is more general, since it allows for random variables that take values between zero and one, but also weaker, since the Chernoff bound gives a better tail bound when the random variables have small variance.

General case of sub-Gaussian random variables[edit]

The proof of Hoeffding's inequality can be generalized to any sub-Gaussian distribution. In fact, the main lemma used in the proof, Hoeffding's lemma, implies that bounded random variables are sub-Gaussian. A random variable X is called sub-Gaussian,[5] if

for some c>0. For a random variable X, the following norm is finite if and only if X is sub-Gaussian:

Then let X1, ..., Xn be zero-mean independent sub-Gaussian random variables, the general version of the Hoeffding's inequality states that:

where c > 0 is an absolute constant.[6]

Proof[edit]

The proof of Hoeffding's inequality follows similarly to concentration inequalities like Chernoff bounds.[7] The main difference is the use of Hoeffding's Lemma:

Suppose X is a real random variable such that almost surely. Then

Using this lemma, we can prove Hoeffding's inequality. As in the theorem statement, suppose X1, ..., Xn are n independent random variables such that almost surely for all i, and let .

Then for s, t > 0, Markov's inequality and the independence of Xi implies:

This upper bound is the best for the value of s minimizing the value inside the exponential. This can be done easily by optimizing a quadratic, giving

Writing the above bound for this value of s, we get the desired bound:

Usage[edit]

Confidence intervals[edit]

Hoeffding's inequality can be used to derive confidence intervals. We consider a coin that shows heads with probability p and tails with probability 1 − p. We toss the coin n times, generating n samples (which are i.i.d Bernoulli random variables). The expected number of times the coin comes up heads is pn. Furthermore, the probability that the coin comes up heads at least k times can be exactly quantified by the following expression:

where H(n) is the number of heads in n coin tosses.

When k = (p + ε)n for some ε > 0, Hoeffding's inequality bounds this probability by a term that is exponentially small in ε2n:

Since this bound holds on both sides of the mean, Hoeffding's inequality implies that the number of heads that we see is concentrated around its mean, with exponentially small tail.

Thinking of as the "observed" mean, this probability can be interpreted as the level of significance (probability of making an error) for a confidence interval around of size 2ɛ:

Solving the above for n gives us the following:

Therefore, we require at least samples to acquire a -confidence interval .

Hence, the cost of acquiring the confidence interval is sublinear in terms of confidence level and quadratic in terms of precision. Note that there are more efficient methods of estimating a confidence interval.

See also[edit]

Notes[edit]

References[edit]

  • Serfling, Robert J. (1974). "Probability Inequalities for the Sum in Sampling without Replacement". The Annals of Statistics. 2 (1): 39–48. doi:10.1214/aos/1176342611. MR 0420967.
  • Hoeffding, Wassily (1963). "Probability inequalities for sums of bounded random variables" (PDF). Journal of the American Statistical Association. 58 (301): 13–30. doi:10.1080/01621459.1963.10500830. JSTOR 2282952. MR 0144363.
  • Vershynin, Roman (2018). High-Dimensional Probability. Cambridge University Press. ISBN 9781108415194.
  • Boucheron, Stéphane (2013). Concentration inequalities : a nonasymptotic theory of independence. Gábor Lugosi, Pascal Massart. Oxford: Oxford University Press. ISBN 978-0-19-953525-5. OCLC 837517674.
  • Kahane, J.P. (1960). "Propriétés locales des fonctions à séries de Fourier aléatoires". Stud. Math. Vol. 19. pp. 1–25. [1].