<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Normal Models, Gibbs Sampling, and Hierarchical Structure on Massimo Nocentini</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/</link><description>Recent content in Normal Models, Gibbs Sampling, and Hierarchical Structure on Massimo Nocentini</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/index.xml" rel="self" type="application/rss+xml"/><item><title>The Normal Model</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/05-normal-model/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/05-normal-model/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;The normal distribution&lt;/span&gt; is the workhorse of continuous-data modeling—not because real-world populations are literally Gaussian, but because the Central Limit Theorem pushes averages toward normality and because a normal model depends only on first and second moments.&lt;label for="sn-22a691-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-22a691-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="hoff2009"&gt;Peter D. Hoff. &lt;cite&gt;A First Course in Bayesian Statistical Methods&lt;/cite&gt;. Springer Texts in Statistics. Springer, New York, 2009. ISBN 978-0-387-92299-7. &lt;span class="smallcaps"&gt;doi:&lt;/span&gt; &lt;a href="https://doi.org/10.1007/978-0-387-92407-6"&gt;10.1007/978-0-387-92407-6&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; Chapter 5 marks a decisive step up in complexity: for the first time we have &lt;strong&gt;two unknown parameters&lt;/strong&gt;, the population mean &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo&gt;∈&lt;/mo&gt;&lt;mi&gt;ℝ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\theta \in \mathbb{R}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; and variance &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo&gt;&amp;gt;&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\sigma^2 &amp;gt; 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; forcing us to confront joint priors, marginalization, and the exact trade-off between bias and variance.&lt;/p&gt;</description></item><item><title>Posterior Approximation with the Gibbs Sampler</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/06-gibbs-sampler/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/06-gibbs-sampler/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;The moment we relax&lt;/span&gt; the artificial prior coupling &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant="normal"&gt;Var&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo&gt;∣&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mi mathvariant="normal"&gt;/&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;κ&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\operatorname{Var}(\theta \mid \sigma^2) = \sigma^2/\kappa_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; from &lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/05-normal-model/"&gt;Chapter&amp;nbsp;5&lt;/a&gt; and specify independent priors &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mtext&gt; &lt;/mtext&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;p(\theta, \sigma^2) = p(\theta)\,p(\sigma^2)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; the joint posterior &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo&gt;∣&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;p(\theta, \sigma^2 \mid y)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; loses its closed form. Yet its &lt;em&gt;conditional&lt;/em&gt; distributions—&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo&gt;∣&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;p(\theta \mid \sigma^2, y)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; and &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo&gt;∣&lt;/mo&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;p(\sigma^2 \mid \theta, y)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;—remain completely standard! Chapter 6 introduces the &lt;strong&gt;Gibbs sampler&lt;/strong&gt;&lt;span class="index-anchor" data-index="Gibbs sampler"&gt;&lt;/span&gt;&lt;label for="sn-721c7c-2" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-721c7c-2" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="geman1984"&gt;Stuart Geman and Donald Geman. Stochastic Relaxation, Gibbs Distributions, and the Bayesian Restoration of Images. &lt;cite&gt;IEEE Transactions on Pattern Analysis and Machine Intelligence&lt;/cite&gt;, 6:721–741, 1984&lt;/span&gt;; &lt;span class="bib-entry" data-cite="gelfand1990"&gt;Alan E. Gelfand and Adrian F. M. Smith. Sampling-Based Approaches to Calculating Marginal Densities. &lt;cite&gt;Journal of the American Statistical Association&lt;/cite&gt;, 85(410):398–409, 1990&lt;/span&gt;; and &lt;span class="bib-entry" data-cite="hoff2009"&gt;Peter D. Hoff. &lt;cite&gt;A First Course in Bayesian Statistical Methods&lt;/cite&gt;. Springer Texts in Statistics. Springer, New York, 2009. ISBN 978-0-387-92299-7. &lt;span class="smallcaps"&gt;doi:&lt;/span&gt; &lt;a href="https://doi.org/10.1007/978-0-387-92407-6"&gt;10.1007/978-0-387-92407-6&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;, our first **Markov chain Monte Carlo (MCMC)**&lt;span class="index-anchor" data-index="MCMC"&gt;&lt;/span&gt; algorithm, which turns a sequence of tractable full conditional draws into dependent samples from an intractable joint posterior.&lt;/p&gt;</description></item><item><title>The Multivariate Normal Model</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/07-multivariate-normal/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/07-multivariate-normal/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Real measurements rarely arrive in isolation.&lt;/span&gt; A student takes a reading exam before and after instruction; a patient has glucose, blood pressure, skin thickness, and BMI recorded simultaneously. Treating each coordinate with a separate univariate normal model throws away the &lt;strong&gt;covariance structure&lt;/strong&gt;—the very information that lets us test paired differences, quantify conditional relationships, and impute missing observations.&lt;label for="sn-a5ecb7-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-a5ecb7-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="hoff2009"&gt;Peter D. Hoff. &lt;cite&gt;A First Course in Bayesian Statistical Methods&lt;/cite&gt;. Springer Texts in Statistics. Springer, New York, 2009. ISBN 978-0-387-92299-7. &lt;span class="smallcaps"&gt;doi:&lt;/span&gt; &lt;a href="https://doi.org/10.1007/978-0-387-92407-6"&gt;10.1007/978-0-387-92407-6&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; Chapter 7 generalizes every ingredient of Chapters 5 and 6 from scalars to vectors and positive-definite matrices.&lt;/p&gt;</description></item><item><title>Group Comparisons and Hierarchical Modeling</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/08-hierarchical-modeling/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/08-hierarchical-modeling/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Whenever data come in groups&lt;/span&gt;—students nested inside schools, patients nested inside hospitals, or baseball players across a league—two naive extremes tempt the analyst. &lt;strong&gt;No pooling&lt;/strong&gt; fits each group completely separately, leaving small groups noisy and erratic. &lt;strong&gt;Complete pooling&lt;/strong&gt; lumps all groups into one common mean, erasing genuine differences between groups. Chapter 8 resolves this tension cleanly through &lt;strong&gt;hierarchical modeling&lt;/strong&gt;&lt;span class="index-anchor" data-index="hierarchical model"&gt;&lt;/span&gt;&lt;label for="sn-8c14d8-2" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-8c14d8-2" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="hoff2009"&gt;Peter D. Hoff. &lt;cite&gt;A First Course in Bayesian Statistical Methods&lt;/cite&gt;. Springer Texts in Statistics. Springer, New York, 2009. ISBN 978-0-387-92299-7. &lt;span class="smallcaps"&gt;doi:&lt;/span&gt; &lt;a href="https://doi.org/10.1007/978-0-387-92407-6"&gt;10.1007/978-0-387-92407-6&lt;/a&gt;&lt;/span&gt;; &lt;span class="bib-entry" data-cite="lindley1972"&gt;Dennis V. Lindley and Adrian F. M. Smith. Bayes Estimates for the Linear Model. &lt;cite&gt;Journal of the Royal Statistical Society, Series B&lt;/cite&gt;, 34:1–41, 1972&lt;/span&gt;; and &lt;span class="bib-entry" data-cite="gelman2007"&gt;Andrew Gelman and Jennifer Hill. &lt;cite&gt;Data Analysis Using Regression and Multilevel/Hierarchical Models&lt;/cite&gt;. Cambridge University Press, New York, 2007&lt;/span&gt;&lt;/span&gt;, where groups share information smoothly (&lt;strong&gt;partial pooling&lt;/strong&gt;) in direct proportion to their sample sizes and between-group variance.&lt;/p&gt;</description></item></channel></rss>