Your Equation

Library / Probability distributions / PRD-30

Probability distributions

Laplace error: probability density

Probability density of a symmetric error with exponential tails on both sides of a location m, with scale s.

Ref
PRD-30
Rev
v1
Field
Probability distributions
Result
f [1/mm]

The Laplace density is a two-sided exponential spike centred on the location m. It falls as e^(−|x − m|/s), so it has a sharp peak and heavier tails than a normal curve with the same variance. The density has units of 1/x.

Probability density of a symmetric error with exponential tails on both sides of a location m, with scale s.

Calculator

Solve for
1/mm
mm
−510
mm
0.510
mm
−512
  • Peak density, 1/(2s)0.1667 1/mm
  • Standard deviation, s√24.243 mm
  • Distance of the reading from the location, |x − m|2 mm

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Probability density (1/mm) current value 0.08557 1/mm
mLocation mKey driver
0.00830.167
xReading x
0.005950.156
sScale s
0.01830.0919
  • At 4 mm the density is 0.08557 per mm, against a peak of 0.1667 per mm at the location.
  • The density halves every 2.08 mm from the centre, which is the exponential tail at work.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (1/mm)Local stepChange in result
m Location m−5 to 10 mm0.0082980.16670.1584+0.3 mm+10.5 %
x Reading x−5 to 12 mm0.0059460.15590.15+0.34 mm−10.7 %
s Scale s0.5 to 10 mm0.018320.091890.07358+10%−3.41 %

Sweep of Reading x

Reading x (mm)Probability density (1/mm)
−50.01616
−2.8750.03282
−0.750.06664
1.3750.1353
3.50.1011
5.6250.04978
7.750.02452
9.8750.01207
120.005946

Sweep one variable

Probability density (1/mm)Hover, touch, or use the arrow keys on the chart
00.050.10.15 −404812 Reading x (mm) now 0.08557

Variables and how each one contributes

f

Probability density

Result · 1/mm

What the equation gives you. Everything else feeds it.

m

Location m

mm · typical −5 to 10

The location, in mm: the centre of the errors and their median. Shifts the whole distribution without changing its shape. Raising it by 10 % (to 2.2) moves the result by +6.89 %, from 0.08557 to 0.09147 1/mm.

s

Scale s

mm · typical 0.5 to 10

The scale, in mm. The mean absolute error equals s. Widens the distribution and lowers the peak. Raising it by 10 % (to 3.3) moves the result by −3.41 %, from 0.08557 to 0.08265 1/mm.

x

Reading x

mm · typical −5 to 12

The reading, in mm, at which the result is read. Moves the point at which the density or probability is read. Raising it by 10 % (to 4.4) moves the result by −12.5 %, from 0.08557 to 0.07489 1/mm.

Worked example with the values above

  1. Distance from the location: |x − m| = |4 − 2| = 2 mm.
  2. Exponential factor: e^(−2/3) = 0.51342.
  3. f = that / (2 × 3) = 0.08557 per mm.

Assumptions and limits

  • Errors are independent, symmetric about m and have exponential tails.
  • The scale is positive and comes from data for the same measurement process.

Common mistakes

  • Using a normal model when outliers are more common than it predicts, which understates the tails.
  • Mixing up the scale s with the standard deviation: the Laplace standard deviation is s√2.
  • Reading the density at a point as a probability.

Statistics and uncertainty

The inputs are parameters, usually fitted to data, and their estimation error carries into the result. The probability or density is a smooth function of the parameters, so the sweep chart shows how sensitive it is: where the curve is steep, a small error in a parameter makes a large difference. The formula treats the parameters as exact, so it gives no confidence interval on its own.

Where it is used

  • Measurement errors and residuals with more large excursions than a normal curve gives.
  • The noise model behind least-absolute-deviation (L1) fitting.

Maths you need

  • Absolute value: the size of a number, ignoring its sign
  • Exponential function: e raised to a power

Related formulas

Practise this formula