Examples comparing importance sampling and the Metropolis algorithm