Code for "A First Course in Bayesian Statistical Methods"
Matlab Code for Peter Hoff "A First Course in Bayesian Statistical Methods"
Matlab codes are provided for most examples starting from Chapter 3. The codes were written and tested in Matlab 2018b, and should be compatible with later Matlab versions. Statistics and Machine Learning Toolbox is required.
Some examples require the following toolbox or files from Matlab Central File Exchange
* autocorr.m requires Matlab's Econometrics Toolbox
* multiESS.m https://github.com/lacerbi/multiESS
* OrdinalRankings.m https://www.mathworks.com/matlabcentral/fileexchange/19496-rankings
* gendist.m https://www.mathworks.com/matlabcentral/fileexchange/34101-random-numbers-from-a-discrete-distribution
Reference: Peter D. Hoff, A First Course in Bayesian Statistical Methods, Springer (2009)
Use this software at your own risk.
Cite As
Newport Quantitative (2026). Code for "A First Course in Bayesian Statistical Methods" (https://github.com/newportquant/Matlab-Code-for-Peter-Hoff-A-First-Course-in-Bayesian-Statistical-Methods-), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.1 | add icon |
|
|
| 1.0.0 |
|
