An McMC matlab code for posterior calculation

2 views (last 30 days)
Hi all, I have the followings 1. The prior distributions ( say Normal) 2. The prior bounds (upper and lower bound for priors) 3. A function that can calculate the likelihood ( or sum-of-square errors)for each combination of parameters.
I want to find 1. The posterior distributions
I am looking for some codes that can do the McMC (markov chain monte carlo) to find the posteriors. there are some toolboxes on the web that they are always asking for "real data" and a function to predict the data. However, I have a complex function that can only directly calculate the sum-of-square errors . Can you help with some codes?
thank you

Answers (1)

Renmin University of China
Hello! You can find what you want on this website: http://helios.fmi.fi/~lainema/mcmc/.

Community Treasure Hunt

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

Start Hunting!