Every problem in the chapter beside the book’s answer, a chapter at a time as you scroll.

Chapter 10: Generating Functions

5 problems · 0 figures

Exercise 10.3.1 §10.3 source ↗

Let X be a continuous random variable with values in [0,2] and density fX⁠. Find the moment generating function g(t) for X if

(a) fX(x)=1/2⁠.

(b) fX(x)=(1/2)x⁠.

(c) fX(x)=1−(1/2)x⁠.

(d) fX(x)=|1−x|⁠.

(e) fX(x)=(3/8)x2⁠.

Hint: Use the integral definition, as in Examples 10.15 and 10.16.

Example 10.15 in the book ↗

Let X be a continuous random variable with range [0,1] and density function fX(x)=1 for 0≤x≤1 (uniform density). Then μn=∫01xndx=1n+1 , and

g(t)=∑k=0∞tk(k+1)!=et−1t .

Here the series converges for all t⁠. Alternatively, we have

g(t)=∫−∞+∞etxfX(x)dx=∫01etxdx=et−1t .

Then (by L’Hôpital’s rule)

μ0=g(0)=limt→0⁡et−1t=1 ,μ1=g′(0)=limt→0⁡tet−et+1t2=12 ,μ2=g′′(0)=limt→0⁡t3et−2t2et+2tet−2tt4=13 .

In particular, we verify that μ=g′(0)=1/2 and σ2=g′′(0)−(g′(0))2=13−14=112 as before (see Example 6.25).

Example 6.25 in the book ↗

(continuation of Example 6.20) If X is uniformly distributed on [0,1]⁠, then, using Theorem 6.15, we have V(X)=∫01(x−12)2dx=112 .

Example 6.20 in the book ↗

Let X be uniformly distributed on the interval [0,1]⁠. Then E(X)=∫01xdx=1/2 . It follows that if we choose a large number N of random numbers from [0,1] and take the average, then we can expect that this average should be close to the expected value of 1/2.

Theorem 6.15 in the book ↗

If X is a real-valued random variable with E(X)=μ⁠, then (cf. Theorem 6.6) V(X)=E(X2)−μ2 .

Theorem 6.6 in the book ↗

If X is any random variable with E(X)=μ⁠, then V(X)=E(X2)−μ2 . Proof. We have

V(X)=E((X−μ)2)=E(X2−2μX+μ2)=E(X2)−2μE(X)+μ2=E(X2)−μ2 .

Example 10.16 in the book ↗

Let X have range [0,∞) and density function fX(x)=λe−λx (exponential density with parameter λ⁠). In this case

μn=∫0∞xnλe−λxdx=λ(−1)ndndλn∫0∞e−λxdx=λ(−1)ndndλn[1λ]=n!λn ,

and

g(t)=∑k=0∞μktkk!=∑k=0∞[tλ]k=λλ−t .

Here the series converges only for |t|<λ⁠. Alternatively, we have

g(t)=∫0∞etxλe−λxdx=λe(t−λ)xt−λ|0∞=λλ−t .

Now we can verify directly that μn=g(n)(0)=λn!(λ−t)n+1|t=0=n!λn .

Answer

(a) g(t)=12t(e2t−1)

(b) g(t)=e2t(2t−1)+12t2

(c) g(t)=e2t−2t−12t2

(d) g(t)= e2t(ty−1)+2et−t−1t2

(e) (3/8)(e2t(4t2−4t+2)−2t3)

Exercise 10.3.3 §10.3 source ↗

Let X be a continuous random variable with values in [0,∞) and density fX⁠. Find the moment generating functions for X if

(a) fX(x)=2e−2x⁠.

(b) fX(x)=e−2x+(1/2)e−x⁠.

(c) fX(x)=4xe−2x⁠.

(d) fX(x)= λ(λx)n−1e−λx/(n−1)!⁠.

Answer

(a) g(t)=22−t

(b) g(t)=4−3t2(1−t)(2−t)

(c) g(t)=4(2−t)2 (d) g(t)=(λλ+t)⁠, t<λ⁠.

Exercise 10.3.5 §10.3 source ↗

Find the characteristic function kX(τ) for each of the random variables X of Exercise 1.

Exercise 10.3.1 in the book ↗

Let X be a continuous random variable with values in [0,2] and density fX⁠. Find the moment generating function g(t) for X if

(a) fX(x)=1/2⁠.

(b) fX(x)=(1/2)x⁠.

(c) fX(x)=1−(1/2)x⁠.

(d) fX(x)=|1−x|⁠.

(e) fX(x)=(3/8)x2⁠.

Hint: Use the integral definition, as in Examples 10.15 and 10.16.

Example 10.15 in the book ↗

