A prior distribution assigns uncertainty to a parameter before observing data. Multiplying its density by the likelihood and normalizing gives the posterior distribution. A Bayes estimator minimizes the posterior expected loss function for each observed sample, and therefore minimizes integrated Bayes risk when the expectations exist.
For quadratic loss , the conditional risk is , so its minimizer is the posterior mean. For absolute loss , the one-sided derivatives or subgradients show that a minimizer is any posterior median, characterized by and .
For the stated uniform distribution sampling model, let , . The likelihood is on and zero elsewhere. Intersecting this interval with the uniform prior gives
When , the bounded uniform-location posterior is
The posterior is symmetric, so its mean and unique median coincide. If , the data have zero marginal likelihood under the stipulated prior/sampling model and this posterior density cannot be normalized. An empty or singleton intersection is not an ordinary uniform posterior of positive width.