makes the decay of the exponential symmetric about the origin. Also called the two-sided exponential, it becomes the density of the Laplace distribution in probability once multiplied by 1. Set beside the Gaussian , the differences in the shape of the peak and the weight of the tails are easy to see.
Since the function is even and symmetric about the -axis. It is two exponential curves joined together: for and for .
At the origin, where the two pieces meet, the derivatives from the two sides disagree.
| Approach | Derivative |
|---|---|
| from the right | |
| from the left |
The function is therefore not differentiable at the origin, and the graph has a sharp corner. That contrasts with the smooth rounded summit of the Gaussian.
For we have , so the function decreases, and for we have , so it increases. The second derivative is for , so both sides are concave up and there is no inflection point. As we get , making the -axis a horizontal asymptote.
The two graphs meet at and , since gives ; at the crossings the common value is .
For the Gaussian is above, and for the two-sided exponential is. In other words the Gaussian bulges more in the middle while the two-sided exponential has the heavier tails. At the gap is more than four hundredfold.
The integral over the whole line is , so is a probability density. That is the standard Laplace distribution.
| Quantity | Value |
|---|---|
| Mean | |
| Variance | |
| Mean absolute deviation |
The difference of two independent exponential variables is also known to follow this distribution.
The image is the shape of the witch of Agnesi. A heavy-tailed peak with a corner is carried over into a smooth rational function.
In statistics the Laplace distribution is the maximum-entropy distribution when the mean absolute deviation, rather than the variance, is held fixed. It pairs with the fact that the Gaussian is the maximum-entropy distribution when the variance is fixed.
In machine learning, placing a Laplace prior on the coefficients corresponds to regularization. The corner at the origin is what drives many coefficients to be exactly , giving the sparse solutions that method is known for.