if $x \in\mathbb R^2$ and
$$ f_\theta(x)= \begin{cases} \frac{1}{2\theta^2} & \text{if } \|x\|_1 \le \theta \\ 0 & \text{otherwise.} \end{cases} $$
Find the maximum likelihood estimate of $\theta$.
this is what I did:
1- Compute $L(\theta) = \prod_{i=1}^n = \frac{1}{2^n(\theta^2)^n}$
2 - Compute $\ell(\theta) = \ln L(\theta) = -n\ln(2)-2n\ln(\theta)$
3 - derive and = $0$ But when I do it, I get $\frac{-2n}{\theta}=0$ which doesn't work.
Can someone please guide me and tell me where I am mistaken?
Thanks
In step (1), you should have $$L(\theta;\mathbf{x}) = \begin{cases}1/(2^n \theta^{2n}), & \text{if } \max(\|x_i\|_1 : 1 \leq i \leq n) \leq \theta \\ 0, & \text{otherwise}\end{cases}$$
Then the maximum occurs when $\theta$ is minimized in the first case, so $$\hat\theta_{\text{MLE}} = \max(\|x_i\|_1 : 1 \leq i \leq n)$$