A concentration inequality bounds the probability that a random variable deviates from its mean, or another reference value, using limited information about its distribution such as its moments, its range or the independence of its components. The bounds are valid for every distribution that satisfies the assumptions, which is what makes them useful when the distribution itself is unknown.
Markov’s inequality states that if X is a non-negative random variable with finite mean then for every a>0
P(X≥a)≤aE[X].
It follows from a1{X≥a}≤X by taking expectations, and it is the inequality from which the others below are derived by applying it to a transformation of X.
Chebyshev’s inequality states that if X has finite mean μ and variance σ2 then for every a>0
P(∣X−μ∣≥a)≤a2σ2,
which is Markov’s inequality applied to (X−μ)2. Taking a=kσ shows that the probability of a deviation of at least k standard deviations is at most k21 for any distribution with finite variance. Applying Markov’s inequality to ∣X−μ∣k gives the analogous bound akE[∣X−μ∣k] from any finite moment.
The Chernoff bound states that if the mgf of X exists then for every a∈R
which is Markov’s inequality applied to etX followed by optimising over t. Because the mgf of a sum of independent random variables is the product of their mgfs, the Chernoff bound gives tail probabilities for sums that decrease exponentially in a, whereas Chebyshev’s inequality decreases only as a21.
Jensen’s inequality for random variables states that if φ:R→R is a convex function and X has finite mean then
φ(E[X])≤E[φ(X)]
whenever the right-hand side exists, and the inequality reverses for concave φ. It is the extension of Jensen’s inequality for convex combinations from finite weighted averages to expectations, and the same statement holds for a random vector and a convex function on Rn. Consequences include E[X2]≥E[X]2, so that variances are non-negative, E[X1]≥E[X]1 for positive X, and E[logeX]≤logeE[X].
The Cauchy–Schwarz inequality for random variables states that if X and Y have finite second moments then
E[XY]2≤E[X2]E[Y2]
with equality if and only if Y=cX almost surely for some c∈R. It is the Cauchy-Schwarz inequality of the inner product ⟨X,Y⟩=E[XY] on random variables with finite second moments, and applied to X−μX and Y−μY it gives ∣cov[X,Y]∣≤σXσY, so that correlations lie in [−1,1].
Hölder’s inequality generalises the Cauchy–Schwarz inequality to exponents p,q>1 with p1+q1=1.
E[∣XY∣]≤E[∣X∣p]p1E[∣Y∣q]q1
Lyapunov’s inequality states that for 0<r<s
E[∣X∣r]r1≤E[∣X∣s]s1,
which follows from Jensen’s inequality applied to the convex function x↦xrs and shows that the existence of the s-th moment implies the existence of all lower moments.
Let X be a random variable with mean μ.X is sub-Gaussian with variance proxyv>0 if and only if its centred mgf is bounded by that of a N(0,v) random variable.
E[et(X−μ)]≤exp(2vt2)∀t∈R
The Chernoff bound then gives P(X−μ≥a)≤exp(−2va2) for every a>0, so a sub-Gaussian random variable has tails that decay at least as fast as a normal distribution with variance v. A normal random variable is sub-Gaussian with variance proxy equal to its variance, and the sum of independent sub-Gaussian random variables is sub-Gaussian with variance proxy equal to the sum of their variance proxies.
Hoeffding’s lemma states that if a≤X≤b almost surely then X is sub-Gaussian with variance proxy 4(b−a)2.
E[et(X−μ)]≤exp(8t2(b−a)2)∀t∈R
Let X1,…,Xn be independent random variables with ai≤Xi≤bi almost surely and Sn=∑i=1nXi.Hoeffding’s inequality states that for every s>0
It follows from the Chernoff bound and Hoeffding’s lemma. For the average Xn=n1Sn of iid random variables in [0,1] with mean μ it gives
P(Xn−μ≥ε)≤2e−2nε2,
so the average concentrates around the mean at a rate that does not depend on the distribution beyond its range.
Hoeffding’s inequality uses only the range of each variable and so is loose when the variances are much smaller than the squared ranges. Bernstein’s inequality states that if X1,…,Xn are independent with ∣Xi−E[Xi]∣≤M almost surely and σ2=∑i=1nvar[Xi] then for every s>0
P(Sn−E[Sn]≥s)≤exp(−2(σ2+3Ms)s2).
For s small relative to Mσ2 the bound behaves like the Gaussian tail exp(−2σ2s2) and for large s like the exponential tail exp(−2M3s).
Concentration extends from sums to functions of independent random variables that do not depend too much on any one of them. A function f:Rn→R satisfies the bounded differences property with constants c1,…,cn if changing its i-th argument alone changes its value by at most ci.
McDiarmid’s inequality or the bounded differences inequality states that if X1,…,Xn are independent and f satisfies the bounded differences property then for every s>0
Hoeffding’s inequality is the special case f(x)=∑i=1nxi with ci=bi−ai. McDiarmid’s inequality bounds, for example, the deviation of an empirical error rate or of the largest deviation between an empirical and a true cdf from its mean.
Let X1,…,Xn be independent, X1′,…,Xn′ be independent copies of them and X(i) be X with its i-th component replaced by Xi′. The Efron–Stein inequality bounds the variance of a function of independent random variables by the expected effect of resampling one component at a time.
var[f(X)]≤21i=1∑nE[(f(X)−f(X(i)))2]
For a sum the inequality is an equality, and for a function with the bounded differences property it gives var[f(X)]≤41∑i=1nci2.
Gaussian concentration states that if Z∼Nn(0,In) and f:Rn→R is Lipschitz continuous with constant L with respect to Euclidean distance then f(Z) is sub-Gaussian with variance proxy L2.
P(f(Z)−E[f(Z)]≥s)≤exp(−2L2s2)∀s>0
The bound does not depend on the dimension n, which is why, for example, the Euclidean length ∥Z∥ of a standard normal random vector concentrates within a constant distance of n in every dimension.