Multivariate Moment Generating Functions: Domain, Marginals, Moments, and Independence

A one-dimensional moment generating function packages all the moments of a random variable into a single function. The multivariate version does the same for a random vector, and it additionally records how the coordinates relate to one another.

Definition and domain

For a random vector X=(X1,…,Xk)X=(X_1,\dots,X_k) and t=(t1,…,tk)t=(t_1,\dots,t_k),


MX(t)=E ⁣[etTX]=E ⁣[et1X1+⋯+tkXk].M_X(t)=E\!\left[e^{t^{\mathsf T}X}\right]=E\!\left[e^{t_1X_1+\cdots+t_kX_k}\right].


At t=0t=0 this is E[e0]=1E[e^{0}]=1 for every distribution, so finiteness at the origin is automatic and tells you nothing. The condition that matters is that MX(t)M_X(t) be finite for all tt in some open neighbourhood of the origin.


When that holds, two things follow: every mixed moment exists and is finite, and the MGF determines the joint distribution uniquely.


When it fails, as for a Cauchy or a sufficiently heavy-tailed distribution, the MGF is not a usable tool and the characteristic function is used instead.

Four things it does

1. Marginals, by zeroing the other arguments

MX1(t1)=E ⁣[et1X1]=MX(t1,0,…,0).M_{X_1}(t_1)=E\!\left[e^{t_1X_1}\right]=M_X(t_1,0,\dots,0).


Setting t2=⋯=tk=0t_2=\cdots=t_k=0 removes those variables from the exponent, leaving exactly the marginal transform.

2. Moments, by partial differentiation at the origin

E ⁣[X1aX2b]=∂ a+b∂t1a ∂t2bMX(t1,t2)∣t=0.E\!\left[X_1^{a}X_2^{b}\right] =\left.\frac{\partial^{\,a+b}}{\partial t_1^{a}\,\partial t_2^{b}}M_X(t_1,t_2)\right|_{t=0}.


In particular E[X1X2]=∂2M/∂t1∂t2E[X_1X_2]=\partial^2M/\partial t_1\partial t_2 at the origin, and then


Cov⁡(X1,X2)=E[X1X2]−E[X1]E[X2].\operatorname{Cov}(X_1,X_2)=E[X_1X_2]-E[X_1]E[X_2].


Most MGFs you meet have the form M=egM=e^{g}. Differentiating twice gives a formula worth memorising:


∂2∂t1∂t2eg=eg(∂g∂t1∂g∂t2+∂2g∂t1∂t2),\frac{\partial^2}{\partial t_1\partial t_2}e^{g}=e^{g}\left(\frac{\partial g}{\partial t_1} \frac{\partial g}{\partial t_2}+\frac{\partial^2 g}{\partial t_1\partial t_2}\right),


and since g(0)=0g(0)=0 whenever M(0)=1M(0)=1, evaluating at the origin gives simply E[X1X2]=g1g2+g12E[X_1X_2]=g_1g_2+g_{12} with everything evaluated at 00. The covariance is then just g12(0)g_{12}(0), because g1(0)=E[X1]g_1(0)=E[X_1] and g2(0)=E[X2]g_2(0)=E[X_2].

3. Independence, by factorisation

X1X_1 and X2X_2 are independent if and only if


MX(t1,t2)=MX1(t1) MX2(t2)M_X(t_1,t_2)=M_{X_1}(t_1)\,M_{X_2}(t_2)


for all (t1,t2)(t_1,t_2) in a neighbourhood of the origin. This is a genuine characterisation, not merely a consequence, and it is much stronger than a zero covariance: uncorrelated variables need not be independent, but a factorising MGF forces independence, by the uniqueness theorem.

4. Linear combinations, by substitution

For constants a1,…,aka_1,\dots,a_k, put S=∑iaiXiS=\sum_i a_iX_i. Then


MS(s)=E ⁣[es∑iaiXi]=MX(sa1,…,sak),M_S(s)=E\!\left[e^{s\sum_i a_iX_i}\right]=M_X(sa_1,\dots,sa_k),


so the whole distribution of any linear combination is read off the joint MGF by a substitution, with no integration at all.

The bivariate normal

