Metropolis Hastings 法の説明と Python による実装