Under the discrete uniform distribution, the observation has probability when its value is an available label, and zero otherwise. Therefore the likelihood function isThis is the discrete uniform endpoint posterior model's likelihood; all endpoints smaller than the observed label are excluded.
On its admissible support the likelihood function strictly decreases. Its maximum-likelihood estimate is consequently the smallest admissible endpoint:
A constant improper prior would give the formal posterior density kernel . However,There is no normalized posterior distribution under this prior. The failure is not simply that the prior is improper: some improper priors give proper posteriors. Here posterior propriety itself fails after this single observation, so probabilities, quantiles and a posterior mean cannot be assigned to that kernel.
Write , with . The truncated uniform prior gives the posterior distributionIts posterior mean isEach term in the numerator of the expectation is , which explains the exact count .
Keep fixed. Integral bounds for the decreasing function give , so . ConsequentlyThe posterior mean thus grows like instead of approaching a data-determined limit. Even the posterior distribution mass below a fixed endpoint is . Hence increasing the supposedly innocuous prior cutoff moves the inference to larger and larger endpoints. In an integral approximation its median is of order , also depending strongly on the cutoff. This explains the sensitivity of the entire inference, not just of its posterior mean.
Multiplying the reciprocal improper prior by the likelihood function givesThus this discrete uniform endpoint posterior is proper. Its exact cumulative probability is . Integral approximation gives and , soThese 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 .
The WinBUGS model uses a finite truncation of the reciprocal prior. The numbered lines have the following roles:
- Line (1) forms , the normalized prior probability vector on the integer labels . The deterministic sum may be declared after its use because the model is declarative.
- Line (2) assigns that categorical distribution. The following observation model treats the supplied value as observed data, rather than as an unknown parameter.
- Line (3) forms observation probabilities for and zero for . For integer , the small positive offset in
step(N-j+0.01)includes the endpoint without depending on the convention at zero. There are exactly nonzero entries, so this vector sums to one.
Combining that categorical distribution observation likelihood with the truncated reciprocal prior producesThe Markov chain Monte Carlo output approximates this posterior. The actual PDF separates the observation line from the preceding comment; it must remain an active stochastic statement.
The posterior distribution has a long right tail. Its posterior mean is pulled upward by relatively rare large endpoints and is sensitive to the artificial upper cutoff; its untruncated posterior mean does not exist. The median is a central quantile that stays finite as the cutoff is removed and is much less sensitive to extreme draws. It is also the Bayes estimator under absolute-error loss, whereas a mean corresponds to squared-error loss when the relevant expectation exists.
The median better represents the typical posterior endpoint in this strongly right-skewed distribution. It need not be preferable for every decision problem, since the loss function matters. For comparison, exact summation of the truncated kernel at cutoff gives median and mean about ; the displayed simulation summaries are Monte Carlo estimates, not exact posterior calculations.
Articles by others on the same topic
There are currently no matching articles.