Multivariate Moment Generating Functions
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) and t=(t1,…,tk),
At t=0 this is E[e0]=1 for every distribution, so finiteness at the origin is automatic and tells you nothing. The condition that matters is that MX(t) be finite for all t 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
Setting t2=⋯=tk=0 removes those variables from the exponent, leaving exactly the marginal transform.
2. Moments, by partial differentiation at the origin
In particular E[X1X2]=∂2M/∂t1∂t2 at the origin, and then
Most MGFs you meet have the form M=eg. Differentiating twice gives a formula worth memorising:
and since g(0)=0 whenever M(0)=1, evaluating at the origin gives simply E[X1X2]=g1g2+g12 with everything evaluated at 0. The covariance is then just g12(0), because g1(0)=E[X1] and g2(0)=E[X2].
3. Independence, by factorisation
X1 and X2 are independent if and only if
for all (t1,t2) 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,…,ak, put S=∑iaiXi. Then
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
Reading parameters off such an expression is a matter of matching coefficients, and the factor of 21 and the factor of 2 on the cross term are where mistakes happen.
Worked example
Let (X,Y) be bivariate normal with μ=(2,−1), σX2=4, σY2=9 and σXY=3. Then
since 2σXY=6.
Marginal. M(t1,0)=exp(2t1+2t12)=exp(2t1+21⋅4t12), the MGF of N(2,4).
Moments. With g=2t1−t2+2t12+3t1t2+29t22 we get g1(0)=2=E[X], g2(0)=−1=E[Y] and g12=3, so
which recovers the σXY we started from, a useful check that the coefficient matching was done correctly.
Habits that prevent the usual errors
- Verify M(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 M into a function of t1 times a function of t2. When M=eg, apply the test to the exponent: factorisation requires g=a(t1)+b(t2), which holds exactly when g12≡0, so dependence is shown by a term of g that blocks that additive split. Do not call et1+t2 inseparable on sight, it equals et1et2; what settles the matter is that inside an exponent it contributes g12=0. In the bivariate normal above g12=σ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) instead.
A random vector (X,Y) has joint moment generating function
finite for all real (t1,t2).
Find E[XY].
Give your answer as a number.
A random vector (X,Y) taking values in the non-negative integers has joint moment generating function
finite for all real (t1,t2).
Find Cov(X,Y).
Give your answer as a number.