Laplace distribution

From testwiki
Revision as of 20:37, 25 February 2025 by imported>Minex57 (Undid revision 1277559473 by 197.49.162.97 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Probability distribution In probability theory and statistics, the Laplace distribution is a continuous probability distribution named after Pierre-Simon Laplace. It is also sometimes called the double exponential distribution, because it can be thought of as two exponential distributions (with an additional location parameter) spliced together along the abscissa, although the term is also sometimes used to refer to the Gumbel distribution. 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 timeTemplate:Citation needed. Increments of Laplace motion or a variance gamma process evaluated over the time scale also have a Laplace distribution.

Definitions

Probability density function

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

f(xμ,b)=12bexp(|xμ|b),

where μ is a location parameter, and b>0, which is sometimes referred to as the "diversity", is a scale parameter. If μ=0 and b=1, the positive half-line is exactly an exponential distribution scaled by 1/2.[1]

The probability density function 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. It is a special case of the generalized normal distribution and the hyperbolic distribution. Continuous symmetric distributions that have exponential tails, like the Laplace distribution, but which have probability density functions that are differentiable at the mode include the logistic distribution, hyperbolic secant distribution, and the Champernowne 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:

F(x)=xf(u)du={12exp(xμb)if x<μ112exp(xμb)if xμ=12+12sgn(xμ)(1exp(|xμ|b)).

The inverse cumulative distribution function is given by

F1(p)=μbsgn(p0.5)ln(12|p0.5|).

Properties

Moments

μr=(12)k=0r[r!(rk)!bkμ(rk){1+(1)k}].
  • If XLaplace(μ,b) then kX+cLaplace(kμ+c,|k|b).
  • If XLaplace(0,1) then bXLaplace(0,b).
  • If XLaplace(0,b) then |X|Exponential(b1) (exponential distribution).
  • If X,YExponential(λ) then XYLaplace(0,λ1)
  • If XLaplace(μ,b) then |Xμ|Exponential(b1).
  • If XLaplace(μ,b) then XEPD(μ,b,1) (exponential power distribution).
  • If X1,...,X4N(0,1) (normal distribution) then X1X2X3X4Laplace(0,1) and (X12X22+X32X42)/2Laplace(0,1).
  • If XiLaplace(μ,b) then 2bi=1n|Xiμ|χ2(2n) (chi-squared distribution).
  • If X,YLaplace(μ,b) then |Xμ||Yμ|F(2,2). (F-distribution)
  • If X,YU(0,1) (uniform distribution) then log(X/Y)Laplace(0,1).
  • If XExponential(λ) and YBernoulli(0.5) (Bernoulli distribution) independent of X, then X(2Y1)Laplace(0,λ1).
  • If XExponential(λ) and YExponential(ν) independent of X, then λXνYLaplace(0,1)
  • If X has a Rademacher distribution and YExponential(λ) then XYLaplace(0,1/λ).
  • If VExponential(1) and ZN(0,1) independent of V, then X=μ+b2VZLaplace(μ,b).
  • If XGeometricStable(2,0,λ,0) (geometric stable distribution) then XLaplace(0,λ).
  • The Laplace distribution is a limiting case of the hyperbolic distribution.
  • If X|YN(μ,Y2) with YRayleigh(b) (Rayleigh distribution) then XLaplace(μ,b). Note that if YRayleigh(b), then Y2Gamma(1,2b2) with E(Y2)=2b2, which in turn equals the exponential distribution Exp(1/(2b2)).
  • Given an integer n1, if Xi,YiΓ(1n,b) (gamma distribution, using k,θ characterization), then i=1n(μn+XiYi)Laplace(μ,b) (infinite divisibility)[2]
  • If X has a Laplace distribution, then Y = eX has a log-Laplace distribution; conversely, if X has a log-Laplace distribution, then its logarithm has a Laplace distribution.

Probability of a Laplace being greater than another

Let X,Y be independent laplace random variables: XLaplace(μX,bX) and YLaplace(μY,bY), and we want to compute P(X>Y).

The probability of P(X>Y) can be reduced (using the properties below) to P(μ+bZ1>Z2), where Z1,Z2Laplace(0,1). This probability is equal to

P(μ+bZ1>Z2)={b2eμ/beμ2(b21),when μ<01b2eμ/beμ2(b21),when μ>0

When b=1, both expressions are replaced by their limit as b1:

P(μ+Z1>Z2)={eμ(2μ)4,when μ<01eμ(2+μ)4,when μ>0

To compute the case for μ>0, note that P(μ+Z1>Z2)=1P(μ+Z1<Z2)=1P(μZ1>Z2)=1P(μ+Z1>Z2)

since ZZ when ZLaplace(0,1) .

Relation to the exponential distribution

A Laplace random variable can be represented as the difference of two independent and identically distributed (iid) exponential random variables.[2] One way to show this is by using the characteristic function approach. For any set of independent continuous random variables, for any linear combination of those variables, its characteristic function (which uniquely determines the distribution) can be acquired by multiplying the corresponding characteristic functions.

Consider two i.i.d random variables X,YExponential(λ). The characteristic functions for X,Y are

λit+λ,λit+λ

respectively. On multiplying these characteristic functions (equivalent to the characteristic function of the sum of the random variables X+(Y)), the result is

λ2(it+λ)(it+λ)=λ2t2+λ2.

This is the same as the characteristic function for ZLaplace(0,1/λ), which is

11+t2λ2.

Sargan distributions

Sargan distributions are a system of distributions of which the Laplace distribution is a core member. A pth order Sargan distribution has density[3][4]

fp(x)=12exp(α|x|)1+j=1pβjαj|x|j1+j=1pj!βj,

for parameters α0,βj0. The Laplace distribution results for p=0.

Statistical inference

Given n independent and identically distributed samples x1,x2,...,xn, the maximum likelihood (MLE) estimator of μ is the sample median,[5]

μ^=med(x).

The MLE estimator of b is the mean absolute deviation from the median,Template:Citation needed

b^=1ni=1n|xiμ^|.

revealing a link between the Laplace distribution and least absolute deviations. A correction for small samples can be applied as follows:

b^*=b^n/(n2)

(see: exponential distribution#Parameter estimation).

Occurrence and applications

The Laplacian distribution has been used in speech recognition to model priors on DFT coefficients [6] and in JPEG image compression to model AC coefficients [7] generated by a DCT.

  • The addition of noise drawn from a Laplacian distribution, with scaling parameter appropriate to a function's sensitivity, to the output of a statistical database query is the most common means to provide differential privacy in statistical databases.
Fitted Laplace distribution to maximum one-day rainfalls [8]
The Laplace distribution, being a composite or double distribution, is applicable in situations where the lower values originate under different external conditions than the higher ones so that they follow a different pattern.[12]

Random variate generation

Template:Further

Given a random variable U drawn from the uniform distribution in the interval (1/2,1/2), the random variable

X=μbsgn(U)ln(12|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) random variables. Equivalently, Laplace(0,1) can also be generated as the logarithm of the ratio of two i.i.d. uniform random variables.

History

This distribution is often referred to as "Laplace's first law of errors". He published it in 1774, modeling the frequency of an error as an exponential function of its magnitude once its sign was disregarded. Laplace would later replace this model with his "second law of errors", based on the normal distribution, after the discovery of the central limit theorem.[13][14]

Keynes published a paper in 1911 based on his earlier thesis wherein he showed that the Laplace distribution minimised the absolute deviation from the median.[15]

See also

References

Template:Reflist

Template:ProbDistributions

  1. Template:Cite journal
  2. 2.0 2.1 Template:Cite book
  3. Everitt, B.S. (2002) The Cambridge Dictionary of Statistics, CUP. Template:Isbn
  4. Johnson, N.L., Kotz S., Balakrishnan, N. (1994) Continuous Univariate Distributions, Wiley. Template:Isbn. p. 60
  5. Template:Cite journal
  6. Template:Cite journal
  7. Template:Cite journal
  8. CumFreq for probability distribution fitting
  9. Template:Cite book
  10. Template:Cite journal
  11. Template:Cite book
  12. A collection of composite distributions
  13. Laplace, P-S. (1774). Mémoire sur la probabilité des causes par les évènements. Mémoires de l’Academie Royale des Sciences Presentés par Divers Savan, 6, 621–656
  14. Template:Cite journal Template:PD-notice
  15. Template:Cite journal