# Confidence interval for uniform

A random variable is uniformly distributed over $(0,\theta)$. The maximum of a random sample of $n$, call $y_n$ is sufficient for $\theta$ and it is also the maximum likelihood estimator. Show also that a $100\gamma\%$ conﬁdence interval for $\theta$ is $(y_n, y_n /(1 − \gamma )^{1/n})$.

Could anyone tell me how to deal with this problem? Do I have to use the central limit theorem?

• The central limit theorem won't help because it's about the distribution of a mean or a sum, not of a maximum. – Michael Hardy Sep 3 '12 at 12:26
• I'm getting $(y_n,y_n/(1-\gamma)^{1/n})$. I'm guessing what you wrote was intended to be that. – Michael Hardy Sep 3 '12 at 12:32
• yes, that was a typo. I apologize for the mistake. – adamG Sep 3 '12 at 12:42
• In general asymptotic theory doesn't help here because the question requires an exact result. But there is asymptotic theory for the maximum. It is called Gnedenko's theorem and can be applied to the uniform distribution. – Michael R. Chernick Sep 3 '12 at 16:03

You need to show that $$\Pr\left(y_n<\theta<\frac{y_n}{(1-\gamma)^{1/n}}\right) = \gamma.$$ Since $$y_n$$ is necessarily always less than $$\theta$$, this probability is the same as \begin{align} & \Pr\left(\theta<\frac{y_n}{(1-\gamma)^{1/n}}\right) \\ = {} & \Pr\left( \theta(1-\gamma)^{1/n} < y_n\right) \\ = {} & 1-\Pr\left( y_n < \theta(1-\gamma)^{1/n} \right). \end{align}
Notice that \begin{align} & \Pr(y_n < c) = \Pr(\text{All n observations} Apply this last sequence of equalities with $$\theta(1-\gamma)^{1/n}$$ in place of $$c$$.
• This confidence interval has $100\gamma%$ within the interval, and $100(1-\gamma)%$ to the right of the interval. One could also construct a confidence interval with $(100(1-\gamma)/2)%$ in each tail. Or even 100(1-\gamma)%$to the left of the interval, with the right endpoint equal to$\infty$. The problem so far doesn't completely specify these things. But one could speak of a unique "confidence distribution", and find that. The second line of displayed$\TeX\$ in my answer above is the first step in doing that. – Michael Hardy Sep 3 '12 at 13:18