A coin is tossed n=100 times and p^ is the fraction of heads. Using Chebyshev with variance at most 1/4, and Hoeffding, bound P(∣p^−p∣≥ϵ) for ϵ=0.1 and ϵ=0.2. Which bound is tighter in each case? Also, for a non-negative X with mean 50, what does Markov say about P(X≥100)?

Learning theory, Concentration inequalities
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you know the three standard tail bounds, can compute them, and see that exponential bounds win only for large deviations.

Key idea

Markov: P(X≥a)≤E[X]/a. Chebyshev: P(∣Y−EY∣≥ϵ)≤Var(Y)/ϵ2. Hoeffding for n variables in [0,1]: P(∣p^−p∣≥ϵ)≤2e−2nϵ2.

Steps

  1. Markov first: P(X≥100)≤50/100=0.5. It needs only X≥0 and the mean.
  2. Chebyshev: Var(p^)=p(1−p)/n≤14n=0.0025. So P(∣p^−p∣≥ϵ)≤0.0025ϵ2.
  3. For ϵ=0.1 this is 0.25. For ϵ=0.2 it is 0.0625.
  4. Hoeffding: 2e−2nϵ2. For ϵ=0.1: 2e−2=0.271. For ϵ=0.2: 2e−8=0.00067.
  5. At ϵ=0.1 Chebyshev (0.25) is slightly tighter than Hoeffding (0.271). At ϵ=0.2 Hoeffding is about 90 times tighter.
  6. Lesson: Chebyshev decays like 1/ϵ2 while Hoeffding decays like e−2nϵ2. Exponential decay wins once nϵ2 is moderately large. Hoeffding also gives log⁡(1/δ) sample complexity, which is what PAC bounds use.

Common mistakes

How long your answer should be

Half a page with a small table; 3–4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: Linear classifiers x↦sign⁡(w⋅x) with ∥w∥≤1 are trained on m=104 points with ∥x∥≤R=1. A classifier has margin at least ρ=0.1 on 95% of the training points. Using LD≤L^ρ+2Rρm+ln⁡(1/δ)2m with δ=0.05, what true-error bound do you get? What if m were four times larger?
Next in Learning theory: Show that for a finite hypothesis class H in the realisable setting, any learner that outputs a hypothesis consistent with the training data is PAC with m≥1ϵ(ln⁡∣H∣+ln⁡1δ) samples. How many samples are needed when ∣H∣=106, ϵ=0.05 and δ=0.01?