Skip to content

Commit 01697d8

Browse files
committed
Deploying to gh-pages from @ 636987b 🚀
1 parent 30719e7 commit 01697d8

5 files changed

Lines changed: 22 additions & 13 deletions

File tree

articles/Chapter06.html

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/Chapter06.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

9293
Next we consider regression analysis under a conjugate prior. For this
9394
we 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
180181
W=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

213216
Center 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+
439444
We 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)
-1.14 KB
Loading

pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ articles:
1111
Chapter07: Chapter07.html
1212
Chapter08: Chapter08.html
1313
Chapter09: Chapter09.html
14-
last_built: 2025-11-11T10:39Z
14+
last_built: 2025-11-11T10:49Z
1515
urls:
1616
reference: https://gregorkastner.github.io/BayesianLearningCode/reference
1717
article: https://gregorkastner.github.io/BayesianLearningCode/articles

search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)