Concentration inequalities quantify how a random variable X concentrates, or equivalently deviates, around its mean μ.
These concentration inequalities usually take the form
Pr[∣X−μ∣≥t]≤(a function decreasing in t).
The specific function on the right-hand side depends on the assumptions made about X. For example:
- Markov’s inequality makes minimal assumptions about X (only that it is non-negative) and yields a bound that decays as O(t1).
- Chebyshev’s inequality assumes X has finite mean μ and variance σ2, yielding a bound that decays as O(t21).
- Chernoff’s inequality further assumes that X is the sum of independent random variables, and yields a very tight bound that decay exponentially with increasing t.
Markov’s inequality
Let X be a non-negative random variable.
Then, for any t>0, we have
Pr[X≥t]≤tE[X].
Fix t>0.
We can write any real number x as
x=1x<tx+1x≥tx.
Now consider E[X]:
E[X]=E[1X<tX+1X≥tX]=E[1X<tX]+E[1X≥tX]≥E[1X≥tX](since X non-negative)≥E[1X≥tt]=t⋅E[1X≥t]=t⋅Pr[X≥t].
Dividing both sides by t gives the desired result.
Chebyshev’s inequality
Let X be a random variable with mean μ and variance σ2.
Then, for any t>0, we have
Pr[∣X−μ∣≥t]≤t2σ2.
Pr[∣X−μ∣≥t]=Pr[(X−μ)2≥t2]≤t2E[(X−μ)2](Markov’s inequality)=t2σ2.
Chernoff’s inequality
Let Xi be independent Bernoulli random variables with parameters pi.
Consider their sum SN=∑i=1NXi, and denote its mean by μ=E[SN].
Then, for any t>μ, we have
Pr[SN≥t]≤e−μ(teμ)t.
The proof follows what is known as the “MGF method”.
This method generally begins by writing the original inequality, multiplying both sides by a parameter λ>0, exponentiating both sides, and then applying Markov’s inequality:
Pr[SN≥t]=Pr[eλSN≥eλt]≤eλtE[eλSN](Markov’s inequality)=e−λtE[eλ∑i=1nXi]=e−λtE[i=1∏neλXi]=e−λti=1∏nE[eλXi](Xi are independent).
Note that each term inside the product, E[eλXi], is the moment generating function (MGF) of Xi.
The problem now reduces to bounding these MGFs.
Recall that Xi is a Bernoulli random variable with parameter pi.
Thus, we can bound each MGF as follows:
E[eλXi]=p(Xi=1)⋅eλ(1)+p(Xi=0)⋅eλ(0)=pieλ+(1−pi)=1+(eλ−1)pi≤e(eλ−1)pi(1+x≤ex for all x∈R).
Substituting this back into our previous inequality, we get
Pr[SN≥t]≤e−λti=1∏nE[eλXi]≤e−λti=1∏ne(eλ−1)pi=e−λte∑i=1n(eλ−1)pi=e−λte(eλ−1)∑i=1npi=e−λte(eλ−1)μ.
Recall that λ>0 is an arbitrary parameter.
We can find the optimal λ that minimizes the right-hand side by differentiating with respect to λ and setting the derivative to zero:
dλd(e−λt+(eλ−1)μ)⟺(e−λt+(eλ−1)μ)(−t+μeλ)⟺−t+μeλ⟺eλ⟺λ=0=0=0=μt=ln(μt).
Substituting this optimal λ back into our previous inequality, we get
Pr[SN≥t]≤e−λte(eλ−1)μ=e−ln(μt)te(μt−1)μ=(μt)−tet−μ=(tμ)tete−μ=(teμ)te−μ.
Let Xi be independent Bernoulli random variables with parameters pi.
Consider their sum SN=∑i=1NXi, and denote its mean by μ=E[SN].
Then, for any δ>0, we have
Pr[SN≥(1+δ)μ]≤exp(−2+δδ2μ).
Let t=(1+δ)μ.
Plugging into Chernoff’s inequality, we get
Pr[SN≥(1+δ)μ]≤e−μ((1+δ)μeμ)(1+δ)μ=e−μ(1+δe)(1+δ)μ=e−μ+(1+δ)μln(1+δe)=exp(−μ+(1+δ)μ(1−ln(1+δ)))=exp(−μ+(1+δ)μ−(1+δ)μln(1+δ))=exp(δμ−(1+δ)μln(1+δ))=exp(−μϕ(δ))(letting ϕ(δ):=(1+δ)ln(1+δ)−δ)≤exp(−2+δδ2μ)(since ϕ(δ)≥2+δδ2).
It remains to show that ϕ(δ)≥2+δδ2 for all δ>0.
Expand to see details.
Define f(δ):=ϕ(δ)−2+δδ2=(1+δ)ln(1+δ)−δ−2+δδ2.
It suffices to show that f(δ)≥0 for all δ>0.
First, note that f(0)=(1+0)ln(1+0)−0−2+002=0.
Next, we compute the derivative f′(δ):
f′(δ)=(1)ln(1+δ)+(1+δ)1+δ1−1−(2+δ)2(2+δ)(2δ)−(δ2)(1)=ln(1+δ)−(2+δ)24δ+δ2.
Next, we compute the second derivative f′′(δ):
f′′(δ)=1+δ1−(2+δ)4(2+δ)2(4+2δ)−(4δ+δ2)(4+2δ)=1+δ1−(2+δ)42(2+δ)3−2(4δ+δ2)(2+δ)=1+δ1−(2+δ)32(2+δ)2−2(4δ+δ2)=1+δ1−(2+δ)38+8δ+2δ2−8δ−2δ2=1+δ1−(2+δ)38.
We want to show that 1+δ1−(2+δ)38≥0:
1+δ1−(2+δ)38⟺1+δ1⟺(2+δ)3⟺(8+12δ+6δ2+δ3)⟺(8+12δ+6δ2+δ3)−(8+8δ)⟺4δ+6δ2+δ3≥0≥(2+δ)38≥8(1+δ)≥8+8δ≥0≥0.
The last inequality is clearly true for all δ>0.
Thus, f′′(δ)≥0 for all δ>0.
From f(0)=0, f′(0)=0, and f′′(δ)≥0, it follows that f(δ)≥0 for all δ>0.
Thus, ϕ(δ)≥2+δδ2 for all δ>0.
This concludes the proof.
References
References are listed in alphabetical order.
- High-dimensional probability: An introduction with applications in data science [link]
Roman Vershynin. Cambridge University Press. 2026.