S14 Machine learning · Practice
Sampling and Markov chain Monte Carlo
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 10 kinds solid
Check
A quantity with standard deviation 2 is estimated by Monte Carlo. How many samples give a standard error of 0.001?
Check
A uniform draw u = 0.6 is converted to an exponential sample with rate 0.5 by inverting the CDF. What's the sample?
Check
A density on an interval of length 2 has a maximum of 3. Rejection sampling with a uniform proposal scaled to cover that maximum accepts what fraction of proposals?
Check
A Metropolis sampler targets a zero-mean Gaussian with standard deviation 2. It sits at x = 1 and proposes a move 0.5 farther out. What's the acceptance probability?
Check
A Markov chain's successive states have correlation 0.5. About how many independent samples are 10000 steps worth?
Check
Three importance samples have weights 0.5, 0.2 and 4. What's their effective sample size?
Check
A Gibbs sampler targets a standard bivariate Gaussian with correlation 0.9 and runs 100000 sweeps.
(a)
What standard deviation does x | y have, the step size along x?
(b)
What effective sample size do the x values give?
(c)
Where is x | y centered when y = −1?
Check
Samples for error 0.0001, σ = 0.1?
Check
Exponential sample: u = 0.01, λ = 0.1?
Check
Effective samples: N = 100, ρ = 0.1?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S14