Laplace Distribution Calculator
Evaluate the double exponential density, mean and variance from a location and scale.
What it does
The Laplace distribution, also called the double exponential, is a continuous symmetric distribution with a pointed peak and heavier tails than the normal. It is used in robust statistics, signal processing and modelling differences where large deviations are more common than a normal model would suggest.
The density depends on a location mu and a positive scale b. It is one over two b times an exponential of minus the absolute distance from mu divided by b. The absolute value creates the sharp cusp at the centre and gives the two tails their exponential shape.
The mean is simply the location, and the variance is two times the scale squared. That means the scale parameter is not the standard deviation: the standard deviation is b times the square root of two. This is a frequent source of mistakes when comparing parameterisations.
The standard Laplace distribution sets mu to zero and b to one. Its density at zero is one half and it falls away symmetrically. The larger the scale, the flatter the peak and the more spread the tails.
This page reports the density at one value of x, along with the mean and variance. It does not compute cumulative probabilities or fit parameters to data.
How to use
- Enter the value x where you want the density.
- Enter the location parameter mu.
- Enter a positive scale b.
- Read the density at x.
- Read the mean and variance.
- Convert between scale and standard deviation if comparing with other sources.
Formula
- x
- Value where the density is evaluated.
- mu
- Location parameter, also the mean.
- b
- Positive scale parameter.
- f(x)
- Probability density at x.
The density is continuous everywhere but not differentiable at mu, which produces the characteristic peak. The absolute distance means the left and right tails have the same exponential decay rate.
Worked example
Example: x = 1 with location 0 and scale 1
Defaults: x 1, mu 0 and scale b 1.
- Distance from location: absolute value of 1 minus 0 is 1.
- Exponential term: exp(-1 / 1) = 0.3679.
- Divide by twice the scale: 0.3679 / 2 = 0.183940.
- Mean equals the location, 0.000.
- Variance is two times one squared, 2.000.
- The tool shows 0.183940, 0.000 and 2.000.
Reference table
| x | Density | Comment |
|---|---|---|
| 0 | 0.500000 | Peak at the location |
| 1 | 0.183940 | Default example |
| 2 | 0.067668 | Tail |
| 5 | 0.003369 | Far tail |
Limits
- Reports density, not interval probability.
- Uses the standard two parameter form.
- The scale is not the standard deviation.
- Does not fit parameters or compute quantiles.
Common mistakes
- Treating b as the standard deviation.
- Using a negative or zero scale.
- Reading density as probability.
- Expecting a smooth peak at the location.
- Confusing this with the normal distribution with the same variance.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the density at the location itself?
At x equal to mu, the exponential term is one and the density is one over two b, which is 0.500000 for the default scale.
What is the standard deviation for the default scale?
It is b times the square root of two, about 1.414, even though the variance is 2.000.
What if the scale is zero?
The tool returns the error Enter a positive scale b, because the density formula divides by that value.
Questions
What is the Laplace distribution?
A symmetric continuous distribution with a sharp peak and exponential tails, also called double exponential.
Where is it used?
In robust statistics, image processing, speech modelling and differences of exponential variables.
Is the scale the same as standard deviation?
No. The standard deviation is the scale times the square root of two.
What is the density at the peak?
One over twice the scale.
How does it differ from the normal distribution?
It has a sharper peak and heavier tails, so extreme values are more likely.
Does this tool compute probabilities?
No. It reports density. Probabilities require integration over an interval.
Sources
- NIST/SEMATECH e-Handbook: Double Exponential Distribution
- University of South Carolina statistics formula sheet