MX(t)=exp⁡ ⁣(μTt+12tTΣt)=exp⁡ ⁣(μ1t1+μ2t2+12(σ12t12+2σ12t1t2+σ22t22)).M_X(t)=\exp\!\left(\mu^{\mathsf T}t+\tfrac12 t^{\mathsf T}\Sigma t\right) =\exp\!\left(\mu_1t_1+\mu_2t_2+\tfrac12\left(\sigma_1^2t_1^2+2\sigma_{12}t_1t_2+\sigma_2^2t_2^2\right)\right).


Reading parameters off such an expression is a matter of matching coefficients, and the factor of 12\tfrac12 and the factor of 22 on the cross term are where mistakes happen.

Worked example

Let (X,Y)(X,Y) be bivariate normal with μ=(2,−1)\mu=(2,-1), σX2=4\sigma_X^2=4, σY2=9\sigma_Y^2=9 and σXY=3\sigma_{XY}=3. Then


M(t1,t2)=exp⁡ ⁣(2t1−t2+12(4t12+6t1t2+9t22)),M(t_1,t_2)=\exp\!\left(2t_1-t_2+\tfrac12\left(4t_1^2+6t_1t_2+9t_2^2\right)\right),


since 2σXY=62\sigma_{XY}=6.


Marginal. M(t1,0)=exp⁡(2t1+2t12)=exp⁡(2t1+12⋅4t12)M(t_1,0)=\exp(2t_1+2t_1^2)=\exp(2t_1+\tfrac12\cdot4t_1^2), the MGF of N(2,4)N(2,4).


Moments. With g=2t1−t2+2t12+3t1t2+92t22g=2t_1-t_2+2t_1^2+3t_1t_2+\tfrac92t_2^2 we get g1(0)=2=E[X]g_1(0)=2=E[X], g2(0)=−1=E[Y]g_2(0)=-1=E[Y] and g12=3g_{12}=3, so


E[XY]=g1g2+g12=(2)(−1)+3=1,Cov⁡(X,Y)=1−(2)(−1)=3,E[XY]=g_1g_2+g_{12}=(2)(-1)+3=1, \qquad \operatorname{Cov}(X,Y)=1-(2)(-1)=3,


which recovers the σXY\sigma_{XY} we started from, a useful check that the coefficient matching was done correctly.

Habits that prevent the usual errors

  • Verify M(0)=1M(0)=1 before anything else. If it is not 1, the expression is not an MGF.
  • State the region where the MGF is finite, and confirm it contains a neighbourhood of the origin.
  • To decide independence, look for factorisation of MM into a function of t1t_1 times a function of t2t_2. When M=egM=e^{g}, apply the test to the exponent: factorisation requires g=a(t1)+b(t2)g=a(t_1)+b(t_2), which holds exactly when g12≡0g_{12}\equiv0, so dependence is shown by a term of gg that blocks that additive split. Do not call et1+t2e^{t_1+t_2} inseparable on sight, it equals et1et2e^{t_1}e^{t_2}; what settles the matter is that inside an exponent it contributes g12≠0g_{12}\neq0. In the bivariate normal above g12=σ12g_{12}=\sigma_{12}, which is why there, and not for distributions in general, a zero covariance already forces factorisation.
  • Do not read a covariance straight off a coefficient without checking the surrounding factors; compute g12(0)g_{12}(0) instead.

Let X=(X1,X2)X=(X_1,X_2) be a random vector. Which statement gives the joint moment generating function of XX and the condition under which it is usable?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A random vector (X,Y)(X,Y) has joint moment generating function

M(t1,t2)=exp⁡ ⁣(3t1+5t2+2t12+t1t2+4t22),M(t_1,t_2)=\exp\!\left(3t_1+5t_2+2t_1^2+t_1t_2+4t_2^2\right),

finite for all real (t1,t2)(t_1,t_2).

Find E[XY]E[XY].

Give your answer as a number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A random vector (X,Y)(X,Y) taking values in the non-negative integers has joint moment generating function

M(t1,t2)=exp⁡ ⁣(4(et1+t2−1)+2(et1−1)),M(t_1,t_2)=\exp\!\left(4\left(e^{t_1+t_2}-1\right)+2\left(e^{t_1}-1\right)\right),

finite for all real (t1,t2)(t_1,t_2).

Find Cov⁡(X,Y)\operatorname{Cov}(X,Y).

Give your answer as a number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors