The moment generating function (MGF) of a real-valued random variable is the function

Why is this called the MGF? Because, appropriately enough, it is indeed generated by the moments of . If we write out the Taylor expansion of and use linearity of expectation, we see that

so the MGF contains all the moment information of . In particular this implies that the MGF of is finite iff all moments exist.

Some distributional classes are defined in terms of conditions on the MGF, e.g., sub-Gaussian distributions and sub-exponential distributions.