taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.10-22

Exercise 1.2.10-22

not stated yet in Lean solution written

RatingHM22
MarkersHM (needs higher mathematics)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.10 of Volume 1. Companion chapter: Analysis of an algorithm

The task

For a sum of independent coin variables with the generating function ∏(qk+pkz)\prod(q_k+p_kz) and μ=∑pk\mu=\sum p_k, prove the bounds Pr⁡(X≤μr)≤(r−rer−1)μ\Pr(X\le\mu r)\le(r^{-r}e^{r-1})^\mu for 0<r≤10<r\le1 and Pr⁡(X≥μr)≤(r−rer−1)μ\Pr(X\ge\mu r)\le(r^{-r}e^{r-1})^\mu for r≥1r\ge1.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Use the tail inequalities (24) and (25) with x=rx=r.

Hint 2

Bound each factor qk+pkr=1+(r−1)pkq_k+p_kr=1+(r-1)p_k with 1+y≤ey1+y\le e^y.

Solution

Show the solution

Tail inequalities. (24): for 0<x≤10<x\le1 and k≤sk\le s we have xk−s≥1x^{k-s}\ge1, so Pr⁡(X≤s)=∑k≤spk≤∑k≤spkxk−s≤x−sG(x)\Pr(X\le s)=\sum_{k\le s}p_k\le\sum_{k\le s}p_kx^{k-s}\le x^{-s}G(x). (25) is the same argument with x≥1x\ge1 and k≥sk\ge s.

Take s=μrs=\mu r and x=rx=r. Then G(r)=∏k(qk+pkr)=∏k(1+(r−1)pk)G(r)=\prod_k(q_k+p_kr)=\prod_k\bigl(1+(r-1)p_k\bigr). Since 1+y≤ey1+y\le e^y for all real yy (and each factor is positive), G(r)≤∏ke(r−1)pk=e(r−1)μG(r)\le\prod_ke^{(r-1)p_k}=e^{(r-1)\mu}. Therefore, for 0<r≤10<r\le1 by (24), and for r≥1r\ge1 by (25),

Pr⁡(X≤μr) or Pr⁡(X≥μr) ≤r−μre(r−1)μ=(r−rer−1)μ.\Pr(X\le\mu r)\ \text{or}\ \Pr(X\ge\mu r)\ \le r^{-\mu r}e^{(r-1)\mu}=\bigl(r^{-r}e^{r-1}\bigr)^\mu.

Check

Take n=10n=10 coins with pk=12p_k=\frac12, so μ=5\mu=5, and r=2r=2. The bound is (2−2e)5=(0.6796)5=0.1449(2^{-2}e)^5=(0.6796)^5=0.1449, and Pr⁡(X≥10)=2−10≈0.001\Pr(X\ge10)=2^{-10}\approx0.001. For r=12r=\frac12: (21/2e−1/2)5=0.85785=0.4643\bigl(2^{1/2}e^{-1/2}\bigr)^5=0.8578^5=0.4643 and Pr⁡(X≤2)=0.0547\Pr(X\le2)=0.0547.

Remarks

With r=1+δr=1+\delta the exponent is ln⁡(r−rer−1)=−δ22+δ36−⋯\ln(r^{-r}e^{r-1})=-\frac{\delta^2}2+\frac{\delta^3}6-\cdots, so for small δ\delta the bound is about e−μδ2/2e^{-\mu\delta^2/2}. The same bound holds for the Poisson distribution of Exercise 1.2.10-15.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.