Let ε1,…,εn be independent with P(εi=±1)=12. Prove that P(∑iεi≥t)≤e−t2/(2n) using the moment generating function. What is the bound for n=100 and t=20, and how does it compare with the exact tail probability?

Probability and statistics, Concentration inequalities
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can carry out the Chernoff method, including the key MGF bound cosh⁡λ≤eλ2/2.

Key idea

Chernoff method: P(S≥t)≤e−λtE[eλS] for any λ>0. For Rademacher variables E[eλε]=cosh⁡λ≤eλ2/2, and optimising λ gives e−t2/(2n).

Steps

  1. Let S=∑iεi. For λ>0, Markov's inequality applied to eλS gives P(S≥t)=P(eλS≥eλt)≤e−λtE[eλS].
  2. By independence, E[eλS]=∏iE[eλεi]=(cosh⁡λ)n, since E[eλε]=12(eλ+e−λ).
  3. Key bound: cosh⁡λ=∑k≥0λ2k(2k)!≤∑k≥0λ2k2kk!=eλ2/2, because (2k)!≥2kk!.
  4. So P(S≥t)≤exp⁡(−λt+nλ2/2). The exponent is a quadratic in λ, minimised at λ=t/n.
  5. Substituting gives exp⁡(−t2/n+t2/(2n))=e−t2/(2n).
  6. For n=100, t=20: the bound is e−400/200=e−2≈0.135. This event is S≥20, which means at least 60 heads in 100 tosses, with exact probability about 0.028. The bound is valid but loose, about 5 times too large.
  7. Remark: this is Hoeffding's inequality for variables in [−1,1]. The general form exp⁡ ⁣(−2t2/∑(bi−ai)2) with bi−ai=2 gives the same e−t2/(2n).

Common mistakes

How long your answer should be

One page, 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: For i.i.d. samples from Uniform(0,θ), compare 2Xˉ and the sample maximum M (and its rescaled version n+1nM) as estimators of θ in terms of bias, variance and MSE. Why does the Cramér–Rao bound not apply?
Next in Probability and statistics: Is it true that averaging more samples always makes the sample mean more concentrated? For i.i.d. standard Cauchy samples with density f(x)=1π(1+x2), why do the law of large numbers and the central limit theorem fail?