[Math] Probability Theory: Moment generating functions

probabilityprobability distributionsprobability theory

If $Y$ has a binomial distribution with $n$ trials and probability of success $p,$ show that the moment-generating function for $Y$ is $m(t) = (pe^t + q)^n,$ where $q = 1 − p.$

I got to $$m(t) = E(e^{tY}) = \sum_{y=0}^n \binom{n}{y}(pe^t)^yq^{n-y}.$$
How to go from here?

Best Answer

As Y is a discrete random variable, the moment generating function can be computed quite easily. Your start is good. Now, remember that the sum over all possible binomial coefficients on $N$ can be simplified: \begin{eqnarray} M(t) = \mathbb{E}[e^{tY}] &=& \sum_{n= 0}^N e^{tn} {N \choose n} p^n q^{N-n} \\ &=& \sum_{n = 0}^N \left(pe^t\right)^n {N\choose n} q^{N-n}\\ &=& \left(pe^t + q\right)^N \end{eqnarray}

Related Question