Monte Carlo Markov Chains Flashcards

1
Q

What is the main idea of MCMC?

A

generate samples from a MC such that eventually a stationary distribution is reached and that stationary distribution is the target distribution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a reversible markov chain?

A

πi * Pr( θt = j | θt-1 = i) = πj * Pr( θt = i | θt-1 = j)

ie, πi * pij = πj * pji

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Key theoretical result of MCMC chains

A

if a markov chain is aperiodic, irreducible and has stationary distribution π, then π is unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the objective of the Metropolis-Hastings algorithm?

A

generate a sample from a target distribution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Outline the Metropolis-Hastings algorithm

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give the BGR statistic

A

R = width of 80% credible interval of all chains combined / average width of 80% credible interval for individual chains

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Effective sample size

A

neff = n / 1 + 2*sum correlations

Want neff close to sample size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Outline the Gibbs-Sampler algorithm

A
  1. generate θi(t+1) from p(θi | θ1(t+1), …, θ(i-1)(t+1), θ(i+1)(t), .., θq(t) )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly