@@ -87,7 +87,8 @@ for (i in seq_len(nrow(beta.hat))) {
8787}
8888```
8989
90- #### 6.2.2 Bayesian Learning under Conjugate Priors
90+ ![ ] ( Chapter06_files/figure-html/unnamed-chunk-7-1.png ) \# ## 6.2.2
91+ Bayesian Learning under Conjugate Priors
9192
9293Next we consider regression analysis under a conjugate prior. For this
9394we define a function that yields the parameters of the posterior
@@ -170,11 +171,11 @@ for (i in seq_len(nrow(beta.hat))) {
170171}
171172```
172173
173- There is little difference to the improper prior for
174- $B_ {0} = 10\textbf{𝐈}$, however we see shrinkage to zero for
175- $B_ {0} = \textbf{𝐈}$. The effect of the prior is given by the weight
176- matrix $\textbf{𝐖}$, which is computed for the prior
177- \$ \Normal\\ \textbf{0}, \textbf{I}\\\$ below.
174+ ![ ] ( Chapter06_files/figure-html/unnamed-chunk-10-1.png ) There is little
175+ difference to the improper prior for $B_ {0} = 10\textbf{𝐈}$, however we
176+ see shrinkage to zero for $B_ {0} = \textbf{𝐈}$. The effect of the prior
177+ is given by the weight matrix $\textbf{𝐖}$, which is computed for the
178+ prior \$ \Normal\\ \textbf{0}, \textbf{I}\\\$ below.
178179
179180``` r
180181W = res_conj2 $ BN %*% solve(diag(rep(1 ,d )))
@@ -208,6 +209,8 @@ legend('topright', legend = c("Horseshoe", "Standard normal"), lty = 1:2,
208209 col = c(" blue" , " black" ))
209210```
210211
212+ ![ ] ( Chapter06_files/figure-html/unnamed-chunk-12-1.png )
213+
211214## Section 6.4
212215
213216Center the covariates at zero.
@@ -436,6 +439,8 @@ for (i in selection) {
436439}
437440```
438441
442+ ![ ] ( Chapter06_files/figure-html/unnamed-chunk-21-1.png )
443+
439444We next investigate the trace plots.
440445
441446``` r
@@ -481,3 +486,5 @@ for (i in seq_len(ncol(beta.hs))) {
481486 }
482487}
483488```
489+
490+ ![ ] ( Chapter06_files/figure-html/unnamed-chunk-24-1.png )
0 commit comments