Solution: MGF Computation — Exponential and Gamma
Part 1
MX(s)=∫0∞esx⋅λe−λxdx=λ∫0∞e−(λ−s)xdx.
This converges iff λ−s>0, i.e. s<λ. For such s:
MX(s)=λ⋅λ−s1=λ−sλ,s<λ.
Part 2
MX′(s)=λ/(λ−s)2. At s=0: MX′(0)=1/λ=E[X]. ✓
MX′′(s)=2λ/(λ−s)3. At s=0: MX′′(0)=2/λ2=E[X2].
So Var(X)=E[X2]−(E[X])2=2/λ2−1/λ2=1/λ2. ✓
Part 3
By independence and the product-of-MGFs rule:
MY(s)=i=1∏nMYi(s)=i=1∏nλ−sλ=(λ−sλ)n,s<λ.✓
Part 4
From the table of canonical MGFs, (λ/(λ−s))n is the MGF of a gamma distribution with shape n and rate λ — i.e. Y∼Gamma(n,λ).
By the uniqueness theorem, this identification is rigorous: the sum of n i.i.d. exponentials is gamma with integer shape n.
Takeaways
- Exponential MGF is a rational function λ/(λ−s), finite only for s<λ. Limited domain is typical of exponential-tailed distributions.
- MGF differentiation reads moments. First derivative at 0 gives E[X]; second derivative gives E[X2]; variance follows.
- Gamma = sum of i.i.d. exponentials (when shape is integer). This is the classical proof — three lines with MGFs. It also explains why gamma is the waiting time until the n-th Poisson arrival.
- Product-of-MGFs under independence is the engine. In nearly every "distribution of a sum" question, the MGF (or characteristic function) approach is faster and more rigorous than direct convolution.