Be the first to rate this file! 35 Downloads (last 30 days) File Size: 1.9 KB File ID: #41231
image thumbnail

Metropolis Hastings

by Saad Jbabdi

 

11 Apr 2013

Simple but powerful implementation of the MH algorithm

| Watch this File

File Information
Description

This is a very simple yet powerful implementation of the Metropolis Hastings algorithm. The function works a bit like Matlab's 'fmincon', but produces samples from the posterior distribution over parameters.
The algorithm assumes the following:
- Gaussian additive noise (variance is integrated out)
- Uniform priors over all parameters (this can easily be changed in the code)

Required Products MATLAB
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
bayes, bayesian, inference, metropolis hastings, monte carlo markov chain, optimization, statistics
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us