St · Statistics & Probability

What Is the Moment Generating Function of the Laplace Distribution?

Published By the 9to5Science editorial team

At a glance

  1. 1. Set the parameters

    Write the Laplace distribution using location μ and positive scale b.

  2. 2. Use the density

    Substitute the density into E[e^{tX}] and split the integral at the location.

  3. 3. Check convergence

    Both tail integrals converge only when −1/b < t < 1/b.

  4. 4. Simplify the result

    Combine the integrals to obtain e^{μt}/(1 − b²t²) on that interval.

Advertisement

The Laplace distribution is also called the double-exponential distribution. Its moment generating function (MGF) depends on both its location and scale, so it helps to state the parameterization before using a formula.

For location μ∈R\mu\in\mathbb{R} and scale b>0b>0, the density is

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

With this convention, the MGF is

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

The restriction on tt is part of the answer: outside this interval, the defining expectation is infinite. The centered, unit-scale case has μ=0\mu=0 and b=1b=1, giving MX(t)=1/(1−t2)M_X(t)=1/(1-t^2) for ∣t∣<1|t|<1.

Deriving the MGF

Let Z=X−μZ=X-\mu. Then ZZ has density (2b)−1e−∣z∣/b(2b)^{-1}e^{-|z|/b}, and X=Z+μX=Z+\mu. Therefore

MX(t)=eμt E[etZ].M_X(t)=e^{\mu t}\,\mathbb{E}[e^{tZ}].

Split the integral for ZZ at zero, where the absolute-value expression changes:

E[etZ]=12b(∫−∞0e(t+1/b)z dz+∫0∞e(t−1/b)z dz).\begin{aligned} \mathbb{E}[e^{tZ}] &=\frac{1}{2b}\left(\int_{-\infty}^{0}e^{(t+1/b)z}\,dz+\int_{0}^{\infty}e^{(t-1/b)z}\,dz\right). \end{aligned}

For the left-tail integral to converge, t+1/bt+1/b must be positive. For the right-tail integral to converge, t−1/bt-1/b must be negative. Together these conditions give −1/b<t<1/b-1/b<t<1/b. Within that interval, evaluate each integral:

E[etZ]=12b(1t+1/b+11/b−t)=12(11+bt+11−bt)=11−b2t2.\begin{aligned} \mathbb{E}[e^{tZ}] &=\frac{1}{2b}\left(\frac{1}{t+1/b}+\frac{1}{1/b-t}\right)\\ &=\frac{1}{2}\left(\frac{1}{1+bt}+\frac{1}{1-bt}\right)\\ &=\frac{1}{1-b^2t^2}. \end{aligned}

Multiplying by eμte^{\mu t} gives the stated MGF. At either endpoint, one of the tail integrals fails to converge; beyond an endpoint, it also diverges. Thus the formula is not a finite MGF outside the open interval.

Worked example

Suppose XX has a Laplace distribution with location μ=2\mu=2 and scale b=3b=3. Substituting these values gives

MX(t)=e2t1−9t2,−13<t<13.M_X(t)=\frac{e^{2t}}{1-9t^2},\qquad -\frac{1}{3}<t<\frac{1}{3}.

The interval matters as much as the expression. For example, t=0.2t=0.2 is in the domain, so the MGF is finite there; t=1/3t=1/3 is not, because the denominator is zero and the corresponding defining integral diverges.

You can check the mean and variance by differentiating at zero. The first derivative gives MX′(0)=2M_X'(0)=2, so E[X]=2\mathbb{E}[X]=2. The second derivative at zero is MX′′(0)=22M_X''(0)=22, hence

Var⁡(X)=MX′′(0)−[MX′(0)]2=22−4=18.\operatorname{Var}(X)=M_X''(0)-[M_X'(0)]^2=22-4=18.

In general, a Laplace(μ,b)(\mu,b) random variable has mean μ\mu and variance 2b22b^2.

Other parameter conventions

Some references write the density using a rate parameter λ>0\lambda>0:

fX(x)=λ2e−λ∣x−μ∣.f_X(x)=\frac{\lambda}{2}e^{-\lambda|x-\mu|}.

This is the same distribution with b=1/λb=1/\lambda. In that notation,

MX(t)=eμtλ2λ2−t2,∣t∣<λ.M_X(t)=\frac{e^{\mu t}\lambda^2}{\lambda^2-t^2},\qquad |t|<\lambda.

Check the density or the author’s definition before choosing which formula to use. In particular, bb is the scale, not the rate.

Common mistakes

  • Omitting the domain: The algebraic expression has singularities at t=±1/bt=\pm1/b, but the MGF is defined only for ∣t∣<1/b|t|<1/b; it does not become finite again outside them.
  • Confusing scale and rate: If the density contains e−∣x−μ∣/be^{-|x-\mu|/b}, then bb is the scale. If it contains e−λ∣x−μ∣e^{-\lambda|x-\mu|}, then the scale is 1/λ1/\lambda.
  • Assuming all moments require an MGF for every tt: The Laplace distribution has finite absolute moments of every integer order, even though its MGF exists only on a limited interval around zero. An MGF need not be finite for all real inputs.

References

  1. Continuous Univariate Distributions, Volume 1 — N. L. Johnson, S. Kotz, and N. Balakrishnan
  2. A First Course in Probability — Sheldon Ross

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