Log-posterior 2026-10-05
The log-posterior is the logarithm of a positive posterior density. Its gradient is the posterior score control variate when boundary terms vanish. An additive constant independent of the parameter does not affect optimization or differentiation.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 216 6 b Solution Created 2026-10-03 Updated 2026-10-05
Put and . The probit regression likelihood is , so with the stated normal prior,Differentiating gives the probit posterior scoreEquivalently, the th likelihood term is . The prior's gradient is essential.
This posterior density is smooth, positive everywhere, and bounded above by a constant times the Gaussian prior, since the likelihood is at most one and has positive normalizing constant. Its derivatives are integrable: differentiating a likelihood factor gives a bounded normal density, and differentiating the prior gives a linear factor times a Gaussian. Integration by parts therefore yieldsThus each component has a known zero expected value and can be used as a posterior score control variate. This identity differentiates the posterior density in the random parameter; it is distinct from the usual mean-zero score identity for a likelihood under repeated sampling.
The requisite second moments are finite. For , is bounded. For ,Hence the score grows at most exponentially in , and the Gaussian upper bound on the posterior gives finite second moments. For a fixed vector , averaging is therefore an unbiased Monte Carlo estimator of the same mean; suitable coefficients can reduce its variance.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 216 6 c Solution Created 2026-10-03 Updated 2026-10-05
All moments below are under the proper posterior distribution of part (b). Write the known covariance matrix in block formThe score covariance is positive definite in this model. Indeed, a further integration by parts gives . If , then almost surely, because . Multiplying by would give , so .
For a fixed coefficient vector , the control variate summand has varianceThus the unique minimum is attained at , givingThe coefficient is fixed because the covariance is assumed known, and the posterior score control variate has mean zero, so this estimator remains unbiased.
We can identify exactly when the improvement is strict. Integration by parts with the bounded smooth function givesThe scalar expectation is strictly positive. Therefore whenever , and positive definiteness gives a strictly smaller variance in that case. If , and both estimators already have variance zero. The printed request for a smaller variance therefore needs this nondegeneracy qualification; a non-increasing variance always holds.
Probit posterior score 2026-10-05
For probit regression with and prior , the posterior score control variate isFor , its covariance with the score is . It is nonzero whenever , ensuring strict improvement by the optimal control variate.