Laplace Distribution Calculator

Laplace Distribution Calculator

Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Probability density f(x) at x = -5
0.000565
101 points generated
x Probability density f(x)
-5 0.00056464
-4.9 0.00065134
-4.8 0.00075137
-4.7 0.00086675
-4.6 0.00099985
-4.5 0.0011534
-4.4 0.00133052
-4.3 0.00153484
-4.2 0.00177054
-4.1 0.00204243
-4 0.00235608
-3.9 0.00271789
-3.8 0.00313526
-3.7 0.00361672
-3.6 0.00417213
-3.5 0.00481282
-3.4 0.0055519
-3.3 0.00640448
-3.2 0.00738798
-3.1 0.00852252
-3 0.00983128
-2.9 0.01134102
-2.8 0.0130826
-2.7 0.01509163
-2.6 0.01740917
-2.5 0.02008261
-2.4 0.0231666
-2.3 0.02672418
-2.2 0.03082808
-2.1 0.03556219
-2 0.0410233
-1.9 0.04732304
-1.8 0.0545902
-1.7 0.06297335
-1.6 0.07264385
-1.5 0.0837994
-1.4 0.09666806
-1.3 0.11151289
-1.2 0.12863737
-1.1 0.14839156
-1 0.17117931
-0.9 0.19746646
-0.8 0.2277904
-0.7 0.26277103
-0.6 0.30312346
-0.5 0.34967261
-0.4 0.40337009
-0.3 0.46531361
-0.2 0.5367695
-0.1 0.6191985
0 0.71428571
0.1 0.6191985
0.2 0.5367695
0.3 0.46531361
0.4 0.40337009
0.5 0.34967261
0.6 0.30312346
0.7 0.26277103
0.8 0.2277904
0.9 0.19746646
1 0.17117931
1.1 0.14839156
1.2 0.12863737
1.3 0.11151289
1.4 0.09666806
1.5 0.0837994
1.6 0.07264385
1.7 0.06297335
1.8 0.0545902
1.9 0.04732304
2 0.0410233
2.1 0.03556219
2.2 0.03082808
2.3 0.02672418
2.4 0.0231666
2.5 0.02008261
2.6 0.01740917
2.7 0.01509163
2.8 0.0130826
2.9 0.01134102
3 0.00983128
3.1 0.00852252
3.2 0.00738798
3.3 0.00640448
3.4 0.0055519
3.5 0.00481282
3.6 0.00417213
3.7 0.00361672
3.8 0.00313526
3.9 0.00271789
4 0.00235608
4.1 0.00204243
4.2 0.00177054
4.3 0.00153484
4.4 0.00133052
4.5 0.0011534
4.6 0.00099985
4.7 0.00086675
4.8 0.00075137
4.9 0.00065134
5 0.00056464

What is the Laplace distribution?

The Laplace distribution, also called the double-exponential distribution, is a continuous probability distribution that looks like two exponential curves placed back to back at a central peak. It is governed by two numbers: a location parameter a (the mean, median and mode all coincide there) and a scale parameter b (which must be greater than zero and controls how quickly the tails decay). It appears in signal processing, robust statistics, Bayesian LASSO priors and models where data have heavier tails than the normal distribution.

Symmetric Laplace probability density curve with a sharp peak at the center
The Laplace density \(f(x)\) forms a sharp peak at the location \(a\) and decays exponentially on both sides.

How to use this calculator

Pick which quantity you want with the Function selection radio: the probability density f, the lower cumulative probability P (the CDF), or the upper cumulative probability Q. Enter the location parameter a and a positive scale parameter b. Then define the x sequence with three fields: x initial value, x increment and repeat count. The points are generated as \(x_k = x_{\text{Initial}} + k\cdot x_{\text{Step}}\) for k = 0 to count−1. The tool evaluates the chosen function at every point, draws a line graph and lists each (x, value) pair in a table. The hero value shown is the function at the first x.

The formula explained

The density is $$f(x,a,b) = \frac{1}{2\,\text{b}}\, e^{-\frac{\left| x - \text{a} \right|}{\text{b}}}$$ The absolute value makes the curve symmetric about a. Integrating gives the CDF: for x < a, \(P = 0.5\cdot e^{(x-a)/b}\); for x ≥ a, \(P = 1 - 0.5\cdot e^{-(x-a)/b}\). The upper tail is simply \(Q = 1 - P\). At the peak x = a you get \(f = \frac{1}{2b}\) and \(P = Q = 0.5\).

Advertisement
Laplace density curve with shaded left tail area representing lower cumulative probability
The lower CDF \(P(x)\) is the shaded area to the left, and the upper CDF \(Q(x)\) is the remaining right-side area.

Worked example

With a = 0, b = 0.7 evaluated at x = 1: $$f = \frac{1}{1.4}\cdot e^{-1/0.7} = 0.714286 \times 0.239651 \approx 0.17118$$ Since x ≥ a, \(P = 1 - 0.5\cdot e^{-1.42857} = 0.88017\) and \(Q = 0.11983\). Notice \(P + Q = 1\) exactly, a handy self-check.

FAQ

Why must b be positive? The density divides by 2b and the exponent uses b; if b ≤ 0 the function is undefined, so the calculator rejects it.

What does Q represent? \(Q(x)\) is the probability that a random value exceeds x, i.e. the right-tail or survival probability, equal to \(1 - P(x)\).

How many points can I plot? Any positive integer up to 1000. The defaults (start −5, step 0.1, 101 points) span x from −5 to +5.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators →