Let $X_1,...,X_n\sim \text{Uniform}(0,\theta)$. Show that the maximum likelihood estimation (MLE) is consistent.

Setting $Y=\text{max}\{X_1,...,X_n\}$ I know that for any constant $c\in\mathbb{R}$,$$ \mathbb{P}(Y<c)=\mathbb{P}(X_1<c)\mathbb{P}(X_2<c)\cdots \mathbb{P}(X_n<c) $$ but I haven't been able to show consistency yet. Any ideas?


Note that $P(\max_{1\leq i\leq n} X_i \leq t)=\begin{cases} 0 &if &t\leq 0 \\ \left(\frac t \theta \right)^n &if &t \in [0,\theta]\\ 1 &if &t\geq \theta \end{cases}$

For $\epsilon>0$ , $$P(|\max_{1\leq i\leq n} X_i - \theta|>\epsilon)=P(\max_{1\leq i\leq n} X_i \geq \theta + \epsilon )+P(\max_{1\leq i\leq n} X_i \leq \theta - \epsilon )= \begin{cases} \left(\frac{\theta - \epsilon }{\theta}\right)^n &if &\epsilon <\theta \\ 0 &if &\epsilon \geq \theta \end{cases}$$

which goes to $0$ as $n\to \infty$.