Adaptive Metropolis Hastings and Factor Slice Sampling

Version 1.4.0.0 (13.6 KB) by Khoa Tran
General purpose Markov Chain Monte Carlo sampling techniques for linearly correlated distribution
896 Downloads
Updated 21 Mar 2014

View License

This package contains 3 MCMC functions:
RWM.m - Standard Metropolis Hastings with optimal acceptance rate tuning. [N.Metropolis,A.W.Rosenbluth,M.N.Rosenbluth,A.H.Teller,and E. Teller, “Equations of state calculations by fast computing machine,” Journal of Chemical Physics, vol. 21, no. 6, pp. 1087–1092, 1953]

AM.m - Adaptive Metropolis with optimal acceptance rate tuning. [H. Haario, E. Saksman, and J. Tamminen, “An adaptive Metropolis algorithm,” Bernoulli, vol. 7, pp. 223–242, 2001]

FSS.m - Factor Slice Sampling with optimal initial width tuning. [M. M. Tibbits, C. Groendyke, M. Haran, and J. C. Liechty, “Automated Factor Slice Sampling,” Journal of Computational and Graphical Statistics, no. April 2013, Apr. 2013]

Usage of these functions is illustrated in "demo_mcmc.m" with a spherical Gaussian target distribution. These procedures, however, can work well for arbitrary target density given that the correlation between all dimensions is linear.

Cite As

Khoa Tran (2024). Adaptive Metropolis Hastings and Factor Slice Sampling (https://www.mathworks.com/matlabcentral/fileexchange/45976-adaptive-metropolis-hastings-and-factor-slice-sampling), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Edited description and comments

1.3.0.0

Can't update description, don't know why.

1.2.0.0

Edited description

1.1.0.0

Edited description

1.0.0.0