Command Palette
Search for a command to run...
마르코프 체인 몬테카를로 방법 MCMC
날짜
메트로폴리스-헤이스팅스 샘플링
1: 마르코프 체인의 초기 상태를 초기화합니다. $latex {X\mathop{{}}\nolimits_{{0}}\text{ }=\text{ }x\mathop{{}}\nolimits_{{0}}}$
2: $latex {t\text{ }=\text{ }0,\text{ }1,\text{ }2,\text{ }…}$ 사이클의 다음 프로세스를 샘플링하세요.
- $latex {t}$ 순간에 마르코프 체인의 상태는 $latex {X\mathop{{}}\nolimits_{{t}}\text{ }=\text{ }x\mathop{{}}\nolimits_{{t}}}$ 이고 샘플링$latex {y\text{ } \sim \text{ }q{ \left( {x \left| x\mathop{{}}\nolimits_{{t}}\right. } \right) }}$
- 균일 분포에서의 샘플링$latex {u\text{ } \sim \text{ }Uniform{ \left[ {0,1} \right] }}$
- $latex {u\text{ } < \text{ } \alpha { \left( {x\mathop{{}}\nolimits_{{t}},y} \right) }\text{ }=\text{ }min{ \left\{ {\frac{{p{ \left( {y} \right) }q{ \left( {x\mathop{{}}\nolimits_{{t}} \left| y\right. } \right) }}}{{p{ \left( {x\mathop{{}}\nolimits_{{t}}} \right) }p{ \left( {y \left| {x\mathop{{}}\nolimits_{{t}}\text{ } \to \text{ }y}$, 즉 $latex {X\mathop{{}}\nolimits_{{t+1}}\text{ }=\text{ }y}$
- 그렇지 않으면 전송이 허용되지 않습니다. 즉, $latex {X\mathop{{}}\nolimits_{{t+1}}\text{ }=\text{ }x\mathop{{}}\nolimits_{{t}}}$
깁스 샘플링
1: $latex {X\mathop{{}}\nolimits_{{0}}\text{ }=\text{ }x\mathop{{}}\nolimits_{{0}},\text{ }Y\mathop{{}}\nolimits_{{0}}\text{ }=\text{ }y\mathop{{}}\nolimits_{{0}}}$를 무작위로 초기화합니다.
2: $latex의 순환 샘플링 {t\text{ }=\text{ }0,\text{ }1,\text{ }2,\text{ }…}$
- $latex {y\mathop{{}}\nolimits_{{t+1}}\text{ } \sim \text{ }p{ \left( {y \left| x\mathop{{}}\nolimits_{{t}}\right. } \right) }}$
- $latex {x\mathop{{}}\nolimits_{{t+1}}\text{ } \sim \text{ }p{ \left( {x \left| y\mathop{{}}\nolimits_{{t+1}}\right. } \right) }}$