Crates.io | mcmc |
lib.rs | mcmc |
version | 0.1.3 |
source | src |
created_at | 2015-06-19 22:24:10.9507 |
updated_at | 2020-09-15 13:34:48.745936 |
description | A Rust library implementing various MCMC diagnostics and utilities, such as Gelman Rubin potential scale reduction factor (R hat), effective sample size (ESS), chain splitting, and others. |
homepage | |
repository | https://github.com/isms/mcmc-rs/ |
max_upload_size | |
id | 2423 |
size | 1,007,806 |
A Rust library implementing various MCMC diagnostics and utilities, such as Gelman Rubin potential scale reduction factor (R hat), effective sample size (ESS), chain splitting, and others.
This crate is language agnostic and intended to work with the outputs of any MCMC sampler (e.g. Stan, PyMC3, Turing.jl, etc).
Currently we expect plain vectors of f64
floating point numbers, but this may be
worth generalizing to f32
s as well (see roadmap below).
Implementations for some of these diagnostics vary slightly, so reference implementations are based on Stan, and unit tests are adapted from the Stan codebase to ensure matching behavior.
Diagnostics
Utilities
Data structures
Num
type to generalize our implementations to work for f32
or f64
.Performance
[1]: Stephen P. Brooks and Andrew Gelman. General Methods for Monitoring Convergence of Iterative Simulations. Journal of Computational and Graphical Statistics, 7(4), 1998.
[2]: Andrew Gelman and Donald B. Rubin. Inference from Iterative Simulation Using Multiple Sequences. Statistical Science, 7(4):457-472, 1992.
[3]: Aki Vehtari, Andrew Gelman, Daniel Simpson, Bob Carpenter, Paul-Christian Burkner. Rank-normalization, folding, and localization: An improved R-hat for assessing convergence of MCMC, 2019. Retrieved from http://arxiv.org/abs/1903.08008.
[4]: Geyer, Charles J. Introduction to Markov Chain Monte Carlo. Handbook of Markov Chain Monte Carlo, edited by Steve Brooks, Andrew Gelman, Galin L. Jones, and Xiao-Li Meng. Chapman; Hall/CRC. 2011.
Thanks to Ivan Ukhov for generously providing
the mcmc
namespace on Cargo.