. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Quiz Which of the following would be brighter, in terms of the amount of energy delivered to your retina: An MCMC for SNe Data 2/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Quiz Which of the following would be brighter, in terms of the amount of energy delivered to your retina: A supernova, seen from as far away as the Sun is from the Earth, or The detonation of a hydrogen bomb pressed against your eyeball? An MCMC for SNe Data 2/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Quiz Which of the following would be brighter, in terms of the amount of energy delivered to your retina: A supernova, seen from as far away as the Sun is from the Earth, or The detonation of a hydrogen bomb pressed against your eyeball? An MCMC for SNe Data 2/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Quiz Which of the following would be brighter, in terms of the amount of energy delivered to your retina: A supernova, seen from as far away as the Sun is from the Earth, or The detonation of a hydrogen bomb pressed against your eyeball? The answer is: An MCMC for SNe Data 2/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Quiz Which of the following would be brighter, in terms of the amount of energy delivered to your retina: A supernova, seen from as far away as the Sun is from the Earth, or The detonation of a hydrogen bomb pressed against your eyeball? The answer is: The supernova... by 9 orders of magnitude. An MCMC for SNe Data 2/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Objectives Use the luminosity and redshift of Supernovae 1a events to infer cosmological parameters Compute the Likelihood and Posterior Introduce the covariance matrix of the data on the χ2 An MCMC for SNe Data 4/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Objectives Use the luminosity and redshift of Supernovae 1a events to infer cosmological parameters Compute the Likelihood and Posterior Introduce the covariance matrix of the data on the χ2 Implement the Metropolis-Hastings algorithm from scratch An MCMC for SNe Data 4/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Objectives Use the luminosity and redshift of Supernovae 1a events to infer cosmological parameters Compute the Likelihood and Posterior Introduce the covariance matrix of the data on the χ2 Implement the Metropolis-Hastings algorithm from scratch Use the Cholesky decomposition of the covariance matrix of a previous chain to run a refined MCMC An MCMC for SNe Data 4/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Objectives Use the luminosity and redshift of Supernovae 1a events to infer cosmological parameters Compute the Likelihood and Posterior Introduce the covariance matrix of the data on the χ2 Implement the Metropolis-Hastings algorithm from scratch Use the Cholesky decomposition of the covariance matrix of a previous chain to run a refined MCMC Check for convergence using the Gelman-Rubin test An MCMC for SNe Data 4/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | The Model If we know the covariance matrix from the measurements of µ, then χ2(h, ΩΛ) = (µexp − µth(z, h, ΩΛ))T Σ−1 exp (µexp − µth(z, h, ΩΛ)) The likelihood is given by L(h, ΩΛ) ∝ exp(− 1 2 χ2(h, ΩΛ)) An MCMC for SNe Data 6/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Metropolis-Hastings Algorithm Step 1: Pick a point to start the walk (h 0, Ω0) Step 2: Update the point (hi, Ωi) hi+1 = hi + N(0, 1) Ωi+1 = Ωi + N(0, 1) Step 3: Compute the logarithm of the ratio of Likelihoods r = 1 2 χ2(hi, Ωi) − 1 2 χ2(hi+1, Ωi+1) Step 4: If r > 0 accept. Else accept with probability exp(r) An MCMC for SNe Data 8/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Cholesky Decompostion Let Σ be a Symmetric positive-definite matrix Let L be a Triangular matrix such that Σ = LTL This is the Cholesky decomposition of Σ An MCMC for SNe Data 12/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Cholesky Decompostion Let Σ be a Symmetric positive-definite matrix Let L be a Triangular matrix such that Σ = LTL This is the Cholesky decomposition of Σ If x ∼ N(0, I) Lx ∼ N(0, LTIL) = N(0, Σ) Pick Σ as the covariance from a previous MCMC chain An MCMC for SNe Data 12/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Cholesky Decompostion Let Σ be a Symmetric positive-definite matrix Let L be a Triangular matrix such that Σ = LTL This is the Cholesky decomposition of Σ If x ∼ N(0, I) Lx ∼ N(0, LTIL) = N(0, Σ) Pick Σ as the covariance from a previous MCMC chain Use its Cholesky decomposition to do each step An MCMC for SNe Data 12/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Quantifying Convergence: Calculate the mean ¯ xi from each chain, and the total mean from all chains ¯ x Calculate the covariance between n chains, which in our case n = 4 C ¯ x ≡ 1 n − 1 n ∑ i=1 (¯ xi − ¯ x) · (¯ xi − ¯ x)T (1) Calculate the mean of the covariances within each chain Cx ≡ 1 n n ∑ i=1 ⟨ (x − ¯ xi) · (x − ¯ xi)T ⟩ (2) Get the Cholesky decomposition of Cx = LLT Take R as the greatest eigenvalue of L−1C ¯ x[L−1]T An MCMC for SNe Data 16/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | What about a non-flat universe? The comoving distance is given by dc = c 100h ∫ z 0 dz √ ΩM(1 + z)3 + ΩK(1 + z)2 + ΩΛ Then the luminosity distance is d ℓ 1 + z = c 100h √ Ωk sinh ( 100h c √ Ωk dc ) Ωk > 0 dc Ωk = 0 c 100h √ −Ωk sin ( 100h c √ −Ωk dc ) Ωk < 0 An MCMC for SNe Data 20/1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | Affine Invariant Sampling Use several chains at the same time Each sampler Xi uses another random sampler Xj to update it’s position Xnew i = Xj + Z · (Xold i − Xj) Z ∼ 1 √ z , z ∈ (a−1, a) Accept with probability Zn−1 exp(r) An MCMC for SNe Data 23/1