Raw Moment of Bernoulli Distribution/Proof 2

Proof
By Moment Generating Function of Bernoulli Distribution, the moment generating function $M_X$ is given by:


 * $\map {M_X} t = q + p e^t$

By Moment in terms of Moment Generating Function:


 * $\expect {X^n} = \map {M^{\paren n}_X} 0$

By Derivative of Exponential Function:


 * $\map {M^{\paren n}_X} t = p e^t$

Setting $t = 0$: