St · Statistics & Probability

What Is the MGF of a Double Exponential Random Variable?

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify the parameterization

    Use the Laplace density with location μ and scale b, or rate λ = 1/b.

  2. 2. Set up the expectation

    Integrate e to the power tx against the density, splitting at the location where the absolute value changes.

  3. 3. Check convergence

    The exponential tails require |t| < 1/b; outside this interval the MGF is infinite.

  4. 4. Simplify and verify

    The result is e^(μt)/(1 − b²t²); its derivatives give the mean and variance.

“Double exponential” most commonly means the Laplace distribution, whose density has exponential tails on both sides of its center. The moment-generating function (MGF) depends on the distribution’s location and scale, so it helps to state the parameterization before giving the formula.

For a Laplace random variable XX with location μ\mu and scale b>0b>0, the MGF is

MX(t)=eμt1−b2t2,∣t∣<1b.M_X(t)=\frac{e^{\mu t}}{1-b^2t^2},\qquad |t|<\frac{1}{b}.

The interval matters: outside it, the expectation defining the MGF diverges. If the distribution is instead written using rate λ=1/b\lambda=1/b, the formula for a location-zero variable is λ2/(λ2−t2)\lambda^2/(\lambda^2-t^2), valid for ∣t∣<λ|t|<\lambda.

Deriving the MGF

The Laplace density with location μ\mu and scale bb is

fX(x)=12bexp⁡(−∣x−μ∣b),−∞<x<∞.f_X(x)=\frac{1}{2b}\exp\left(-\frac{|x-\mu|}{b}\right),\qquad -\infty<x<\infty.

First take μ=0\mu=0 and write λ=1/b\lambda=1/b. Then fX(x)=λ2e−λ∣x∣f_X(x)=\frac{\lambda}{2}e^{-\lambda|x|}. By definition, MX(t)=E[etX]M_X(t)=\mathbb{E}[e^{tX}]. Split the integral at zero, where the expression for ∣x∣|x| changes:

MX(t)=λ2(∫−∞0e(t+λ)x dx+∫0∞e(t−λ)x dx)=λ2(1t+λ+1λ−t)=λ2λ2−t2.\begin{aligned} M_X(t) &=\frac{\lambda}{2}\left(\int_{-\infty}^{0}e^{(t+\lambda)x}\,dx+\int_{0}^{\infty}e^{(t-\lambda)x}\,dx\right)\\ &=\frac{\lambda}{2}\left(\frac{1}{t+\lambda}+\frac{1}{\lambda-t}\right)\\ &=\frac{\lambda^2}{\lambda^2-t^2}. \end{aligned}

The first integral converges only when t+λ>0t+\lambda>0, and the second only when t−λ<0t-\lambda<0. Together these conditions give −λ<t<λ-\lambda<t<\lambda. At either endpoint, one tail integral also diverges, so the MGF is not finite there.

For a nonzero location, write X=μ+YX=\mu+Y, where YY is a centered Laplace variable with the same scale. Since etX=eμtetYe^{tX}=e^{\mu t}e^{tY}, the MGF is multiplied by eμte^{\mu t}. Replacing λ\lambda with 1/b1/b gives the stated location-scale form.

Worked example

Suppose XX has a centered double exponential distribution with rate λ=2\lambda=2. Its scale is b=1/2b=1/2, and

MX(t)=44−t2,∣t∣<2.M_X(t)=\frac{4}{4-t^2},\qquad |t|<2.

At t=1t=1, which is inside the domain,

MX(1)=44−1=43.M_X(1)=\frac{4}{4-1}=\frac{4}{3}.

The first two derivatives provide a useful check. For a centered distribution, MX′(0)=E[X]M_X'(0)=\mathbb{E}[X] and MX′′(0)=E[X2]M_X''(0)=\mathbb{E}[X^2]. Here the mean is 00 and the variance is MX′′(0)=2/λ2=1/2M_X''(0)=2/\lambda^2=1/2. More generally, a Laplace variable with scale bb has mean μ\mu and variance 2b22b^2.

Common parameterizations and interpretations

ConventionDensityMGF and domain
Location-scale$\frac{1}{2b}e^{-x-\mu
Centered, rate λ\lambda$\frac{\lambda}{2}e^{-\lambdax

Another common construction is the difference of two independent exponential random variables with the same rate λ\lambda. If U,V∼Exp⁡(λ)U,V\sim\operatorname{Exp}(\lambda) independently, then U−VU-V has the centered Laplace density above. Its MGF is also the product of the MGFs of UU and −V-V:

λλ−t⋅λλ+t=λ2λ2−t2,∣t∣<λ.\frac{\lambda}{\lambda-t}\cdot\frac{\lambda}{\lambda+t}=\frac{\lambda^2}{\lambda^2-t^2},\qquad |t|<\lambda.

This agrees with the direct integration. If “double exponential” is being used for a different construction, such as a sum or a distribution with unequal tail rates, identify its density first; the MGF can differ.

Common mistakes

  • Dropping the domain: A rational expression alone does not describe the full MGF. State the interval where the expectation is finite.
  • Mixing scale and rate: Scale bb and rate λ\lambda are reciprocals. The denominator is 1−b2t21-b^2t^2 in scale form and λ2−t2\lambda^2-t^2 in rate form.
  • Forgetting the location: A shifted Laplace variable has the additional factor eμte^{\mu t}.
  • Using the wrong sign: For the difference of independent exponentials, use the MGF of −V-V with argument −t-t; this produces the factor λ/(λ+t)\lambda/(\lambda+t), not λ/(λ−t)\lambda/(\lambda-t) twice.

References

  1. Continuous Univariate Distributions, Volume 1 — Norman L. Johnson, Samuel Kotz, and N. Balakrishnan
  2. Statistical Inference — George Casella and Roger L. Berger

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.