Suppose $X_1, X_2, \ldots, X_n$ is an iid random sample from a uniform distribution on the interval $[-\theta, \theta]$. Find the maximum likelihood estimate for $\theta$.
Suppose $X_1, X_2, \ldots, X_n$ is an iid random sample from a uniform distribution on the interval $[\theta_1, \theta_2]$. Find the maximum likelihood estimates for $\theta_1$ and $\theta_2$.