St · Statistics & Probability

What Is the MLE for a Uniform(θ, 0) Distribution?

Updated 13 October 2026

At a glance

  1. 1. Read the endpoints

    Under standard endpoint notation, Uniform(θ, 0) requires θ < 0.

  2. 2. Write the likelihood

    The parameter must be no greater than the smallest observation for every data point to lie in the support.

  3. 3. Maximize at the boundary

    The likelihood increases with θ over its feasible range, so choose the largest feasible value.

  4. 4. Check the convention

    If the intended distribution is Uniform(0, θ), use the sample maximum instead.

If Uniform⁡(θ,0)\operatorname{Uniform}(\theta,0) means a uniform distribution on the interval from θ\theta to 00, then standard endpoint notation requires θ<0\theta<0. For an independent sample, the maximum-likelihood estimate is the smallest observed value. The reason is that the support restricts how large θ\theta can be, and the likelihood increases as θ\theta moves up to that restriction.

The notation can be easy to reverse: if you meant Uniform⁡(0,θ)\operatorname{Uniform}(0,\theta), the estimate is the sample maximum instead. The derivation below uses Uniform⁡(θ,0)\operatorname{Uniform}(\theta,0).

Likelihood for the sample

Let X1,…,XnX_1,\ldots,X_n be independent observations from Uniform⁡(θ,0)\operatorname{Uniform}(\theta,0), where θ<0\theta<0. The density of one observation is

f(x∣θ)=1−θ,θ≤x≤0.f(x\mid\theta)=\frac{1}{-\theta},\qquad \theta\le x\le 0.

Write the smallest and largest observed values as X(1)=min⁡iXiX_{(1)}=\min_i X_i and X(n)=max⁡iXiX_{(n)}=\max_i X_i. Multiplying the individual densities gives the likelihood

L(θ;x1,…,xn)=(−θ)−n 1{θ≤x(1), x(n)≤0},L(\theta; x_1,\ldots,x_n)=(-\theta)^{-n}\,\mathbf{1}\{\theta\le x_{(1)},\ x_{(n)}\le 0\},

where the indicator is 1 when all observations lie in the proposed interval and 0 otherwise. For a sample compatible with the model, the restriction on the parameter is therefore θ≤x(1)\theta\le x_{(1)}.

Why the sample minimum maximizes it

Among feasible values of θ\theta, the likelihood is (−θ)−n(-\theta)^{-n}. As θ\theta increases while remaining negative, −θ-\theta decreases, so (−θ)−n(-\theta)^{-n} increases. Equivalently,

ddθlog⁡L(θ)=−nθ>0,θ<0.\frac{d}{d\theta}\log L(\theta)=-\frac{n}{\theta}>0,\qquad \theta<0.

Thus the likelihood is largest at the greatest allowed value of θ\theta, which is x(1)x_{(1)}. For an ordinary sample with x(1)<0x_{(1)}<0 and x(n)≤0x_{(n)}\le 0,

θ^MLE=X(1)=min⁡(X1,…,Xn).\widehat{\theta}_{\mathrm{MLE}}=X_{(1)}=\min(X_1,\ldots,X_n).

This is a constrained maximum at the edge of the allowable parameter range. You should not expect the derivative of the log-likelihood to equal zero there; the maximum occurs at a boundary, not at an interior stationary point.

Worked example

Suppose the observations are −2.4-2.4, −1.1-1.1, −3.0-3.0, and −1.8-1.8. Their minimum is −3.0-3.0, so the parameter must satisfy θ≤−3.0\theta\le -3.0 for all four observations to be in the support. The likelihood for a feasible parameter is (−θ)−4(-\theta)^{-4}.

At θ=−3\theta=-3, the likelihood is 3−4=1/813^{-4}=1/81. At θ=−4\theta=-4, it is 4−4=1/2564^{-4}=1/256, which is smaller. Values such as θ=−2.5\theta=-2.5 are not feasible because the observation −3.0-3.0 lies below the proposed interval. Therefore the MLE is −3.0-3.0.

If the endpoints are written the other way around

For Xi∼Uniform⁡(0,θ)X_i\sim\operatorname{Uniform}(0,\theta) with θ>0\theta>0, the likelihood is θ−n\theta^{-n} when θ≥X(n)\theta\ge X_{(n)} and all observations are nonnegative. This likelihood decreases as θ\theta increases, so the smallest feasible value maximizes it:

θ^MLE=X(n)=max⁡(X1,…,Xn).\widehat{\theta}_{\mathrm{MLE}}=X_{(n)}=\max(X_1,\ldots,X_n).

This is why checking which endpoint contains the unknown parameter matters: the MLE is the sample minimum when the parameter is the lower endpoint, and the sample maximum when it is the upper endpoint.

Common mistakes

  • Using the sample maximum automatically. That is correct for Uniform⁡(0,θ)\operatorname{Uniform}(0,\theta), not for Uniform⁡(θ,0)\operatorname{Uniform}(\theta,0).
  • Ignoring the support constraint. A candidate parameter is impossible if even one observation falls outside its interval; its likelihood is zero.
  • Looking only for a zero derivative. The likelihood is monotone over the feasible range, so its maximum is at the boundary.
  • Assuming the MLE is unbiased. Here, E[X(1)]=nθ/(n+1)\mathbb{E}[X_{(1)}]=n\theta/(n+1), so the MLE is biased for finite nn. If an unbiased estimator is needed, (n+1)X(1)/n(n+1)X_{(1)}/n is unbiased for θ\theta.

References

  1. Statistical Inference, second edition — George Casella and Roger L. Berger

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.