Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Let $X_1, X_2,\ldots, X_n$ be i.i.d. uniform on $[0, \theta ]$.

a. Find the method of moments estimate of $\theta$ and its mean and variance

b. Find the MLE of $\theta$ and its mean and variance.

Thank you for answering, I really appreciate it.

My answers were:

a. $\hat{\theta} = 2 \bar{X}$

b. $\hat{\theta} = X_n$

I'm not just sure about my solution, I don't also know how to start solving for the mean and variance considering the MLE and MME.

share|improve this question
    
no one has answered yet... :'( –  Kaji Apr 6 '12 at 17:56
1  
Welcome to math.SE. No worry, surely someone will help you, but before you have to say what you have tried. –  Davide Giraudo Apr 6 '12 at 18:26
    
Hi Kaji. If you are looking for help, this is a great site. If you are looking for other people to make your homework, it's not. –  leonbloy Apr 6 '12 at 18:29
1  
Your MOM estimate is correct. Your MLE may be, although it's hard to tell with your notation. As for finding the mean and variance: what is the distribution of $\bar{x}$? –  Michael Lugo Apr 6 '12 at 19:00
1  
Your MME of $\theta$ is OK. But the MLE is not $X_n$. It should be $\max \{X_1,\cdots,X_n\}$ (maybe you meant this by $X_n$ but recall that when you sort a random sample it's no longer a random sample :) –  Xabier Domínguez Apr 6 '12 at 19:01

2 Answers 2

up vote 2 down vote accepted

OK, so I'll drop a few hints.

First of all: Check that your MLE estimator of $\theta$ is indeed the maximum of the likelihood function. Note that this maximum is not detected by the derivative!

Now, mean and variance of $\hat \theta=2\overline{X}$ can be deduced from those of $\overline{X}.$ The distribution of $\overline{X}$ is difficult to write down, but you don't need the whole pdf, you only need $E(\overline{X})$ and Var $(\overline{X}).$ If you have been given this problem, you probably already know what the mean and the variance of the sample mean is, but just in case, here you are: $E(\overline{X})=E(X),$ Var$(\overline{X})=$Var$(X)/n.$

Concerning the MLE, you probably will have to work out first the pdf of $\hat \theta=\max\{X_1,\cdots,X_n\}$. Fix $x\in [0,\theta].$ From the definition of a maximum, $P[\hat \theta \le x]=P[X_1\le x, \;X_2\le x,\;\cdots, X_n\le x];$ now we use that the $X_i$ are independent copies of the uniform distribution in $[0,\theta]$,hence $P[\hat \theta \le x]=P[X\le x]^n$ where $X$ is a uniform distribution in $[0,\theta].$ Since $P[X\le x]=x/\theta$ (cdf of a uniform variable in $[0,\theta]$), we deduce that the cdf of $\hat\theta$ is $x^n/\theta^n$ in $[0,\theta]$ and thus the pdf is $nx^{n-1}/\theta^n$, also in $[0,\theta]$. Now use this pdf to compute $E(\hat \theta)$ and Var$\hat \theta$ in the usual way. That is, $E(\hat \theta)=\int_0^{\theta}x (nx^{n-1}/\theta^n)\,dx$ and Var$\hat \theta=\int_0^{\theta}x^2 (nx^{n-1}/\theta^n)\,dx - E(\hat\theta)^2$

share|improve this answer
1  
Don't say you're dumb, we all have gone through this. I've updated my answer. Let me know if you can see the end now :) –  Xabier Domínguez Apr 7 '12 at 13:54
1  
yey! i think i am right. we had the same formula as above, anyway, the mean would be n\theta / n+1 is this correct? –  Kaji Apr 7 '12 at 14:24
1  
Yes. And this is way more natural because as $n\to \infty$ it converges to $\theta,$ which is the parameter you want to estimate. –  Xabier Domínguez Apr 7 '12 at 14:26
1  
and the variance is = (n theta^2) / (n+1)^2 (n+2) is this correct? just tell me if it's right or wrong. thanks so much xabier. –  Kaji Apr 7 '12 at 14:33
1  
I think it is correct. Congratulations! –  Xabier Domínguez Apr 7 '12 at 14:34

Your MLE is wrong. You said $X_1,\ldots,X_n$ are i.i.d. That implies $X_1$ or $X_2$, etc., is just as likely to be the maximum observed value as is $X_n$ or any other. The MLE is actually $\max\{X_1,\ldots,X_n\}$.

If you use the conventional notation for the order statistics, with parentheses enclosing the subscripts, so that $X_{(1)}\le X_{(2)} \le \cdots\le X_{(n)}$, then the MLE is $X_{(n)}$.

The density of the uniform distribution on $[0,\theta]$ is $\dfrac 1 \theta$ for $0<x<\theta$, so the joint density is $\dfrac{1}{\theta^n}$ for $0< x_1,\ldots,x_n<\theta$. Look at this as a function of $\theta$: it's $\dfrac{1}{\theta^n}$ for $\theta>\text{all }x\text{s}$. Thus the likelihood function is $$ L(\theta) = \frac{1}{\theta^n}\text{ for }\theta \ge \max\{x_1,\ldots,x_n\}$. $$ This is a decreasing function on the whole interval $[\max\{x_1,\ldots,x_n\},\infty)$. Thus it attains its maximum value at the left endpoint of the interval, which is $\max\{x_1,\ldots,x_n\}$.

share|improve this answer
    
ooops! just as I thought. Im having a hard time with this subject since my schedule for work coincides with my schedule for studies. anyway, Thank you very much Michael for the tip, now im confused how to arrive to that answer... –  Kaji Apr 7 '12 at 0:23
1  
@Kaji : I've expanded the answer to explain how the MLE is found. –  Michael Hardy Apr 7 '12 at 4:24
    
wow. thanks a lot michael, i was able to prove it though. we have the same answer now... thanks... seems like i couldnt accept both your answers... –  Kaji Apr 7 '12 at 13:47
1  
@Kaji : You can still up-vote both answers. –  Michael Hardy Apr 7 '12 at 17:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.