A moment-generating function (MGF) of a Random variableX is a real-valued function whose derivatives are the moments of that variable's Probability distribution. There exists both raw (or algebraic) and central moment-generating functions. They are respectively defined as
Since the set of all moments fully determines the probability distribution, and the MGF allows one to find all moments, the MGF determines the distribution completely.
If two random variables X and Y have MGFs MX(t) and MY(t) that are equal in at least a small interval around t=0, then X=Y.
If X and Y are independent, then MX+Y(t)=MX(t)MY(t).
A random variable may not have an MGF. This is, for instance, the case for variables following the Cauchy distribution. In these cases, it's always possible to use the characteristic function instead.
Moment-generating functions can be extended to joint distributions and are known as joint MGFs. Given N random variables X1,…,XN with JDF f(x1,…,xN) and expected values E[Xi]=μi, the joint raw MGF is defined as
It can be proven that, similarly to the one-dimensional MGFs, the function moments can be found by taking partial derivatives and evaluating in t=(t1,…,tN)=0: