Samples x1,…,xn are i.i.d. Uniform(0,θ). What is the MLE of θ, why is it biased, and what is an unbiased correction? What are both estimates for the data 1.2, 0.7, 2.9, 2.1?

Probability and statistics, Maximum likelihood
Level L3 Intermediate. Length Long. Nature Mat Mathematical.

What's being asked

An MLE at the edge of the support, where setting the derivative to zero does not work.

Key idea

L(θ)=θ−n for θ≥max⁡ixi and 0 otherwise, so θ^=max⁡ixi. Its expectation is nn+1θ.

Steps

  1. Write the density 1/θ for 0≤x≤θ. The likelihood is L(θ)=θ−n if θ≥x(n)=max⁡ixi, and 0 otherwise.
  2. On θ≥x(n) the function θ−n is decreasing, so the maximum is at the smallest allowed value: θ^=x(n). (The derivative of −nlog⁡θ never equals zero.)
  3. Find the distribution of M=max⁡ixi: P(M≤m)=(m/θ)n, so the density is nmn−1/θn.
  4. Expectation: E[M]=∫0θm⋅nmn−1θndm=nn+1θ. So the bias is −θ/(n+1): the MLE always underestimates.
  5. Correction: θ~=n+1nM has E[θ~]=θ.
  6. Numbers: n=4, M=2.9, so MLE =2.9 and θ~=54×2.9=3.625. The bias vanishes as n→∞.

Common mistakes

How long your answer should be

Half to one page; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: Is it true that if X and Y are each Gaussian and uncorrelated, then they are independent, and what construction justifies your answer?
Next in Probability and statistics: For n i.i.d. Bernoulli(p) samples, derive the Fisher information, state the Cramér–Rao bound, and show that the sample mean Xˉ attains it. What does the bound say numerically for p=0.3 and n=50?