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-14

Exercise 1.2.10-14

not stated yet in Lean solution written

RatingHM30
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

Prove de Moivre's theorem: the binomial distribution (q+pz)n(q+pz)^n approaches the normal distribution.

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

The mean is pnpn and the deviation is σ=pqn\sigma=\sqrt{pqn}. Write the normalized function as a single nnth power.

Hint 2

Expand the exponentials to the second order, and take the logarithm.

Solution

Show the solution

Let μ=pn\mu=pn and σ=pqn\sigma=\sqrt{pqn}. Since q+p=1q+p=1,

e−itμ/σGn(eit/σ)=e−itpn/σ(q+peit/σ)n=(qe−itp/σ+peitq/σ)n,e^{-it\mu/\sigma}G_n(e^{it/\sigma})=e^{-itpn/\sigma}\bigl(q+pe^{it/\sigma}\bigr)^n=\bigl(qe^{-itp/\sigma}+pe^{itq/\sigma}\bigr)^n,

because e−itp/σ(q+peit/σ)=qe−itp/σ+peit(1−p)/σe^{-itp/\sigma}(q+pe^{it/\sigma})=qe^{-itp/\sigma}+pe^{it(1-p)/\sigma}. Expand eix=1+ix−x22+O(x3)e^{ix}=1+ix-\frac{x^2}2+O(x^3) with xx of order σ−1=O(n−1/2)\sigma^{-1}=O(n^{-1/2}):

qe−itp/σ+peitq/σ=q(1−itpσ−t2p22σ2)+p(1+itqσ−t2q22σ2)+O(n−3/2).qe^{-itp/\sigma}+pe^{itq/\sigma}=q\Bigl(1-\frac{itp}\sigma-\frac{t^2p^2}{2\sigma^2}\Bigr)+p\Bigl(1+\frac{itq}\sigma-\frac{t^2q^2}{2\sigma^2}\Bigr)+O(n^{-3/2}).

The terms of order σ−1\sigma^{-1} cancel because −qp+pq=0-qp+pq=0. The terms of order σ−2\sigma^{-2} give −t22σ2(qp2+pq2)=−t2pq2σ2=−t22n-\frac{t^2}{2\sigma^2}(qp^2+pq^2)=-\frac{t^2pq}{2\sigma^2}=-\frac{t^2}{2n}. So the base is 1−t22n+O(n−3/2)1-\frac{t^2}{2n}+O(n^{-3/2}), and

nln⁡(1−t22n+O(n−3/2))=−t22+O(n−1/2).n\ln\Bigl(1-\frac{t^2}{2n}+O(n^{-3/2})\Bigr)=-\frac{t^2}2+O(n^{-1/2}).

So the expression tends to e−t2/2e^{-t^2/2} as n→∞n\to\infty, for every fixed real tt.

Check

Take p=q=12p=q=\frac12, t=1t=1, n=100n=100. Then σ=5\sigma=5 and (cos⁡110)100=0.6060\bigl(\cos\frac1{10}\bigr)^{100}=0.6060, close to e−1/2=0.6065e^{-1/2}=0.6065.

Remarks

This is the central limit theorem in its first form, found by de Moivre. By Theorem A the same proof works for a sum of independent coins with different pkp_k as long as the variance tends to infinity.

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.