Using the expected value of a beta distribution, the posterior mean isEquivalently, it is the weighted averageof the prior mean and the maximum-likelihood estimate .
Past exam of the systems biology course of the University of Cambridge 2024 Paper 3 2 c Solution 2026-10-20
The exponential distribution prior has rate and support , so its prior density is . By Bayes' theorem,where is a normalizing constant independent of .
Completing the square gives a useful exact reference for the numerical sampling. PutThen this normal mean posterior with an exponential prior is a normal distribution with location and variance , truncated below at zero. With the standard normal distribution density and its cumulative distribution function,The exponential rate is , not three; the prior mean is three. The support restriction must be retained in both the formula and the sampler.
Prior mean 2026-10-20
The prior mean is the expected value of a statistical parameter under its prior distribution, when this expected value exists. The posterior mean instead uses the posterior distribution after conditioning on observations.