MCMC - Metropolis Hastings

Dear Experts, May I have a question? I`m trying to code up MCMC with Metropolis - Hasting using the mhsample command. The documentation says that the arguments x and y have to be the same size as the row vector of the initial values. I am trying to draw from three variables (3 initial values) but it does not work. Do you have any ideas how shall I proceed? Thank you very much in advance for your help.

댓글 수: 2

the cyclist
the cyclist 2011년 6월 10일
Can you post the code that you have tried? That should help us diagnose any issues.
Anita
Anita 2011년 6월 12일
thank you, it is clear now.

댓글을 달려면 로그인하십시오.

답변 (1개)

Anita
Anita 2011년 6월 12일

0 개 추천

problem solved, obviously a joint pdf was needed.

카테고리

도움말 센터File Exchange에서 Number games에 대해 자세히 알아보기

태그

질문:

2011년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by