# MCMC F90 library

## MCMC f90 library

From this page you can download source code for a Fortran 90 library statistical Markov chain Monte Carlo (MCMC) analyses of mathematical models. This code might be useful to you if you are already familiar with Fortran and MCMC.

This library provides tools to generate random walk Metropolis-Hastings MCMC chains using multivariate Gaussian proposal distribution. The covariance matrix of the proposal distribution can be adapted during the simulation according to adaptive schemes described in the references.

Check out my Matlab MCMC Toolbox. It can be used to analyse the chains generated by this Fortran library.

## Downloads

The up-to-date source is now available from GitHub, https://github.com/mjlaine/mcmcf90.

`mcmcf90src.zip`

(updated 2016-10-20) Source code for the MCMC library.

The code is distributed under a MIT License and comes with no warranty. The documentation is minimal at the moment. Please read the source code for details of the algorithms used. Question and suggestions are welcome. If you find the code useful, it would be kind to acknowledge me in your research articles.

## References

H. Haario, M. Laine, A. Mira and E. Saksman, 2006.
*DRAM: Efficient adaptive MCMC*,
Statistics and Computing **16**, pp. 339-354.
(doi:10.1007/s11222-006-9438-0)

H. Haario, E. Saksman and J. Tamminen, 2001.
*An adaptive Metropolis algorithm*
Bernoulli **7**, pp. 223-242.