<?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>Regression, Metropolis–Hastings, and Latent Variables on Massimo Nocentini</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/</link><description>Recent content in Regression, Metropolis–Hastings, and Latent Variables on Massimo Nocentini</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/index.xml" rel="self" type="application/rss+xml"/><item><title>Linear Regression</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/09-linear-regression/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/09-linear-regression/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Regression asks a conditional question:&lt;/span&gt; how does the distribution of &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;Y&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;Y&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; change as &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;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\mathbf{x}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; changes? Up to now every observation in a group shared the same mean. Here each observation carries its own mean, tied to the others through a short coefficient vector &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;𝜷&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\boldsymbol{\beta}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/span&gt;&lt;label for="sn-04503d-2" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-04503d-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&gt; The Bayesian treatment of &lt;em&gt;estimation&lt;/em&gt; turns out to be the multivariate normal update of &lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/07-multivariate-normal/"&gt;Chapter&amp;nbsp;7&lt;/a&gt; in a new costume. The genuinely new idea is what comes next: treating &lt;em&gt;which variables belong in the model&lt;/em&gt; as one more unknown with a posterior distribution.&lt;/p&gt;</description></item><item><title>Nonconjugate Priors and Metropolis–Hastings</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/10-metropolis-hastings/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/10-metropolis-hastings/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;The Gibbs sampler needs&lt;/span&gt; every full conditional to be a distribution we can sample. Change the sampling model from normal to Poisson, or let a correlation parameter enter a covariance matrix, and that requirement fails. The &lt;strong&gt;Metropolis–Hastings algorithm&lt;/strong&gt; asks for far less: the ability to &lt;em&gt;evaluate&lt;/em&gt; the posterior density up to a constant.&lt;label for="sn-e08a89-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-e08a89-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="metropolis1953"&gt;Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller, and Edward Teller. Equation of State Calculations by Fast Computing Machines. &lt;cite&gt;Journal of Chemical Physics&lt;/cite&gt;, 21(6):1087–1092, 1953&lt;/span&gt;; and &lt;span class="bib-entry" data-cite="hastings1970"&gt;W. Keith Hastings. Monte Carlo Sampling Methods Using Markov Chains and Their Applications. &lt;cite&gt;Biometrika&lt;/cite&gt;, 57:97–109, 1970&lt;/span&gt;&lt;/span&gt; This chapter derives it from a counting argument, proves that it works, and shows that the Gibbs sampler of &lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/06-gibbs-sampler/"&gt;Chapter&amp;nbsp;6&lt;/a&gt; was a special case all along.&lt;/p&gt;</description></item><item><title>Linear and Generalized Linear Mixed Effects Models</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/11-mixed-effects/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/11-mixed-effects/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Mixed effects models&lt;/span&gt; are the natural marriage of hierarchical shrinkage (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/08-hierarchical-modeling/"&gt;Chapter&amp;nbsp;8&lt;/a&gt;), multivariate normal covariance modeling (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-2/07-multivariate-normal/"&gt;Chapter&amp;nbsp;7&lt;/a&gt;), regression (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/09-linear-regression/"&gt;Chapter&amp;nbsp;9&lt;/a&gt;), and Metropolis–Hastings (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/10-metropolis-hastings/"&gt;Chapter&amp;nbsp;10&lt;/a&gt;).&lt;label for="sn-d4ecf1-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-d4ecf1-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;; 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; Instead of allowing only a scalar group 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;msub&gt;&lt;mi&gt;θ&lt;/mi&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\theta_j&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; to vary across schools or subjects, we now let an entire &lt;strong&gt;regression coefficient vector&lt;/strong&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;msub&gt;&lt;mi&gt;𝜷&lt;/mi&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;∈&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;ℝ&lt;/mi&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\boldsymbol{\beta}_j \in \mathbb{R}^p&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;—both intercepts &lt;em&gt;and&lt;/em&gt; slopes—vary across groups while borrowing strength across the population.&lt;/p&gt;</description></item><item><title>Latent Variable Methods for Ordinal Data</title><link>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/12-latent-ordinal-copula/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/bayesian-statistical-methods/part-3/12-latent-ordinal-copula/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Many measurements in the social and biomedical sciences&lt;/span&gt; are &lt;strong&gt;ordinal&lt;/strong&gt; rather than truly metric: education level (no degree &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;mo&gt;&amp;lt;&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;&amp;lt;&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; high school &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;mo&gt;&amp;lt;&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;&amp;lt;&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; associate’s &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;mo&gt;&amp;lt;&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;&amp;lt;&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; bachelor’s &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;mo&gt;&amp;lt;&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;&amp;lt;&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; graduate), survey agreement scales (&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;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; to &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;mn&gt;5&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;),&lt;/span&gt; or binned income brackets. Treating “bachelor’s degree = 4” as twice “high school = 2” in a normal linear model imposes arbitrary arithmetic distances that do not exist in the data! Chapter 12 shows how &lt;strong&gt;latent Gaussian variables&lt;/strong&gt;&lt;span class="index-anchor" data-index="latent variable"&gt;&lt;/span&gt; let us bring all of our multivariate normal and regression machinery to ordinal, skewed, and mixed discrete–continuous datasets without forcing any parametric assumption on the marginal scales.&lt;label for="sn-7076f4-2" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-7076f4-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&gt;&lt;/p&gt;</description></item></channel></rss>