Simulation - Lectures
Yee Whye Teh
Part A Simulation
TT 2013
Part A Simulation. TT 2013. Yee Whye Teh. 1 / 97
Simulation - Lectures Yee Whye Teh Part A Simulation TT 2013 Part - - PowerPoint PPT Presentation
Simulation - Lectures Yee Whye Teh Part A Simulation TT 2013 Part A Simulation. TT 2013. Yee Whye Teh. 1 / 97 Administrivia Lectures : Wednesdays and Fridays 12-1pm Weeks 1-4. Departmental problem classes : Wednesdays 4-5pm Weeks 3-6.
Part A Simulation. TT 2013. Yee Whye Teh. 1 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 2 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 3 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 4 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 5 / 97
◮ inversion method, ◮ transformation method, ◮ rejection sampling, ◮ importance sampling, ◮ Markov chain Monte Carlo including Metropolis-Hastings.
Part A Simulation. TT 2013. Yee Whye Teh. 6 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 7 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 8 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 9 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 10 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 11 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 12 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 13 / 97
−1.5 −1 −0.5 0.5 1 1.5 −1.5 −1 −0.5 0.5 1 1.5
Part A Simulation. TT 2013. Yee Whye Teh. 14 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 15 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 16 / 97
−1.5 −1 −0.5 0.5 1 1.5 −1.5 −1 −0.5 0.5 1 1.5
Part A Simulation. TT 2013. Yee Whye Teh. 17 / 97
100 200 300 400 500 600 700 800 900 1000 −18 −16 −14 −12 −10 −8 −6 −4 −2 2 x 10
−3
Part A Simulation. TT 2013. Yee Whye Teh. 18 / 97
100 200 300 400 500 600 700 800 900 −0.02 −0.01 0.01 0.02 0.03
Part A Simulation. TT 2013. Yee Whye Teh. 19 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 20 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 21 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 22 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 23 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 24 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 25 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 26 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 27 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 28 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 29 / 97
−10 −8 −6 −4 −2 2 4 6 8 10 0.1 0.2 0.3 0.4 −10 −8 −6 −4 −2 2 4 6 8 10 0.2 0.4 0.6 0.8 1 Gaussian Cumulative distribution u~U(0,1) x=F−1(u)
Part A Simulation. TT 2013. Yee Whye Teh. 30 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 31 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 32 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 33 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 34 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 35 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 36 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 37 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 38 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 39 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 40 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 41 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 42 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 43 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 44 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 45 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 46 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 47 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 48 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 49 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 50 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 51 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 52 / 97
2 exp(− 1
Part A Simulation. TT 2013. Yee Whye Teh. 53 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 54 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 55 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 56 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 57 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 58 / 97
−6 −4 −2 2 4 6 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
Part A Simulation. TT 2013. Yee Whye Teh. 59 / 97
−2.5 −2 −1.5 −1 −0.5 0.5 1 1.5 2 2.5 0.5 1 1.5 2 2.5
Part A Simulation. TT 2013. Yee Whye Teh. 60 / 97
−2.5 −2 −1.5 −1 −0.5 0.5 1 1.5 2 2.5 0.5 1 1.5
Part A Simulation. TT 2013. Yee Whye Teh. 61 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 62 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 63 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 64 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 65 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 66 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 67 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 68 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 69 / 97
−5 5 0.0 0.1 0.2 0.3 0.4 normal density
Part A Simulation. TT 2013. Yee Whye Teh. 70 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 71 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 72 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 73 / 97
◮ Function to draw samples from p ◮ Function ˜
◮ Function φ ◮ Number of samples n
Part A Simulation. TT 2013. Yee Whye Teh. 74 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 75 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 76 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 77 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 78 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 79 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 80 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 81 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 82 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 83 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 84 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 85 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 86 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 87 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 88 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 89 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 90 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 91 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 92 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 93 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 94 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 95 / 97
2 and y = x − 1 otherwise.
p(y)q(x|y) ˜ p(x)q(y|x)
λ x+1
λ
Part A Simulation. TT 2013. Yee Whye Teh. 96 / 97
Part A Simulation. TT 2013. Yee Whye Teh. 97 / 97