Moments
Moment Generating Functions
Properties
The expected value is the value we expect when we randomly sample from population that follows a specific distribution. The expected value of \(Y\) is
\[ E(Y)=\sum_y yP(y) \]
where \(P(y)\) is the PMF of \(Y\).
The moment generating functions is used to obtain the \(k\)th moment. The mgf is defined as
\[ m(c) = E(e^{tX}) \]
The \(k\)th moment can be obtained by taking the \(k\)th derivative of the mgf, with respect to \(c\), and setting \(c\) equal to 0:
\[ E(X^k)=\frac{d^km(c)}{dc}\Bigg|_{c=0} \]