# Sufficient Statistics, MLE and Unbiased Estimators of Uniform Type Distribution

Let $X_1, \dots, X_n$ denote a random sample of size n from the probability distribution with pdf:

$$f_X(x|\theta_1, \theta_2) = \frac{1}{\theta_2 - \theta_1} \ I(x)_{[\theta_1,\theta_2]} \ I(\theta_1)_{(-\infty,\theta_2)} \ I(\theta_2)_{(\theta_1,\infty)}\;.$$

(1) Find a pair of sufficient statistics for $(\theta_1, \theta_2)$.

$\bf{My \ thoughts:}$ This wasn't too bad. I got $(X_{(1)}, X_{(n)})$ for this part

(2) Find the maximum likelihood estimator $(\hat{\theta_1}, \hat{\theta_2})$ for $(\theta_1, \theta_2)$.

$\bf{My \ thoughts:}$ Thinking I need to use monotone functions since it has 2 parameters and the variables are part of the interval. I believe that $\frac{X_{(1)} + X_{(n)}}{2}$ will become one of my estimators.

(3) Show that $\frac{X_{(1)} + X_{(n)}}{2}$ is an unbiased estimator for $\frac{\theta_1 + \theta_2}{2}$.

$\bf{My \ thoughts:}$ I think I will need to use Cramer-Rao Lower Bound in some form but not quite sure if that is right .

(4) Construct an unbiased estimator for $\theta_2 - \theta_1$.

$\bf{My \ thoughts:}$ Very stuck on this part, but I think I can use some information from previous parts to help me.

Any help is greatly appreciated.

-
Just to be sure... $X_{(1)} := \min(X_{1},\ldots,X_{n})$ and $X_{(n)} := \max(X_{1},\ldots,X_{n})$? –  Haskell Curry Mar 9 '13 at 7:51
That is correct. –  user45185 Mar 9 '13 at 21:14

$(1)$ Correct.

$(2)$ Since the density is $1/(\theta_2-\theta_1)$, the further $\theta_1$ and $\theta_2$ are apart, the lower the probability for obtaining the given data. Thus the maximum likelihood estimate is given by the values of $\theta_1$ and $\theta_2$ that are closest together and compatible with the data, $(\hat\theta_1,\hat\theta_2)=(\def\xa{X_{(1)}}\xa,\def\xb{X_{(n)}}\xb)$.

$(3)$ This is true by symmetry – the expectation is clearly finite, and it can't be anything other than the midpoint since it could then equally well be the value reflected about the midpoint.

$(4)$ Compute the expectation of $\xb-\xa$. This must be linear in $\theta_2-\theta_1$, with the coefficient depending only on $n$, so you can scale $\xb-\xa$ up accordingly to get an unbiased estimator for $\theta_2-\theta_1$.

-
I'm sorry, but don't you think the values of thetas have to be interchanged. Because if theta1 was the minimum and theta 2 was the maximum of the observation, the density would have the smallest value because we have 1/(max-min). I think θ^1->X(n) and θ^2-> X(1). –  user2848498 Oct 23 '13 at 18:56

Just to add what joriki said about the problem.

Part 3: Note: you don't want to find the Best Unbiased Estimator. You just want to show that $\frac{x_{(1)}+x_{(n)}}{2}$ is $\bf{AN}$ unbiased estimator. So the CRLB doesn't need to be used, since you're not trying to show that it's the Best Unbiased Estimator.

For part 4: Note: Look at $\theta_{2}-\theta_{1}$. It looks like b-a, right? Well, what estimator looks like an endpoint minus an endpoint?

The Range! :) Range = $X_{(n)}-X_{(1)}$

Hence, why joriki notes that you want to compute the expectation of $x_{(n)}-x_{(1)}$.

-