Monte Carlo - Independent Flashcards

1
Q

What is the inverse probability integral transform method?

A

transform uniform RV using inverse of the cdf of Y, g(U) = Fy^(-1)(y)

i.e, set u = Fy^(-1)(y), solve for y

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

Explain rejection sampling

A

∫p(θ) dθ is estimated by the fraction of darts in the shaded region * area of the rectangle

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

Give the method for general rejection sampling

A
  • p(θ) target, g(θ) envelope where the support of g includes the support of p
  • find m ≥ p(θ) / g(θ) for all θ
  1. Generate θ* from g(θ)
  2. Generate u from uniform(0, m*g(θ))
  3. If u ≤ p(θ) keep θ, else go back to 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the acceptance rate in general rejection sampling?

A

1/m

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

Evaluate rejection sampling

A

+ very general so can be used for any distribution as long as the target can be calculated
+ easy to implement
+ don’t need a constant of proportionality
+ if can find an envelope where m is small, can be very efficient
- if for envelope m is large, very inefficient
- can be hard to find a good envelope, even for just three dimensions

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

Key point about rejection sampling

A

If g(θ) roughly proportional to p(θ), has similar shape, very efficient

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

Describe importance sampling

A

independent samples from the wrong distribution but values are adjusted to be from the right distribution NO REJECTION

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

Give the method for importance sampling

A

Ep( h(θ|y)) = Eg(h(θ) * w(θ))

= 1/N * (sum to N) h(θi) * w(θi)

where w(θ) = p(θ|y) / g(θ)

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

Describe sampling importance resampling

A

Generated θ and importance ratios wi can be used to produce an approximate sample from target distribution p(θ|y)

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

Give the method for generating a sample of size n with sampling importance resampling

A
  1. Choose N>n, generate N samples of θi from importance sampler g(θ)
  2. Calculate importance ratio and scale them by the sum of the weights
    wi* = wi / sum wj
  3. Randomly sample n θi with replacement with probabilities wi*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly