Let $X_1, X_2, \ldots, X_n$ be a random sample of a uniform random variable that is uniformly distributed in the interval $[0, \theta]$. Consider the following estimator for $\theta$ :
$$
\hat{\Theta}=\max \left\{X_1, X_2, \ldots, X_n\right\}
$$
(a) Find the pdf of $\hat{\Theta}$ using the results of Problem 8.10 .
(b) Show that $\hat{\Theta}$ is a biased estimator.
(c) Find the variance of $\hat{\Theta}$ and determine whether it is a consistent estimator.
(d) Find a constant $c$ so that $c \hat{\Theta}$ is an unbiased estimator.
(e) Generate a random sample of 20 uniform random variables with $\theta=5$. Compare the values provided by the two estimators in 100 separate trials.
(f) Generate 1000 samples of the uniform random variable, updating the estimator value every 50 samples. Can you discern the bias of the estimator?