Appendix B
Mathematical Toolkit and Concept Map
Six algebraic and probabilistic tools do almost all the heavy lifting across Hoff’s twelve chapters. Keeping them collected in one place makes every derivation in Parts I–III transparent—and the master concept map at the end shows how every chapter links into a single coherent architecture.
B.1Six Recurring Mathematical Identities#
B.1.11. Completing the Square (Scalar and Vector)#
For a scalar precision and linear coefficient ,
(B.1)For a symmetric positive-definite precision matrix and vector ,
(B.2)Whenever a log-conditional density equals the left-hand side of (B.2) plus a constant independent of , we immediately read off .
B.1.22. The Matrix Trace Trick#
Because a scalar equals its own trace and whenever both products are square,
(B.3)where . This identity turns the MVN likelihood into an inverse-Wishart kernel in (used in Chapter 7, Chapter 11, and Chapter 12).
B.1.33. Block Inversion and the Schur Complement#
Partition a symmetric positive-definite matrix and its inverse compatibly into index sets and :
(B.4)The matrix is the Schur complement of in . By the block LDU factorization, , and the conditional distribution of for is . Moreover, the precision block satisfies and , proving immediately that —so zeros of encode conditional independence!
B.1.44. The Woodbury Matrix Identity#
For conformable invertible matrices and ,
(B.5)This identity simplifies both marginal likelihood integrations (such as Zellner’s -prior in Chapter 9, where has inverse ) and low-rank covariance updates.
B.1.55. Inverse-CDF Sampling for Truncated Normal Distributions#
To draw restricted to an interval (used in ordered probit, rank likelihood, and Gaussian copulas in Chapter 12):
- Compute and .
- Draw .
- Return .
Remark B.1 (Numerical caution in extreme tails). When both and exceed roughly , floating-point norm.cdf saturates to 1.0 and norm.ppf(1.0) returns inf. In production code, use scipy.stats.truncnorm or log-space tail approximations whenever an interval lies far in the tail.
B.1.66. Markov Chain Convergence Checklist#
A Markov chain with transition kernel converges to the target posterior as when three structural conditions hold:Christian P. Robert and George Casella. Monte Carlo Statistical Methods. Springer, New York, second edition, 2004
- Stationarity (invariance): (automatically implied by detailed balance, , though systematic-scan Gibbs satisfies invariance directly without reversibility).
- Irreducibility: the chain can reach any positive-probability subset of from any starting state in finitely many steps (preventing disconnected islands).
- Aperiodicity: the chain does not cycle deterministically between disjoint regions.
B.2Master Concept Map of Hoff (2009)#
| Ch. | Title & Core Idea | Model & Prior | Inference Engine | Flagship Dataset(s) | Builds On |
|---|---|---|---|---|---|
| 1 | Introduction & Examples | Binomial–Beta; sparse regression | Exact conjugacy; BMA preview | Rare infection (); Diabetes () | — |
| 2 | Belief, Probability & Exchangeability | Belief axioms P1–P3; de Finetti | Exact Bayes’ rule & Bayes factors | Screening; GSS survey | Ch. 1 |
| 3 | One-Parameter Models | Beta–Binomial; Poisson–Gamma; Exp. families | Closed-form conjugacy, HPD | GSS happiness & birth rates | Ch. 2 |
| 4 | Monte Carlo Approximation | Arbitrary ; predictive checks | i.i.d. MC, ancestral sampling, PPC | GSS log-odds & fertility PPC | Ch. 3 |
| 5 | The Normal Model | + Normal–IG | Exact Student-; MSE theorem | Midge wing lengths (); Town IQ | Ch. 3–4 |
| 6 | The Gibbs Sampler | Semiconjugate independent prior | 2-block Gibbs; ACF & | Midge data; Trimodal mixture trap | Ch. 4–5 |
| 7 | Multivariate Normal Model | + MVN/IW | Trace trick; Schur MAR augmentation | Reading scores (); Pima Indians | Ch. 6 |
| 8 | Hierarchical Modeling | Two-level exchangeable normal | Multi-block Gibbs; Stein shrinkage | 2002 ELS math scores ( schools) | Ch. 6 |
| 9 | Linear Regression | + -prior & spike-and-slab | Exact MC; collapsed Gibbs BMA | Oxygen uptake (); Diabetes () | Ch. 5–7 |
| 10 | Nonconjugate Priors & MH | GLMs (Poisson, Logistic); AR(1) GLS | Metropolis, MH, Metropolis-within-Gibbs | Sparrows (); Ice-core | Ch. 6, 9 |
| 11 | Mixed Effects Models | LME & Poisson GLMM | Modular Gibbs + MH-within-Gibbs | ELS SES slopes; Mouse intestine tumors | Ch. 7–10 |
| 12 | Ordinal & Copula Models | Ordered probit; rank likelihood; Gaussian copula | Data augmentation; parameter expansion | Social mobility; GSS mixed ordinal data | Ch. 7, 9–11 |
B.2.1Recommended Study Tracks#
- Track 1 — Conceptual Core (Fastest Complete Arc): Chapters 1 → 2 → 3 → 4 → 5 → 6 → 7 → 8 → 9. Covers every foundational Bayesian principle, conjugate & Gibbs updating, multivariate covariance, hierarchical shrinkage, and regression/model averaging.
- Track 2 — Computational MCMC Deep Dive: Chapters 4 → 5 → 6 → 7 → 9 → 10 → 12. Focuses on i.i.d. MC, Gibbs, data augmentation, Metropolis–Hastings detailed balance, and parameter expansion.
- Track 3 — Applied Multilevel & Non-Normal Data (assuming Chapters 1–6): Chapters 7 → 8 → 9 → 10 → 11 → 12. Moves directly from multivariate covariance modeling into hierarchical shrinkage, GLMs, mixed effects, and mixed ordinal copulas.