Expectation of Binomial Distribution/Proof 4

Proof
From Moment Generating Function of Binomial Distribution, the moment generating function of $X$, $M_X$, is given by:


 * $\ds \map {M_X} t = \paren {1 - p + p e^t}^n$

By Moment in terms of Moment Generating Function:


 * $\ds \expect X = \map {M_X'} 0$

We have:

Setting $t = 0$ gives: