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

Exercise 1.2.10-12

not stated yet in Lean solution written

RatingHM21
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

Show that G(et)=∑nMntn/n!G(e^t)=\sum_nM_nt^n/n!, derive the formula of κn\kappa_n in terms of the moments MjM_j, and find the corresponding formula with the central moments mjm_j.

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

Expand ekte^{kt} in G(et)=∑kpkektG(e^t)=\sum_kp_ke^{kt} and exchange the sums.

Hint 2

Write G(et)=1+vG(e^t)=1+v and expand ln⁡(1+v)=∑(−1)k−1vk/k\ln(1+v)=\sum(-1)^{k-1}v^k/k with the multinomial theorem, as in Exercise 1.2.9-11.

Hint 3

For the central moments, shift the distribution by its mean and use Exercise 1.2.10-11.

Solution

Show the solution

First part. G(et)=∑kpkekt=∑kpk∑nkntnn!=∑ntnn!∑kknpk=∑nMntnn!G(e^t)=\sum_kp_ke^{kt}=\sum_kp_k\sum_n\frac{k^nt^n}{n!}=\sum_n\frac{t^n}{n!}\sum_kk^np_k=\sum_n\frac{M_nt^n}{n!}, with M0=1M_0=1. (For a polynomial GG the exchange of sums is trivial.)

Second part. Put v=∑j≥1Mjtj/j!v=\sum_{j\ge1}M_jt^j/j!, so G(et)=1+vG(e^t)=1+v. By (23), κn=n! [tn]ln⁡(1+v)\kappa_n=n!\,[t^n]\ln(1+v) and ln⁡(1+v)=∑k≥1(−1)k−1vk/k\ln(1+v)=\sum_{k\ge1}(-1)^{k-1}v^k/k. The multinomial theorem gives

vk=∑k1+⋯+kn=kk!k1!⋯kn!∏j(Mjtjj!)kj+(terms of higher degree in t).v^k=\sum_{k_1+\cdots+k_n=k}\frac{k!}{k_1!\cdots k_n!}\prod_{j}\Bigl(\frac{M_jt^j}{j!}\Bigr)^{k_j}+(\text{terms of higher degree in }t).

The power of tt is k1+2k2+⋯+nknk_1+2k_2+\cdots+nk_n, which must be nn. So with k=k1+⋯+knk=k_1+\cdots+k_n,

κn=∑k1+2k2+⋯+nkn=n(−1)k−1 n! (k−1)!k1! 1!k1 k2! 2!k2⋯kn! n!knM1k1⋯Mnkn.\kappa_n=\sum_{k_1+2k_2+\cdots+nk_n=n}\frac{(-1)^{k-1}\,n!\,(k-1)!}{k_1!\,1!^{k_1}\,k_2!\,2!^{k_2}\cdots k_n!\,n!^{k_n}}M_1^{k_1}\cdots M_n^{k_n}.

For n=1,2,3,4n=1,2,3,4 this gives κ1=M1\kappa_1=M_1, κ2=M2−M12\kappa_2=M_2-M_1^2, κ3=M3−3M1M2+2M13\kappa_3=M_3-3M_1M_2+2M_1^3 and κ4=M4−4M1M3+12M12M2−3M22−6M14\kappa_4=M_4-4M_1M_3+12M_1^2M_2-3M_2^2-6M_1^4. For example, the term of κ4\kappa_4 with (k1,k2)=(2,1)(k_1,k_2)=(2,1) is (−1)2⋅4!⋅2!/(2!⋅1⋅1!⋅2)=12(-1)^2\cdot4!\cdot2!/(2!\cdot1\cdot1!\cdot2)=12.

Central moments. The distribution with the values shifted by −M1-M_1 has the generating function z−M1G(z)z^{-M_1}G(z). It has the central moments mjm_j as its moments, with m1=0m_1=0. By Exercise 1.2.10-11 (here with a real shift, from ln⁡G(et)−M1t\ln G(e^t)-M_1t), the semi-invariants κn\kappa_n for n≥2n\ge2 are unchanged. So the formula holds with MjM_j replaced by mjm_j, and since m1=0m_1=0 all terms with k1>0k_1>0 vanish:

κn=∑2k2+3k3+⋯+nkn=n(−1)k−1 n! (k−1)!k2! 2!k2⋯kn! n!knm2k2⋯mnkn,k=k2+⋯+kn, n≥2.\kappa_n=\sum_{2k_2+3k_3+\cdots+nk_n=n}\frac{(-1)^{k-1}\,n!\,(k-1)!}{k_2!\,2!^{k_2}\cdots k_n!\,n!^{k_n}}m_2^{k_2}\cdots m_n^{k_n},\qquad k=k_2+\cdots+k_n,\ n\ge2.

In particular κ2=m2\kappa_2=m_2, κ3=m3\kappa_3=m_3 and κ4=m4−3m22\kappa_4=m_4-3m_2^2.

Check

For the fair coin, Mn=12M_n=\frac12 for all n≥1n\ge1. Then κ3=12−32⋅12+2⋅18=0\kappa_3=\frac12-\frac32\cdot\frac12+2\cdot\frac18=0, as for any symmetric law. The central formula gives m2=14m_2=\frac14, m4=116m_4=\frac1{16}, so κ4=116−316=−18\kappa_4=\frac1{16}-\frac3{16}=-\frac18, which agrees with the cumulant of the Bernoulli law, pq(1−6pq)=14⋅(−12)=−18pq(1-6pq)=\frac14\cdot(-\frac12)=-\frac18.

Remarks

The relation between κn\kappa_n and the moments is the one between a sequence and the logarithm of its exponential generating function. It is the same sum as in Exercise 1.2.9-11 for power sums.

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.