The moment generating function is defined by
$$mgf_X(t) = E_X[exp(xt)]$$
where X is the distribution and \(E_X\) is the expectation of the distribution X.
If an analytic expression isn't available, returns error. To impute a numerical expression, use the
CoreStatistics
decorator.