Let X be a continuous random variable with range [0,1] and density function fX(x)=1 for 0≤x≤1 (uniform density). Then μn=∫01xndx=1n+1 , and

g(t)=∑k=0∞tk(k+1)!=et−1t .

Here the series converges for all t⁠. Alternatively, we have

g(t)=∫−∞+∞etxfX(x)dx=∫01etxdx=et−1t .

Then (by L’Hôpital’s rule)

μ0=g(0)=limt→0⁡et−1t=1 ,μ1=g′(0)=limt→0⁡tet−et+1t2=12 ,μ2=g′′(0)=limt→0⁡t3et−2t2et+2tet−2tt4=13 .

In particular, we verify that μ=g′(0)=1/2 and σ2=g′′(0)−(g′(0))2=13−14=112 as before (see Example 6.25).

Example 6.25 in the book ↗

(continuation of Example 6.20) If X is uniformly distributed on [0,1]⁠, then, using Theorem 6.15, we have V(X)=∫01(x−12)2dx=112 .

Example 6.20 in the book ↗

Let X be uniformly distributed on the interval [0,1]⁠. Then E(X)=∫01xdx=1/2 . It follows that if we choose a large number N of random numbers from [0,1] and take the average, then we can expect that this average should be close to the expected value of 1/2.

Theorem 6.15 in the book ↗

If X is a real-valued random variable with E(X)=μ⁠, then (cf. Theorem 6.6) V(X)=E(X2)−μ2 .

Theorem 6.6 in the book ↗

If X is any random variable with E(X)=μ⁠, then V(X)=E(X2)−μ2 . Proof. We have

V(X)=E((X−μ)2)=E(X2−2μX+μ2)=E(X2)−2μE(X)+μ2=E(X2)−μ2 .

Example 10.16 in the book ↗

Let X have range [0,∞) and density function fX(x)=λe−λx (exponential density with parameter λ⁠). In this case

μn=∫0∞xnλe−λxdx=λ(−1)ndndλn∫0∞e−λxdx=λ(−1)ndndλn[1λ]=n!λn ,

and

g(t)=∑k=0∞μktkk!=∑k=0∞[tλ]k=λλ−t .

Here the series converges only for |t|<λ⁠. Alternatively, we have

g(t)=∫0∞etxλe−λxdx=λe(t−λ)xt−λ|0∞=λλ−t .

Now we can verify directly that μn=g(n)(0)=λn!(λ−t)n+1|t=0=n!λn .

Answer

(a) k(τ)=12iτ(e2iτ−1)

(b) k(τ)=e2iτ(2iτ−1)+1−2τ2

(c) k(τ)=e2iτ−2iτ−1−2τ2

(d) k(τ)= e2iτ(iτ−1)+2eiτ−iτ−1−τ2

(e) k(τ)= (3/8)(e2iτ(−4τ2−4iτ+2−iτ3)

Exercise 10.3.7 §10.3 source ↗

Let X be a continuous random variable with values in [0,1]⁠, uniform density function fX(x)≡1 and moment generating function g(t)=(et−1)/t⁠. Find in terms of g(t) the moment generating function for

(a) −X⁠.

(b) 1+X⁠.

(c) 3X⁠.

(d) aX+b⁠.

Answer

(a) g(−t)=1−e−tt

(b) etg(t)=e2t−ett

(c) g(et)=e3t−13t

(d) ebg(at)=eb(eat−1)at

Exercise 10.3.9 §10.3 source ↗

Let X1⁠, X2⁠, …, Xn be an independent trials process with normal density of mean 1 and variance 2. Find the moment generating function for

(a) X1⁠.

(b) S2=X1+X2⁠.

(c) Sn=X1+X2+⋯+Xn⁠.

(d) An=Sn/n⁠.

(e) Sn∗=(Sn−nμ)/nσ2⁠.

Answer

(a) g(t)=et2+t

(b) (g(t))2

(c) (g(t))n

(d) (g(t/n))n

(e) et2/2

Loading chapter 11…

Exercises and answers are adapted from Grinstead and Snell's Introduction to Probability by The CHANCE Project, which is free to read and download, and are used under the GNU FDL licence. They are taken from the GNU version’s LaTeX source (4 July 2006), with answers from the authors’ published answers to the odd-numbered exercises, and set for the web, so they may differ slightly from the printed page. This adaptation is released under the same licence and is neither affiliated with nor endorsed by Grinstead and Snell or American Mathematical Society. Copyright (C) 2006 Peter G. Doyle. This work is a version of Grinstead and Snell's ‘Introduction to Probability, 2nd edition’, published by the American Mathematical Society, Copyright (C) 2003 Charles M. Grinstead and J. Laurie Snell.