# Laplace distribution

Parameters Probability density function Cumulative distribution functionCumulative distribution plots of Laplace distributions ${\displaystyle \mu \,}$ location (real)${\displaystyle b>0\,}$ scale (real) ${\displaystyle x\in (-\infty ;+\infty )\,}$ ${\displaystyle {\frac {1}{2\,b}}\exp \left(-{\frac {|x-\mu |}{b}}\right)\,}$ see text ${\displaystyle \mu \,}$ ${\displaystyle \mu \,}$ ${\displaystyle \mu \,}$ ${\displaystyle 2\,b^{2}}$ ${\displaystyle 0\,}$ ${\displaystyle 3\,}$ ${\displaystyle \log _{2}(2\,e\,b)}$ ${\displaystyle {\frac {\exp(\mu \,t)}{1-b^{2}\,t^{2}}}\,\!}$ for ${\displaystyle |t|<1/b\,}$ ${\displaystyle {\frac {\exp(\mu \,i\,t)}{1+b^{2}\,t^{2}}}\,\!}$

In probability theory and statistics, the Laplace distribution is a continuous probability distribution named after Pierre-Simon Laplace. It is also known as the double exponential distribution, because it can be thought of as two exponential distributions (with an additional location parameter) spliced together back-to-back. The difference between two independent identically distributed exponential random variables is governed by a Laplace distribution, as is a Brownian motion evaluated at an exponentially distributed random time.

## Characterization

### Probability density function

A random variable has a Laplace(μ, b) distribution if its probability density function is

${\displaystyle f(x|\mu ,b)={\frac {1}{2b}}\exp \left(-{\frac {|x-\mu |}{b}}\right)\,\!}$
${\displaystyle ={\frac {1}{2b}}\left\{{\begin{matrix}\exp \left(-{\frac {\mu -x}{b}}\right)&{\mbox{if }}x<\mu \\[8pt]\exp \left(-{\frac {x-\mu }{b}}\right)&{\mbox{if }}x\geq \mu \end{matrix}}\right.}$

Here, μ is a location parameter and b > 0 is a scale parameter. If μ = 0 and b = 1, the positive half-line is exactly an exponential distribution scaled by 1/2.

The pdf of the Laplace distribution is also reminiscent of the normal distribution; however, whereas the normal distribution is expressed in terms of the squared difference from the mean μ, the Laplace density is expressed in terms of the absolute difference from the mean. Consequently the Laplace distribution has fatter tails than the normal distribution.

### Cumulative distribution function

The Laplace distribution is easy to integrate (if one distinguishes two symmetric cases) due to the use of the absolute value function. Its cumulative distribution function is as follows:

 ${\displaystyle F(x)\,}$ ${\displaystyle =\int _{-\infty }^{x}\!\!f(u)\,\mathrm {d} u}$ ${\displaystyle =\left\{{\begin{matrix}&{\frac {1}{2}}\exp \left(-{\frac {\mu -x}{b}}\right)&{\mbox{if }}x<\mu \\[8pt]1-\!\!\!\!&{\frac {1}{2}}\exp \left(-{\frac {x-\mu }{b}}\right)&{\mbox{if }}x\geq \mu \end{matrix}}\right.}$ ${\displaystyle =0.5\,[1+\operatorname {sgn} (x-\mu )\,(1-\exp(-|x-\mu |/b))].}$

The inverse cumulative distribution function is given by

${\displaystyle F^{-1}(p)=\mu -b\,\operatorname {sgn} (p-0.5)\,\ln(1-2|p-0.5|).}$

## Generating Laplace variates

Given a random variate U drawn from the uniform distribution in the interval (-1/2, 1/2], the variate

${\displaystyle X=\mu -b\,\operatorname {sgn}(U)\,\ln(1-2|U|)}$

has a Laplace distribution with parameters μ and b. This follows from the inverse cumulative distribution function given above.

A Laplace(0, b) variate can also be generated as the difference of two i.i.d. Exponential(1/b) variates. Equivalently, a Laplace(0, 1) variate can be generated as the logarithm of the ratio of two iid uniform variates.

## Parameter estimation

Given N independent and identically distributed samples x1, x2, ..., xN, estimator of ${\displaystyle \mu }$, ${\displaystyle {\hat {\mu }}}$ is the sample median,[1] and the estimator of b is

${\displaystyle {\hat {b}}={\frac {1}{N}}\sum _{i=1}^{N}|x_{i}-{\hat {\mu }}|,}$

using the maximum likelihood estimator.

## Moments

${\displaystyle \mu _{r}'={\bigg (}{\frac {1}{2}}{\bigg )}\sum _{k=0}^{r}{\bigg [}{\frac {r!}{k!(r-k)!}}b^{k}\mu ^{(r-k)}k!\{1+(-1)^{k}\}{\bigg ]}}$

## Related distributions

• If ${\displaystyle X\sim \mathrm {Laplace} (0,b)\,}$ then ${\displaystyle |X|\sim \mathrm {Exponential} (b^{-1})\,}$ is an exponential distribution.
• If ${\displaystyle X\sim \mathrm {Exponential} (\lambda )\,}$ and ${\displaystyle Y\sim \mathrm {Bernoulli} (0.5)\,}$ independent of ${\displaystyle X\,}$, then ${\displaystyle X(2Y-1)\sim \mathrm {Laplace} (0,\lambda ^{-1})\,}$ .
• If ${\displaystyle X_{1}\sim \mathrm {Exponential} (\lambda _{1})\,}$ and ${\displaystyle X_{2}\sim \mathrm {Exponential} (\lambda _{2})\,}$ independent of ${\displaystyle X_{1}\,}$, then ${\displaystyle \lambda _{1}X_{1}-\lambda _{2}X_{2}\sim \mathrm {Laplace} \left(0,1\right)\,}$

1. Robert M. Norton (1984). "The Double Exponential Distribution: Using Calculus to Find a Maximum Likelihood Estimator". The American Statistician. 38 (2): 135&ndash, 136. Unknown parameter |month= ignored (help)