From a Transform to Numerical Summaries
A moment generating function is useful not only because it encodes a distribution, but also because its derivatives at zero give numerical summaries of that distribution. The logarithm of the MGF gives a second set of summaries, the cumulants. The first two cumulants are the mean and variance; the third measures the signed asymmetry captured by the third central moment. These formulas are simple to state, but their validity depends on the MGF being finite in an interval around zero.
Let \(X\) be a real-valued random variable on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). Its moment generating function is \(M_X(t)=\mathbb{E}[e^{tX}]\) at real \(t\) for which this expectation is finite. We assume throughout that there is some \(a>0\) such that \(M_X(t)<\infty\) for every \(t\in(-a,a)\). This local finiteness condition is stronger than merely having a few finite moments; it ensures that differentiation under the expectation is justified.
For real \(t\), \(e^{tX}>0\) almost surely, so whenever \(M_X(t)\) is finite it is positive. Thus its logarithm is defined. The assumption of finiteness on an open interval around zero also implies that all absolute moments exist: for any fixed integer \(r\ge0\), the function \(|x|^r\) is bounded by a constant times \(e^{a|x|}\), and \(\mathbb{E}[e^{a|X|}]\) is finite if the endpoints \(a\) and \(-a\) are chosen inside the interval of finiteness.
Derivatives of the MGF
Proof. Choose numbers \(0<c<a\) so that \([-a,a]\) lies inside the interval on which the MGF is finite. Then \(\mathbb{E}[e^{aX}]+\mathbb{E}[e^{-aX}]<\infty\), and \(e^{a|X|}\le e^{aX}+e^{-aX}\), so \(\mathbb{E}[e^{a|X|}]<\infty\). For each fixed nonnegative integer \(r\), there is a finite constant \(C_r\) such that \(|x|^r e^{c|x|}\le C_r e^{a|x|}\) for all real \(x\): this follows because \(|x|^r e^{-(a-c)|x|}\) is bounded. Thus \(|X|^r e^{c|X|}\) is integrable. Differentiating \(e^{tX}\) \(r\) times with respect to \(t\) gives \(X^r e^{tX}\). On any smaller interval around zero, these derivatives are dominated by an integrable bound of the form just established. The dominated convergence theorem therefore permits differentiation under the expectation, giving \(M_X^{(r)}(t)=\mathbb{E}[X^r e^{tX}]\) there. At \(t=0\), this becomes \(M_X^{(r)}(0)=\mathbb{E}[X^r]\). \(\square\)
In particular, \(M_X(0)=1\), \(M_X'(0)=\mathbb{E}[X]\), and \(M_X''(0)=\mathbb{E}[X^2]\). The second derivative is the second raw moment, not the variance. To obtain the variance, subtract the square of the mean.
Cumulants from the Logarithm
Proof. Since \(K_X(t)=\log M_X(t)\) and \(M_X(t)>0\), ordinary differentiation gives $$ K_X'(t)=\frac{M_X'(t)}{M_X(t)},\qquad K_X''(t)=\frac{M_X''(t)}{M_X(t)}-\left(\frac{M_X'(t)}{M_X(t)}\right)^2. $$ Differentiating the second expression gives $$ K_X'''(t)=\frac{M_X'''(t)}{M_X(t)} -3\frac{M_X''(t)M_X'(t)}{M_X(t)^2} +2\left(\frac{M_X'(t)}{M_X(t)}\right)^3. $$ At zero, \(M_X(0)=1\), and the moment theorem gives \(M_X^{(r)}(0)=m_r\). Hence \(\kappa_1=m_1\), \(\kappa_2=m_2-m_1^2\), and \(\kappa_3=m_3-3m_1m_2+2m_1^3\). By the definition of variance, \(m_2-m_1^2=\operatorname{Var}(X)\). To identify the third expression, expand the centered cube and take expectations: $$ \mathbb{E}[(X-m_1)^3] =\mathbb{E}[X^3-3m_1X^2+3m_1^2X-m_1^3] =m_3-3m_1m_2+3m_1^3-m_1^3. $$ This equals \(m_3-3m_1m_2+2m_1^3=\kappa_3\), as required. \(\square\)
This derivation also explains the distinction between raw moments and cumulants. The derivatives of \(M_X\) give raw moments directly; the derivatives of \(\log M_X\) adjust for lower-order contributions. For the third cumulant, those corrections are \(-3m_1m_2+2m_1^3\). In particular, \(\kappa_3\) is not generally the raw third moment \(m_3\).
Worked Calculations
Worked Example: A Two-Point Variable with Nonzero Third Cumulant
Suppose \(X\) takes value \(-1\) with probability \(\tfrac23\) and value \(2\) with probability \(\tfrac13\). Compute its mean, variance, and third cumulant from the MGF.
The probabilities sum to \(\tfrac23+\tfrac13=1\). The MGF is $$ M_X(t)=\tfrac23 e^{-t}+\tfrac13 e^{2t}. $$ Differentiating gives \(M_X'(t)=-\tfrac23e^{-t}+\tfrac23e^{2t}\), \(M_X''(t)=\tfrac23e^{-t}+\tfrac43e^{2t}\), and \(M_X'''(t)=-\tfrac23e^{-t}+\tfrac83e^{2t}\). Substituting \(t=0\) yields \(M_X(0)=1\), \(m_1=M_X'(0)=-\tfrac23+\tfrac23=0\), \(m_2=M_X''(0)=\tfrac23+\tfrac43=2\), and \(m_3=M_X'''(0)=-\tfrac23+\tfrac83=2\).
Therefore \(\mathbb{E}[X]=0\), \(\operatorname{Var}(X)=m_2-m_1^2=2-0=2\), and \(\kappa_3=m_3-3m_1m_2+2m_1^3=2-0+0=2\). Check: direct computation gives \(\mathbb{E}[X^2]=\tfrac23(1)+\tfrac13(4)=2\) and \(\mathbb{E}[X^3]=\tfrac23(-1)+\tfrac13(8)=2\). Since the mean is zero, the second and third central moments equal these raw moments, confirming the results.
Worked Example: A Symmetric Three-Point Variable
Suppose \(X\) takes values \(-1,0,1\), each with probability \(\tfrac13\). Find the first three cumulants and verify the third one by centering.
The MGF is \(M_X(t)=\tfrac13e^{-t}+\tfrac13+\tfrac13e^t\). Its first three derivatives at zero give $$ m_1=\tfrac13(-1)+\tfrac13(0)+\tfrac13(1)=0,\qquad m_2=\tfrac13(1)+\tfrac13(0)+\tfrac13(1)=\tfrac23,\qquad m_3=\tfrac13(-1)+\tfrac13(0)+\tfrac13(1)=0. $$ The probabilities sum to \(1\), and the cumulant formulas give \(\kappa_1=0\), \(\kappa_2=\tfrac23-0=\tfrac23\), and \(\kappa_3=0-3(0)(\tfrac23)+2(0)^3=0\).
Check: The mean is zero, so the third central moment is \(\mathbb{E}[X^3]=0\). The variance is \(\mathbb{E}[X^2]-(\mathbb{E}X)^2=\tfrac23-0=\tfrac23\). The zero third cumulant is consistent with the equal probabilities at opposite values: their contributions to the centered cube, \(-\tfrac13\) and \(+\tfrac13\), cancel.
Worked Example: Nonzero Mean and Third Central Moment
Suppose \(X\) takes value \(0\) with probability \(\tfrac12\), value \(1\) with probability \(\tfrac13\), and value \(3\) with probability \(\tfrac16\). Calculate the first three cumulants in two ways for the third one.
The probabilities sum to \(\tfrac12+\tfrac13+\tfrac16=1\). The MGF is $$ M_X(t)=\tfrac12+\tfrac13e^t+\tfrac16e^{3t}. $$ Its first three derivatives at zero give $$ m_1=0\cdot\tfrac12+1\cdot\tfrac13+3\cdot\tfrac16=\tfrac56,\quad m_2=0^2\cdot\tfrac12+1^2\cdot\tfrac13+3^2\cdot\tfrac16=\tfrac{11}{6},\quad m_3=0^3\cdot\tfrac12+1^3\cdot\tfrac13+3^3\cdot\tfrac16=\tfrac{29}{6}. $$ Thus \(\kappa_1=\tfrac56\), and $$ \kappa_2=\tfrac{11}{6}-\left(\tfrac56\right)^2 =\tfrac{66}{36}-\tfrac{25}{36}=\tfrac{41}{36}. $$ For the third cumulant, use the raw-moment formula: $$ \kappa_3=\tfrac{29}{6}-3\left(\tfrac56\right)\left(\tfrac{11}{6}\right)+2\left(\tfrac56\right)^3 =\tfrac{1044}{216}-\tfrac{990}{216}+\tfrac{250}{216} =\tfrac{304}{216}=\tfrac{38}{27}. $$
Check by centering: The centered values are \(-\tfrac56\), \(\tfrac16\), and \(\tfrac{13}{6}\). Their probability-weighted cubes are $$ \tfrac12\left(-\tfrac56\right)^3=-\tfrac{375}{1296},\qquad \tfrac13\left(\tfrac16\right)^3=\tfrac{2}{1296},\qquad \tfrac16\left(\tfrac{13}{6}\right)^3=\tfrac{2197}{1296}. $$ Adding gives \(\tfrac{-375+2+2197}{1296}=\tfrac{1824}{1296}=\tfrac{38}{27}\), in agreement with the cumulant calculation. The variance also checks directly: \(\mathbb{E}[X^2]-(\mathbb{E}X)^2=\tfrac{11}{6}-\tfrac{25}{36}=\tfrac{41}{36}\).
Why the Logarithm Matters—and a Common Error
The cumulant generating function separates the contribution of the mean from higher-order variation. Its first derivative at zero gives the mean, its second derivative gives variance, and its third derivative gives the third central moment. This makes cumulants useful when a problem asks for variability or asymmetry rather than just raw powers. A zero third cumulant means the third central moment is zero; it does not, by itself, imply that the entire distribution is symmetric.
Common mistake: treating the third raw moment as the third cumulant. In the last example, one might incorrectly write \(\kappa_3=m_3=\tfrac{29}{6}\). The correction is to differentiate \(\log M_X(t)\), or use the proved formula: $$ \kappa_3=m_3-3m_1m_2+2m_1^3 =\tfrac{29}{6}-\tfrac{55}{12}+\tfrac{125}{108} =\tfrac{38}{27}. $$ The direct centered-cube calculation also gives \(\tfrac{38}{27}\), so the raw third moment \(\tfrac{29}{6}\) cannot be substituted for the third cumulant here. A related check is that \(\kappa_2\) is \(m_2-m_1^2\), not \(m_2\); only when the mean is zero do the second raw moment and variance agree.
The local finiteness assumption is important: it justifies differentiating the expectation and guarantees the moments used in these identities exist. If an MGF is not finite on any open interval around zero, these derivative formulas cannot be invoked on the basis of an MGF in the stated way. One should check the MGF's domain before differentiating, rather than treating formal derivatives as expectations without a finiteness condition.
Check Your Understanding
Use the derivative and cumulant formulas above; when calculating, distinguish raw moments from centered moments.
- If \(M_X(0)=1\), \(M_X'(0)=3\), and \(M_X''(0)=11\), what are the mean and variance?
- Write the third cumulant in terms of \(m_1,m_2,m_3\). Which terms correct the raw third moment?
- A variable has mean zero and finite third moment. Show from the cumulant formula that \(\kappa_3=m_3\).
- For the variable taking values \(-1,0,1\) equally often, calculate \(\mathbb{E}[X^2]\) and \(\mathbb{E}[X^3]\) directly and compare them with the second and third cumulants.
- Why is finiteness of the MGF on an open interval around zero useful when differentiating under the expectation?