Let $Y_1, ..., Y_n$ be iid from a Laplace distribution (also known as a double exponential distribution) with density function $$f (y; α) = 1/2 \exp(−|y − α|), y,\alpha \in \mathbb{R}.$$ Assuming that $n$ is even determine a maximum likelihood estimator of α. Is the MLE unique?
To solve this, do I need to consider different densities depending on whether the data are smaller or greater than $\alpha$? Say I have $n_0$ data where $y<\alpha$ then the density is $f (y; α) = 1/2 \exp((y − \alpha))$ and for remaining $n-n_0$ observations $y>\alpha$ withhaving density $f (y; α) = 1/2 \exp((\alpha − y))$. Then the likelihood is $$ (1/2 \exp((y − \alpha)))^{n_0}( 1/2 \exp((\alpha − y)))^{n-n_0}.$$ Maximizing the loglikelihood $n_0(y-\alpha)+(n-n_0)(\alpha-y)+\text{const}$ for $\alpha$, I get $n=2n_0$ which is independent of $\alpha$. Does it mean I cannot use the derivative and have to try something else
Because of the absolute value, you cannot take a derivative at $x=a$, hence the solution is more analytical. Note that maximizing the likelihood is the same as minimizing $\sum_{i=1}^n | x_i - a|$ w.r.t $\alpha$, namely, what value of $\alpha$ will give you $$ \sum_{i=1}^n \operatorname{sign}( x_i - \alpha) =0 . $$ A value that exactly half of the $x_i$s are larger then it (and the other half lower), i.e., $$ \hat{\alpha} = \operatorname{median} \{x_1,\ldots, x_n\}. $$ Full derivation you can find here.