Let \(X_1,X_2,\ldots ,X_n\) be independent, identically distributed uniform \((0,\theta )\) random variables with common density function \[ f(t)= \begin {cases} 0, & \text {if } t\notin [0,\theta ],\\ 1/\theta , & \text {if } t\in [0,\theta ]. \end {cases} \] (a) Find the maximum likelihood estimator for \(\theta \).
(b) Find a \(1-\alpha \) equal-tail confidence interval for \(\theta \).