Let $X$ be a [[random variable]]. It's moment generating function (mgf) is denoted and defined as $M_X(t) = E[e^{tX}] = \int_{-\infty}^\infty e^{tX}f_X(x) \ dx$ For discrete variables, replace the integral with the sum over all $x