How to find maximum likelihood estimate for a parameter $a$ in distribution: $$f(x)=\begin{cases} \frac{\left| x\right| }{a ^{2} } &\text{for } x \in\left[ -a;a\right] \\0 &\text{for } x \not\in\left[ -a;a\right] \end{cases}$$
I did the following steps: $$L\left( a;x_{1},...,x_{n}\right) = \prod_{i=1}^{n} \frac{\left| x_{i}\right| }{a^{2}} = \frac{ \prod_{i=1}^{n}\left| x_{i}\right| }{a^{2n}}$$ $$\ln L = -2n \ln a + \sum_{i=1}^{n} \ln \left| x_{i}\right|$$ $$\frac{\partial \ln L}{\partial a} = \frac{-2n}{a}=0$$
What to do next?
Normally (in other examples) i got something like this: $c*=\frac{1}{\overline{X}}$ where $c*$ is some estimated parameter, but here I will get $a*=\infty$, which is wrong IMO.
self-study
tag? $\endgroup$