Under the discrete uniform distribution, the observation has probability when its value is an available label, and zero otherwise. Therefore the likelihood function is
This is the discrete uniform endpoint posterior model's likelihood; all endpoints smaller than the observed label are excluded.
Multiplying the reciprocal improper prior by the likelihood function gives
Thus this discrete uniform endpoint posterior is proper. Its exact cumulative probability is . Integral approximation gives and , so
These approximations are useful when is moderately large and are not exact discrete identities. For example the exact untruncated median at is . Although its quantiles are finite, its posterior mean is infinite, since its expectation numerator is the divergent sum .