= Laplace location and scale maximum likelihood
{c}
{title2=$\widehat\mu\in\arg\min_a\sum_i|x_i-a|,\quad\widehat b=\frac1n\sum_i|x_i-\widehat\mu|$}
Suppose $X_1,\ldots,X_n$, $n\geq1$, are <independent and identically distributed> with <Laplace distribution> $\operatorname{Laplace}(\mu,b)$, where $b>0$. For realized values $x_1,\ldots,x_n$, the <likelihood function> and <log-likelihood function> are
$$
L(\mu,b)=(2b)^{-n}e^{-S(\mu)/b},\qquad \ell(\mu,b)=-n\log(2b)-\frac{S(\mu)}b,\qquad S(a)=\sum_{i=1}^n|x_i-a|.
$$
For fixed $b$, <maximum likelihood estimation> of the location therefore minimizes the sum of <absolute losses>. This connects the <Laplace distribution> to <robust statistics>: each observation contributes a cost growing linearly with its distance, whereas <squared-error loss> grows quadratically.
Why does a <sample median> minimize $S$? Between successive <order statistics>, moving $a$ a little to the right increases each distance to a value on the left and decreases each distance to a value on the right. Hence the slope is the number on the left minus the number on the right. It changes from negative to positive at the middle. More precisely, if $x_{(1)}\leq\cdots\leq x_{(n)}$, all minimizing locations are
$$
\arg\min_a S(a)=\begin{cases}
\{x_{(m+1)}\},&n=2m+1,\\
[x_{(m)},x_{(m+1)}],&n=2m.
\end{cases}
$$
For an even <sample size>, the objective is flat throughout the interval between the two central <order statistics>. The midpoint convention for the <sample median> selects one solution; it does not prove uniqueness. <SciPy 1.18.0 documentation/Laplace (Double Exponential, Bilateral Exponential) Distribution>[SciPy 1.18.0 documentation; SciPy reference guide, Laplace distribution, ML location estimator and the even-N interval between the two central order statistics]{ref} This is the finite-sample counterpart of <median minimizes expected absolute loss>.
If $S(\widehat\mu)>0$, maximizing over $b>0$ gives
$$
\frac{\partial\ell}{\partial b}=-\frac nb+\frac{S(\widehat\mu)}{b^2}=0,\qquad \widehat b=\frac{S(\widehat\mu)}n.
$$
The <derivative> is positive below this value and negative above it. Moreover the maximized <likelihood function> is proportional to $S(\mu)^{-n}$ wherever $S(\mu)>0$, so the same minimizing locations give the joint <maximum-likelihood estimates>. <NIST and SEMATECH e-Handbook of Statistical Methods/1.3.6.6.12. Double Exponential Distribution>[NIST and SEMATECH e-Handbook of Statistical Methods; NIST/SEMATECH e-Handbook, Section 1.3.6.6.12, Parameter Estimation; median and average absolute deviation formulas]{ref} The scale estimate divides by $n$; this formula is not an assertion that it is an <unbiased estimator>.
The boundary case matters: if all observations equal $c$, choose $\mu=c$. Then $S(c)=0$ and $L(c,b)=(2b)^{-n}\to\infty$ as $b\downarrow0$. There is no finite joint <maximum-likelihood estimate> in the parameter space $b>0$. In particular, this always occurs for $n=1$. Writing $\widehat b=0$ does not produce an admissible <Laplace distribution>.
Back to article page