I'm having trouble understanding how to find an expression for [tex]\pi(x)[/tex] and [tex]\pi(y)[/tex] in the relation:(adsbygoogle = window.adsbygoogle || []).push({});

[tex]

\alpha \left( {x,y} \right) = \min \left( {1,\frac{{\pi \left( y \right)q\left( {y,x} \right)}}{{\pi \left( x \right)q\left( {x,y} \right)}}} \right)

[/tex]

For example, If I want to simulate Normal Distribution (Expectation valuemand standard deviations), how can I find expressions for [tex]\pi(x)[/tex] and [tex]\pi(y)[/tex]? Or are they equal: [tex]\pi(x)=\pi(y)[/tex]?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Metropolis-Hastings algorithm

**Physics Forums | Science Articles, Homework Help, Discussion**