title: MCMC Sampling / Gibbs Sampling
body: <p>Had a midterm in my Artificial Intelligence class on MCMC sampling (is it the same as Gibbs sampling?). I was looking over the solution which I found online (in my midterm it was called MCMC liklihood weighting sampler, but in the attached solution its called Gibbs, is that the same?), and I cannot understand how to get the answers shown.</p>
  
  <p>Solution:</p>
  
  <p><img src="https://i.stack.imgur.com/IO3lW.png" alt="enter image description here"></p>
  
  <p>I don't understand how to fill in the values (T/F) given the random values from 0.1-1. I do understand how to get the weights on the right (just taking the value from the bottom most table in the chart). But then I don't understand how to get the final value either.</p>
  
  <p>I can't find any instructions online on how to do this, and what it means (at least not in simple terms that don't over complicate it and confuse me), so I would very much appreciate some guidance on how to make sense of these solutions, and how to execute this process on a different set of probabilities.</p>
  
  <p>Thanks!</p>