Appendix C
Verified Errata and Parameterization Notes for Hoff (2009)
Every classic textbook accumulates a handful of minor typographical slips in its first printing. While verifying every derivation and numerical calculation against the 2009 Springer printing of Peter D. Hoff’s A First Course in Bayesian Statistical MethodsPeter D. Hoff. A First Course in Bayesian Statistical Methods. Springer Texts in Statistics. Springer, New York, 2009. ISBN 978-0-387-92299-7. doi: 10.1007/978-0-387-92407-6, we catalogued seven entries that commonly trip up readers implementing the formulas from scratch. All equations in this companion present the verified, corrected versions.
| Location | Printed in Hoff (2009) | Corrected Formula / Value | Verification Note |
|---|---|---|---|
| Ch. 3, p. 43 | 95% HPD interval of printed as [0.04, 0.048] | [0.041, 0.484] (exact [0.0406, 0.4837]) | Decimal typo in upper bound (0.048 instead of 0.48); density level , width . |
| Ch. 3, p. 52 | Poisson exponential family printed as and DY prior | and | Since , ; with Jacobian , this yields . |
| Ch. 8, p. 135 | Numerator of full conditional mean of printed as | Missing factor in the printed formula; Hoff’s accompanying R code on p. 138 correctly writes mu/tau2. | |
| Ch. 8, p. 144 | Rate parameter of full conditional of printed as | Missing factor : since , the exponent collects . | |
| Ch. 9, pp. 151, 157 & 165 | On p. 151, two regression lines indexed by ; on p. 157, normalizer printed as ; on p. 165, intermediate denominator exponent printed as (and missing transpose on last ) | Group indicator is ( is the intercept); determinant exponent is ; denominator exponent is | Standard MVN normalizing constant is ; Hoff’s final boxed marginal likelihood formula on p. 165 is already correct. |
| Ch. 10, p. 180 | Text writes dpois(y_i, x_i^T beta*) in the MH acceptance ratio | dpois(y_i, exp(x_i^T beta*)) | Poisson log-link requires ; Hoff’s R code on the same page correctly uses exp(X %*% beta.p). |
| Ch. 12, p. 220 | R code defines the conditional regression-weight vector Sz <- Sigma[j,-j] %*% solve(Sigma[-j,-j]) on line 1, then references Sjc on lines 2–3 | Replace Sjc with Sz consistently | Variable-renaming slip in the snippet computing the conditional mean and variance of given . |
Remark C.1 (Why verifying equations against code matters). Notice that several of these slips—such as the missing on p. 135 or the missing exp on p. 180—were already correct in Hoff’s own R code, while others (such as the missing on p. 144) can silently bias a sampler if transcribed blindly from the printed equation! A reliable habit when studying any Bayesian algorithm is simulation-based calibration: simulate synthetic data from known ground-truth parameters , run your sampler, and verify that posterior credible intervals recover the true values cleanly.