Implementing discrete approximations to continuous mixture distributions
Christian R¨
- ver
Department of Medical Statistics University Medical Center G¨
- ttingen
December 5, 2014
- C. R¨
- ver
Implementing mixture approximations December 5, 2014 1 / 31
Implementing discrete approximations to continuous mixture - - PowerPoint PPT Presentation
Implementing discrete approximations to continuous mixture distributions Christian R over Department of Medical Statistics University Medical Center G ottingen December 5, 2014 C. R over Implementing mixture approximations December
Implementing mixture approximations December 5, 2014 1 / 31
Implementing mixture approximations December 5, 2014 2 / 31
Implementing mixture approximations December 5, 2014 3 / 31
Implementing mixture approximations December 5, 2014 4 / 31
Implementing mixture approximations December 5, 2014 4 / 31
Implementing mixture approximations December 5, 2014 4 / 31
Implementing mixture approximations December 5, 2014 4 / 31
Implementing mixture approximations December 5, 2014 5 / 31
Implementing mixture approximations December 5, 2014 5 / 31
Implementing mixture approximations December 5, 2014 5 / 31
Implementing mixture approximations December 5, 2014 5 / 31
Implementing mixture approximations December 5, 2014 5 / 31
Implementing mixture approximations December 5, 2014 5 / 31
effect Θ Θ # 7 # 6 # 5 # 4 # 3 # 2 # 1 120 140 160 180 200 220 240 140 160 180 200 0.00 0.01 0.02 0.03 0.04 0.05 0.06 effect Θ marginal posterior p(Θ)
Implementing mixture approximations December 5, 2014 6 / 31
heterogeneity τ effect Θ
50% 90% 95% 99%
10 20 30 40 130 140 150 160 170 180 190 20 40 60 80 0.00 0.01 0.02 0.03 0.04 0.05 heterogeneity τ marginal posterior p(τ) 140 160 180 200 0.00 0.01 0.02 0.03 0.04 0.05 0.06 effect Θ marginal posterior p(Θ)
Implementing mixture approximations December 5, 2014 7 / 31
Implementing mixture approximations December 5, 2014 8 / 31
heterogeneity τ effect Θ 10 20 30 40 130 140 150 160 170 180 190 10 20 30 40 50 0.00 0.01 0.02 0.03 0.04 0.05 heterogeneity τ marginal posterior p(τ) 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 0.08 0.10 effect Θ conditional posterior p(Θ|τi) effect Θ marginal posterior p(Θ|y) 130 140 150 160 170 180 190 0.00 0.01 0.02 0.03 0.04 0.05 0.06
Implementing mixture approximations December 5, 2014 9 / 31
heterogeneity τ effect Θ conditional mean conditional mean + sd conditional mean − sd 10 20 30 40 130 140 150 160 170 180 190 10 20 30 40 50 0.00 0.01 0.02 0.03 0.04 0.05 heterogeneity τ marginal posterior p(τ) 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 0.08 0.10 effect Θ conditional posterior p(Θ|τi) effect Θ marginal posterior p(Θ|y) 130 140 150 160 170 180 190 0.00 0.01 0.02 0.03 0.04 0.05 0.06
Implementing mixture approximations December 5, 2014 9 / 31
heterogeneity τ effect Θ τ1 10 20 30 40 130 140 150 160 170 180 190 10 20 30 40 50 0.00 0.01 0.02 0.03 0.04 0.05 heterogeneity τ marginal posterior p(τ) τ1 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 0.08 0.10 effect Θ conditional posterior p(Θ|τi) τ = τ1 effect Θ marginal posterior p(Θ|y) 130 140 150 160 170 180 190 0.00 0.01 0.02 0.03 0.04 0.05 0.06
Implementing mixture approximations December 5, 2014 9 / 31
heterogeneity τ effect Θ τ1 τ2 τ3 τ4 10 20 30 40 130 140 150 160 170 180 190 10 20 30 40 50 0.00 0.01 0.02 0.03 0.04 0.05 heterogeneity τ marginal posterior p(τ) τ1 τ2 τ3 τ4 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 0.08 0.10 effect Θ conditional posterior p(Θ|τi) τ = τ1 τ = τ2 τ = τ3 τ = τ4 effect Θ marginal posterior p(Θ|y) 130 140 150 160 170 180 190 0.00 0.01 0.02 0.03 0.04 0.05 0.06
Implementing mixture approximations December 5, 2014 9 / 31
heterogeneity τ effect Θ τ1 τ2 τ3 τ4 10 20 30 40 130 140 150 160 170 180 190 10 20 30 40 50 0.00 0.01 0.02 0.03 0.04 0.05 heterogeneity τ marginal posterior p(τ) τ1 τ2 τ3 τ4 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 0.08 0.10 effect Θ conditional posterior p(Θ|τi) τ = τ1 τ = τ2 τ = τ3 τ = τ4 effect Θ marginal posterior p(Θ|y) 130 140 150 160 170 180 190 0.00 0.01 0.02 0.03 0.04 0.05 0.06
Implementing mixture approximations December 5, 2014 9 / 31
Implementing mixture approximations December 5, 2014 10 / 31
heterogeneity τ effect Θ τ1 τ2 τ3 τ4 10 20 30 40 130 140 150 160 170 180 190 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 0.08 0.10 effect Θ conditional posterior p(Θ|τi) τ = τ1 τ = τ2 τ = τ3 τ = τ4
Implementing mixture approximations December 5, 2014 11 / 31
X ,
ν
Implementing mixture approximations December 5, 2014 12 / 31
Implementing mixture approximations December 5, 2014 13 / 31
Implementing mixture approximations December 5, 2014 14 / 31
heterogeneity τ effect Θ τ1 τ2 τ3 τ4 10 20 30 40 130 140 150 160 170 180 190 heterogeneity τ effect Θ τ(1) τ(2) τ(3) τ ~
1
τ ~
2
τ ~
3
τ ~
4
10 20 30 40 130 140 150 160 170 180 190 effect Θ marginal posterior p(Θ|y) 130 140 150 160 170 180 190 0.00 0.01 0.02 0.03 0.04 0.05 0.06
Implementing mixture approximations December 5, 2014 15 / 31
Implementing mixture approximations December 5, 2014 16 / 31
Implementing mixture approximations December 5, 2014 17 / 31
Implementing mixture approximations December 5, 2014 18 / 31
c2(c+2)2 2(c+1)2
Implementing mixture approximations December 5, 2014 19 / 31
Implementing mixture approximations December 5, 2014 20 / 31
heterogeneity τ effect Θ τ(1) τ(2) τ(3) τ ~
1
τ ~
2
τ ~
3
τ ~
4
10 20 30 40 130 140 150 160 170 180 190
Implementing mixture approximations December 5, 2014 21 / 31
heterogeneity τ effect Θ τ(1) τ(2) τ ~
2
10 12 14 16 18 20 150 155 160 165 170 effect Θ conditional density p(Θ|τ) 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
2))
10 12 14 16 18 20 0.00 0.05 0.10 0.15 0.20
Implementing mixture approximations December 5, 2014 22 / 31
heterogeneity τ effect Θ τ(1) τ(2) τ ~
2
10 12 14 16 18 20 150 155 160 165 170 effect Θ conditional density p(Θ|τ) 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
2))
10 12 14 16 18 20 0.00 0.05 0.10 0.15 0.20
Implementing mixture approximations December 5, 2014 22 / 31
heterogeneity τ effect Θ τ(1) τ(2) τ ~
2
10 12 14 16 18 20 150 155 160 165 170 effect Θ conditional density p(Θ|τ) 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
2))
10 12 14 16 18 20 0.00 0.05 0.10 0.15 0.20
Implementing mixture approximations December 5, 2014 22 / 31
heterogeneity τ effect Θ τ(1) τ(2) τ ~
2
10 12 14 16 18 20 150 155 160 165 170 effect Θ conditional density p(Θ|τ) 130 140 150 160 170 180 190 0.00 0.02 0.04 0.06 heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
2))
← maximum
10 12 14 16 18 20 0.00 0.05 0.10 0.15 0.20
Implementing mixture approximations December 5, 2014 22 / 31
Implementing mixture approximations December 5, 2014 23 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) τ ~
2
δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) τ ~
2
δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) τ ~
2
τ(2) δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) τ ~
2
τ(2) τ ~
3
τ(3) δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) τ ~
2
τ(2) τ ~
3
τ(3) τ ~
4
τ(4) 1st bin 2nd bin 3rd bin 4th bin (...) δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
heterogeneity τ divergence Ds(p(Θ|τ) || p(Θ|τ ~
i))
τ ~
1
τ(1) τ ~
2
τ(2) τ ~
3
τ(3) τ ~
4
τ(4) 1st bin 2nd bin 3rd bin 4th bin (...) δ 0.00 0.01 0.0 0.5 1.0 1.5 2.0 2.5 3.0
Implementing mixture approximations December 5, 2014 24 / 31
1
2
3
4
5
6
Implementing mixture approximations December 5, 2014 25 / 31
Implementing mixture approximations December 5, 2014 26 / 31
heterogeneity τ effect Θ
50% 90% 9 5 % 99%
10 20 30 40 130 140 150 160 170 180 190
Implementing mixture approximations December 5, 2014 26 / 31
heterogeneity τ effect Θ
50% 90% 9 5 % 99%
10 20 30 40 130 140 150 160 170 180 190
Implementing mixture approximations December 5, 2014 26 / 31
ν-distribution
X
2-quantile of χ2 ν-distribution
Implementing mixture approximations December 5, 2014 27 / 31
x σ = ν x 5 10 15 20 25 1 2 3 4 5 6 7 x P(X ≤ x) 5 10 15 20 25 0.0 0.2 0.4 0.6 0.8 1.0
Implementing mixture approximations December 5, 2014 28 / 31
x σ = ν x 5 10 15 20 25 1 2 3 4 5 6 7 x P(X ≤ x) 5 10 15 20 25 0.0 0.2 0.4 0.6 0.8 1.0
Implementing mixture approximations December 5, 2014 28 / 31
x σ = ν x 5 10 15 20 25 1 2 3 4 5 6 7 x P(X ≤ x) 5 10 15 20 25 0.0 0.2 0.4 0.6 0.8 1.0
Implementing mixture approximations December 5, 2014 28 / 31
i)
Implementing mixture approximations December 5, 2014 29 / 31
i) × πi
Implementing mixture approximations December 5, 2014 29 / 31
i
i) × πi
Implementing mixture approximations December 5, 2014 29 / 31
i
i) × πi
Implementing mixture approximations December 5, 2014 29 / 31
y 2 4 6 8 10 p(y) y 2 4 6 8 10 0.99 1.00 1.01 1.02 q(y) p(y)
Implementing mixture approximations December 5, 2014 30 / 31
y 2 4 6 8 10 p(y) y 2 4 6 8 10 0.99 1.00 1.01 1.02 q(y) p(y) −0.01 0.00 +0.01 +0.02 log(q(y) p(y))
Implementing mixture approximations December 5, 2014 30 / 31
y 2 4 6 8 10 p(y) y +δ −δ 2 4 6 8 10 0.99 1.00 1.01 1.02 q(y) p(y) −0.01 0.00 +0.01 +0.02 log(q(y) p(y))
Implementing mixture approximations December 5, 2014 30 / 31
y 2 4 6 8 10 p(y) y +δ −δ 2 4 6 8 10 0.99 1.00 1.01 1.02 q(y) p(y) −0.01 0.00 +0.01 +0.02 log(q(y) p(y))
Implementing mixture approximations December 5, 2014 30 / 31
Implementing mixture approximations December 5, 2014 31 / 31