Probability and moment generating functions

Database › Mathematics › Applied mathematics › Probability

PROB-0005MethodUndergraduate

Encoding a distribution as the power series G(s) = E[sˣ] (or the moment generating function E[eᵗˣ]) turns moments into derivatives and sums of independent variables into products.

$$G(s)=\sum_n p_ns^n,\quad E[X]=G'(1),\quad V[X]=G''(1)+G'(1)-G'(1)^2;\qquad M(t)=E[e^{tX}],\ \ E[X^k]=M^{(k)}(0);\qquad G_{X+Y}=G_XG_Y$$

Explanation

For a non-negative integer variable, $G(1)=1$ and $p_n=G^{(n)}(0)/n!$. Independence gives $E[s^{X+Y}]=E[s^X]E[s^Y]$, so a sum of independent variables has the product of the generating functions; a random number $N$ of terms gives the composition $G_N(G_X(s))$.

The moment generating function is $G(e^t)$; its logarithm generates the cumulants (mean, variance, …), which simply add for independent sums. The characteristic function $E[e^{ikX}]$ is the Fourier transform of the density, always exists, and gives the shortest proof of the central limit theorem.

Example 1

Find the generating function of the Poisson distribution, its mean and variance, and the distribution of the sum of independent Poisson variables with means $\lambda$ and $\mu$.

Solution

$G=\sum e^{-\lambda}\frac{\lambda^n s^n}{n!}=e^{\lambda(s-1)}$, $G'(1)=\lambda$, $G''(1)=\lambda^2$, so $V=\lambda$. $G_XG_Y=e^{(\lambda+\mu)(s-1)}$: Poisson with mean $\lambda+\mu$.

Example 2

Use the generating function of one trial to find the mean and variance of the binomial distribution.

Solution

One trial: $q+ps$. $n$ independent trials: $G=(q+ps)^n$, $G'(1)=np$, $G''(1)=n(n-1)p^2$, so $V=n(n-1)p^2+np-n^2p^2=npq$.

Related entries