Monte Carlo Markov Chains Flashcards
What is the main idea of MCMC?
generate samples from a MC such that eventually a stationary distribution is reached and that stationary distribution is the target distribution
What is a reversible markov chain?
πi * Pr( θt = j | θt-1 = i) = πj * Pr( θt = i | θt-1 = j)
ie, πi * pij = πj * pji
Key theoretical result of MCMC chains
if a markov chain is aperiodic, irreducible and has stationary distribution π, then π is unique
What is the objective of the Metropolis-Hastings algorithm?
generate a sample from a target distribution
Outline the Metropolis-Hastings algorithm
- at iteration i, have value θ
1. Generate θc from q(θc | θi)
2. calculate MH-ratio
= p(θc) * q(θi | θc) / p(θi) * q(θc | θi)
3. generate u from uniform(0,1)
4. if u ≤ min{1, MHR}, θi+1 = θc, else θi+1 = θi
5. set i = i+1 and return to 1
Give the BGR statistic
R = width of 80% credible interval of all chains combined / average width of 80% credible interval for individual chains
Effective sample size
neff = n / 1 + 2*sum correlations
Want neff close to sample size
Outline the Gibbs-Sampler algorithm
- generate θi(t+1) from p(θi | θ1(t+1), …, θ(i-1)(t+1), θ(i+1)(t), .., θq(t) )