CONTENTS

Exercise: MGF Computation — Exponential and Gamma

Problem

Compute MGFs directly from the definition MX(s)=E[esX]M_X(s) = \mathbb{E}[e^{sX}] for two important distributions.

  1. Let XExp(λ)X \sim \text{Exp}(\lambda) with density fX(x)=λeλxf_X(x) = \lambda e^{-\lambda x}, x0x \ge 0. Compute MX(s)M_X(s) and state its domain.

  2. From MX(s)M_X(s), compute E[X]\mathbb{E}[X] and Var(X)\text{Var}(X) by differentiation. Verify your answers against the known formulas E[X]=1/λ\mathbb{E}[X] = 1/\lambda, Var(X)=1/λ2\text{Var}(X) = 1/\lambda^2.

  3. Let Y1,,YnY_1, \ldots, Y_n be i.i.d. Exp(λ)\text{Exp}(\lambda). Use the product-of-MGFs rule to show that Y:=Y1++YnY := Y_1 + \cdots + Y_n has MGF MY(s)=(λλs)n,s<λ.M_Y(s) = \left(\frac{\lambda}{\lambda - s}\right)^n, \qquad s < \lambda.

  4. Identify the distribution of YY by recognising this as the MGF of a named family. (Hint: it's a gamma distribution.)

Hint

The integral 0e(sλ)xdx\int_0^\infty e^{(s - \lambda)x}\,dx converges iff s<λs < \lambda, which gives the domain.

Jump to the solution when you're ready.