Lecture 4 Model Selection & Development
Joe Zuntz
Lecture 4 Model Selection & Development Joe Zuntz Evidence - - PowerPoint PPT Presentation
Lecture 4 Model Selection & Development Joe Zuntz Evidence Model Selection Given two models, how can we compare them? Simplest approach = compare ML Does not include uncertainty or Occams Razor Recall that all our
Joe Zuntz
conditional on the model, as in Bayes: P(p|M) = P(d|pM)P(p|M) P(d|M)
Bayes Factor B:
P(M|d) = P(d|M)P(M) P(d)
Model Priors
P(M1|d) P(M2|d) = P(d|M1) P(d|M2) P(M1) P(M2)
Bayesian Evidence Values
P(d|pM) P(d|p)
parameter estimation
to prior P(d|M) = Z P(d|pM)P(p|M)dp
(for when one model is a subset of another)
Bayesian information criterion BIC Work in various circumstances
version of M2
M2 = wCDM
P(d|Ω, M1) = P(d|Ω, w = −1, M2) P(Ω|w = −1, M2) = P(Ω, M1)
P(w = −1|d, M2) P(w = −1|M2) Posterior, integrated
Prior
Z L(θ)p(θ)dθ = Z L(X)dX ≈ X LiδXi dX ≡ P(θ)dθ X = remaining prior volume
> cosmosis demos/demo9.ini > postprocess -o plots -p demo9 demos/demo9.ini
Parameters Distance Calculation Supernova Likelihood Saved Cosmological Theory Information Total Likelihood
https://bitbucket.org/joezuntz/cosmosis/wiki/Demo9
H0 Likelihood
E[f(x)] = Z P1(x)f(x)dx ≈ 1 N X
Chain 1
f(xi) = Z ✓P1(x) P2(x)f(x) ◆ P2(x)dx ≈ 1 N X
Chain 2
f(xi)P1(xi) P2(xi)
distribution P1
weights
P(a|bcd…), P(b|acd…), P(c|abd…), … P(z|abc…y)
for i = 1... ai+1 ∼ P(ai+1|bi) bi+1 ∼ P(bi+1|ai+1)
update as vectors
for i = 1... for k = 1...nparam xi+1
k
∼ P(xi+1
k
|xi+1
1
, xi+1
2
, ..., xi+1
k−1, xi k+1, xi k+2, ..., xi nparam)
making a mistake.
Libraries, Libraries, Libraries, Libraries, Libraries, Libraries, Libraries, Libraries, Libraries, Libraries.
Cosmosis Your Code Interface
write an interface connecting it to cosmosis
setup, execute
https://bitbucket.org/joezuntz/cosmosis
Cepheids
LMC http://bit.ly/1vQ4RTV Ex-gal http://bit.ly/1tJzRBT
cosmological_parameters
ΩΛ(z) = ΩΛ(0) (1 + z)3(1+w0−wz) exp (−3wzz) w(z) = w0 + wzz
ΩΛ(z) = ΩΛ(0) (1 + z)3(1+w0−wz) exp (−3wzz) Ωm(z) = Ωm(1 + z)3 H(z) = H0 p Ωm(z) + ΩΛ(z) Dc(z) = c Z z 1 H(z0)dz0 DL(z) = (1 + z)Dc(z) µ(z) = 5 log10 DL Mpc − 25
http://nbviewer.ipython.org/gist/joezuntz/d4b82ce5b3010870aa6b
connect to cosmosis
look like - adapt these for your code