Let X_{1}, ..., X_{n}\sim Uniform(a,b) where a and b are unknow

Grady Turner

Grady Turner

Answered question

2021-12-07

Let X1,,Xn Uniform(a,b) where a and b are unknown paramaters and a<b.
(a) Find the method of moments estimators for a and b.
(b) Find the MLE a^ and b^.

Answer & Explanation

James Etheridge

James Etheridge

Beginner2021-12-08Added 16 answers

The first moment is
abxf(x)dx=abxdxba=12b2a2ba=b+a2.
The second moment is
abx2f(x)dx=abx2dxba=13b3a3ba=b2+ba+a23.
So equate the sample moments with the population moments found above:
x1++xnn=x=b+a2...(1)
x12++xn2n=b2+ba+a23...(2)
It's routine to solve (1) for b. Plug that expression into (2) wherever you see b. You get a quadratic equation in a. Solving a quadratic equation can be done by a known algorithm. You get two solutions. The estimate of a will be the smaller of the two (Exercise: Figure out why it's the smaller one).
A bit of algebra that may be useful in simplifying the answer is this:
x12++xn2n(x1++xn{n)2=(x1x)2++(xnx)2n with x as above.
An alternative approach is to let m be the midpoint of the interval [a,b] and let c be the half-length of the interval, so that the interval is [m-c,m+c]. Then you'd have
x1++xnn=m,
x12++xn2n=m2+c23
It's easy to solve that for m and c, and above you're given a and b as functions of m and c.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?