-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
13 lines (11 loc) · 795 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
This is an implementation of the Metropolis Hastings algorithm.
This is used for Bayesian sampling from a distribution that's typically multidimensional and can't be numerically integrated.
It utilizes Markov chains, which are ordered lists of stochastic (random) variables.
The Markov chain wanders around, only remembering the state of the previous iteration.
When the number of samples approaches infinity, the Markov chain will converge to the posterior distribution.
Usage:
Modify the posterior and proposal distribution functions in mh.py to suit your statistical model.
references:
"Pattern Recognition and Machine Learning" by Christopher Bishop
"Information Theory, Inference, and Learning Algorithms" by David Mackay
"Machine Learning: An Algorithmic Perspective" by Stephen Marsland