= Solution
For retained <Markov chain Monte Carlo> draws $\theta^{(1)},\ldots,\theta^{(S)}$, calculate both the parameter average $\widehat m=S^{-1}\sum_s\theta^{(s)}$ and the average deviance $\widehat D_{\mathrm{av}}=S^{-1}\sum_sD(\theta^{(s)})$. Two estimates are
$$
\boxed{\widehat D_{\min,1}=D(\widehat m),\qquad
\widehat D_{\min,2}=\widehat D_{\mathrm{av}}-p.}
$$
The first uses the approximate equality of the <posterior mean> and <maximum-likelihood estimator>. The second subtracts the mean $p$ of the <chi-squared distribution> deviance excess. These are different operations: evaluation after averaging versus averaging after evaluation. Both rely on a well-mixed chain and the regular locally flat-prior approximation. The smallest sampled deviance is an upper bound on the true minimum, but merely taking that minimum can be inefficient in high dimension because few draws approach the mode closely.
Back to article page