The double exponential, whose best estimate of the centre is the median.
The distribution whose best estimate is the median
The median is 4 and the mean 6.6. The Laplace likelihood prefers the median by 3.2 log units.
n = 10 — maximum-likelihood fit
Location = 4.000000, scale = 3.400000
The location estimate IS the sample median. The mean of this data is 6.600000, and putting it in the location instead lowers the log-likelihood from -29.169226 to -32.364453.
MLE location
4.000000
= the median
Sample mean
6.600000
what a normal fit would use
MLE scale b
3.400000
mean |x − median|
Log-likelihood gain
3.195227
median over mean
Evaluate the distribution directly
P(X ≤ 1.5000)
0.888435
cumulative
Density
0.111565
peak is 1/(2b)
Standard deviation
1.414214
b√2
Mean absolute deviation
1.000000
= b, exactly
The cusp at the centre is real, not a rendering artefact — the density is not differentiable there, because it is built from |x − μ| rather than from a square.
Below about one standard deviation the Laplace tail is LIGHTER than the normal’s — the sharp peak has to come from somewhere. Past two it overtakes, and the ratio keeps climbing: at four standard deviations the Laplace puts 55 times as much probability out there.
Maximising a Laplace likelihood is minimising the sum of ABSOLUTE deviations. The density carries |x − μ| in the exponent where a normal carries (x − μ)², so the log-likelihood is a sum of absolute errors rather than squared ones — and the median is exactly what minimises that, as the mean minimises the sum of squares. The two famous estimators are the same procedure applied to two different error models.
Which is where least-absolute-deviations regression comes from. Ordinary least squares assumes normal errors; minimising absolute residuals instead assumes Laplace ones. That is not a robustness trick bolted onto a model — it is a different, explicit claim about how the errors are distributed, and on data with occasional large misses it is the more honest one.
It is also the difference of two exponentials, and the noise in differential privacy. Subtract one exponential waiting time from another and the result is Laplace, which is why it appears wherever two independent delays are compared. Its other modern home is privacy: adding Laplace noise calibrated to a query’s sensitivity is the original mechanism for ε-differential privacy, chosen precisely because its tails decay exponentially rather than as a square.
What this tool shows
The maximum-likelihood estimate of a Laplace location is the sample MEDIAN, exactly as the normal’s is the mean. The tool fits your data and prints the log-likelihood at both, so the median’s win is a number rather than a claim. That single fact is where least-absolute-deviations regression comes from.
A maximum-likelihood fit to your data, with the log-likelihood at mean and median
PDF, CDF and quantiles for any location and scale
The scale b, which is exactly the mean absolute deviation
How much heavier the tail is than a normal with the same standard deviation
Where the sharp peak comes from, and why the density is not differentiable there
The link to least-absolute-deviations regression and differential privacy
MLE fit Median = location Tail ratio Any parameters
Absolute error, not squared. That changes the estimator.
Updated 12 September 2026 · Works in any browser, no installation
The Laplace distribution is two exponentials back to back: a sharp peak at the centre and tails that decay exponentially on both sides. Its density carries |x − μ| where a normal carries a square, so its log-likelihood is a sum of ABSOLUTE errors — and the median is what minimises that.
At a glance
Formula shown
The density is f(x) = e^(−|x − μ|/b) / (2b), with CDF ½e^((x−μ)/b) below μ and 1 − ½e^(−(x−μ)/b) above it. The mean, median and mode all equal μ. The variance is 2b², so the standard deviation is b√2, and the mean absolute deviation is exactly b. Maximum likelihood puts μ at the sample median and b at the mean absolute deviation from it. Excess kurtosis is exactly 3 — twice the normal’s peakedness.
Scenario support
Forecast errors, which are typically sharper-peaked and heavier-tailed than a normal; the difference of two exponential waiting times; LAD and quantile regression residuals; sparse-signal priors in compressed sensing; and the noise mechanism in differential privacy.
Educational estimate
Planning support from the values you enter — not professional advice.
Why the median falls out of the likelihood
The normal distribution makes the mean the best estimate of its centre. The Laplace makes the median. Both follow from the same one-line argument.
The log-likelihood is a sum of absolute deviations. The density has |x − μ| in the exponent, so maximising the likelihood over μ means minimising Σ|xᵢ − μ|.
The median is what minimises that sum. Exactly as the mean minimises Σ(xᵢ − μ)². Two famous estimators, one argument, two different error models.
The tool shows it rather than stating it. On the worked sample the log-likelihood at the median is −29.169 and at the mean −32.364. The median wins by 3.2 log units, and the verification suite confirms it wins on 400 of 400 random samples.
The scale estimate follows too: b is the mean absolute deviation from that median, which is the Laplace analogue of the standard deviation being the root mean squared deviation from the mean.
So “use the median, it is robust” has a precise version. The median is not a compromise or a safety measure here — it is the maximum-likelihood answer, given an explicit claim about how the errors are distributed.
Which is where least-absolute-deviations regression comes from
The same substitution, applied to a regression line rather than a single centre.
Ordinary least squares assumes normal errors. Minimising squared residuals IS maximising a normal likelihood, which is why OLS and the normal distribution always appear together.
Minimising absolute residuals assumes Laplace errors. Least-absolute-deviations regression is not a robustness patch bolted onto least squares; it is the maximum-likelihood fit under a different, explicit error model.
Which reframes the usual advice. “Use LAD when there are outliers” is really “use LAD when the errors have heavier tails than a normal” — a claim about the process, testable rather than tactical.
And it generalises to quantile regression. Weighting the absolute residuals asymmetrically fits a conditional quantile instead of a conditional median, which is the same machinery with one parameter added.
The cost is that there is no closed form. Least squares has normal equations; LAD needs linear programming, and the solution can be non-unique. That is the practical reason least squares dominates, not a statistical one.
Sharper peak, heavier tails — both at once
Matched on standard deviation, a Laplace is not simply “wider” than a normal. It is different in two directions simultaneously.
Inside about one standard deviation the Laplace tail is LIGHTER. The sharp peak concentrates probability near the centre, so there is less of it in the shoulders. The tool’s tail ratio plot starts below 1.
Past about two standard deviations it overtakes and keeps climbing. At four standard deviations the Laplace puts many times as much probability beyond the point as the normal does, and the ratio grows without limit.
Its excess kurtosis is exactly 3, against 0 for a normal — the standard summary of “peaked centre, heavy tails”, and one of the few distributions where the figure is a whole number.
The cusp at the centre is real. The density is not differentiable at μ, because it is built from an absolute value rather than a square. It is not a plotting artefact, and it is the visual signature of the whole family.
Which is why forecast errors are usually Laplace-shaped. Most forecasts are nearly right, a few are badly wrong, and almost none are moderately wrong — exactly the shape a normal cannot produce.
Where it comes from, and where it is used now
Three constructions and one modern application, all of which give the same distribution.
It is the difference of two independent exponentials. Which is why it appears wherever two independent waiting times are compared — arrival-time differences, clock offsets, timing jitter.
It is the prior behind L1 regularisation. Putting a Laplace prior on a regression coefficient and taking the maximum-a-posteriori estimate gives the lasso. The sharp peak at zero is what drives coefficients exactly to zero rather than merely shrinking them.
It is the noise mechanism in differential privacy. Adding Laplace noise scaled to a query’s sensitivity gives ε-differential privacy exactly, and the proof depends on the exponential decay: the ratio of densities at two nearby points is bounded, which a normal does not deliver.
And it predates the normal distribution’s dominance. Laplace proposed it as a law of errors before the least-squares tradition settled on the Gaussian, which is a reminder that the usual assumption was a choice.
Fitting one, and checking whether it belongs
The fit is the easiest in statistics. Deciding whether it is the right family takes more care.
Both estimates are one pass. Sort for the median, then average the absolute deviations from it. No iteration, no optimiser, and it is exactly the maximum-likelihood answer.
The diagnostic is the shape of the residuals, not their spread. A Laplace fit is indicated by a sharp central spike with occasional large values, and contraindicated by a smooth shoulder. A normality test rejecting is not by itself evidence for a Laplace — many alternatives reject too.
Compare the two log-likelihoods directly. Fit a normal and a Laplace to the same data and compare, penalising for parameters if the counts differ. Both have two parameters here, so the comparison is immediate.
And watch for a mixture pretending to be a Laplace. Two normals with different variances also give a peaked centre and heavy tails, and the distinction matters if you are going to extrapolate into the tail.
Reporting a Laplace fit
Four things, and the second is the one that trips readers up.
Name the parameters. Location and scale, not mean and standard deviation — even though the mean does exist here, because the scale b is NOT the standard deviation.
Say that the standard deviation is b√2. A scale of 1 gives a standard deviation of 1.414. Comparing a Laplace b directly against a normal sigma understates the spread by 29%.
Report the mean absolute deviation rather than the SD if you can. For this distribution it is exactly b, which makes it the natural summary and removes the conversion entirely.
And say why you chose the family. A Laplace fit is a claim that the errors have heavier tails than a normal, which changes every tail probability you go on to quote.
Sources and methodology
References for the Laplace distribution and absolute-error methods.
Method. The fit is the exact maximum-likelihood solution rather than a numerical optimisation: the location is the sample median and the scale the mean absolute deviation from it. The suite verifies the underlying claim as a property rather than on one example — the median beats the mean on Laplace log-likelihood in 400 of 400 randomly generated heavy-tailed samples — and pins the worked case at −29.169226. The density is confirmed to integrate to its own CDF range by Simpson’s rule over a wide window, the CDF is checked monotone, and a single-value input correctly returns no fit. That engine is verified on every change against 75 assertions. The count and the per-case breakdown are published on the formula verification page.
Related calculators
Where this goes next:
Normal DistributionProbabilities under a normal curve in all four directions with the region shaded — and the empirical rule given exactly, because two standard deviations is 95.45% and the 95% everyone quotes sits at 1.96σ.
Mean, Median and ModeAll three centres marked on your own data, every mode rather than just the first, and the mean-median gap read as a direct measure of skew.
Exponential DistributionTime-until-event probabilities from a rate or a mean, always showing both — with a panel proving elapsed time changes nothing, which is a constant hazard rate and false for anything that wears out.
Cauchy DistributionRuns the averaging experiment rather than describing it: the interquartile range of a Cauchy sample mean is 1.85 at n = 1 and 2.07 at n = 1,000, while a normal's falls from 1.365 to 0.0436.
Normality TestShapiro-Wilk, Anderson-Darling and Jarque-Bera with a Q-Q plot, plus a resampled sweep answering the question the tests cannot: was your sample size big enough to detect anything?
Mean Absolute DeviationAll three statistics the acronym MAD names — about the mean, about the median, and the median absolute deviation — plus the ratio to the standard deviation, which is exactly 0.7979 for a normal distribution and so reads as a free shape check.
An educational tool. Choosing a Laplace error model is a claim that the tails are heavier than a normal’s, which changes every extreme-value probability derived from the fit — and a peaked, heavy-tailed sample can equally well come from a mixture of two normals, which behaves differently far out.
Published the Laplace distribution with a maximum-likelihood fit whose location estimate IS the sample median - and proved it by log-likelihood rather than asserting it. On the shipped sample the median scores -29.169 against the mean's -32.364.
Verified as a property across 400 randomly generated heavy-tailed samples: the median beats the mean on Laplace log-likelihood in 400 of 400.
The reason is one line of algebra - the density carries |x - mu| where a normal carries a square, so maximising the likelihood is minimising absolute error, and the median is what minimises that. It is the same argument that makes the mean optimal for a normal.
Which is where least-absolute-deviations regression comes from: it is not a robustness patch on least squares but the maximum-likelihood fit under an explicit, different error model.
Measured the tail: matched on standard deviation the Laplace tail is LIGHTER than the normal's inside about one sigma and heavier past two, with the ratio climbing from there. Excess kurtosis is exactly 3.
Add this calculator to your site
Responsive embed — and private: nothing your visitors type leaves their browser.