CosmoSIS Webinar Part 1

Similar documents
CosmoSIS a statistical framework for precision cosmology. Elise Jennings

Introduction to CosmoMC

Physics 661. Particle Physics Phenomenology. October 2, Physics 661, lecture 2

Statistics and Prediction. Tom

Modern Cosmology / Scott Dodelson Contents

The ultimate measurement of the CMB temperature anisotropy field UNVEILING THE CMB SKY

Large Scale Bayesian Inference

BAO & RSD. Nikhil Padmanabhan Essential Cosmology for the Next Generation VII December 2017

Monte Carlo Markov Chains: A Brief Introduction and Implementation. Jennifer Helsby Astro 321

Mapping Dark Matter with the Dark Energy Survey

Effective Field Theory approach for Dark Energy/ Modified Gravity. Bin HU BNU

Forward Problems and their Inverse Solutions

Introduction to COSMOMC

Cosmological Constraints on Dark Energy via Bulk Viscosity from Decaying Dark Matter

Dark Energy in Light of the CMB. (or why H 0 is the Dark Energy) Wayne Hu. February 2006, NRAO, VA

Introduction to Bayes

Planck 2015 parameter constraints

Bayesian Inference in Astronomy & Astrophysics A Short Course

Multimodal Nested Sampling

Neutrinos in the era of precision Cosmology

n=0 l (cos θ) (3) C l a lm 2 (4)

Galaxies 626. Lecture 3: From the CMBR to the first star

@R_Trotta Bayesian inference: Principles and applications

Active Learning for Fitting Simulation Models to Observational Data

Cosmology II: The thermal history of the Universe

Markov Chain Monte Carlo

Contents. Part I: Fundamentals of Bayesian Inference 1

Introduction to Bayesian methods in inverse problems

Who was Bayes? Bayesian Phylogenetics. What is Bayes Theorem?

Baryon Acoustic Oscillations (BAO) in the Sloan Digital Sky Survey Data Release 7 Galaxy Sample

Bayesian Phylogenetics

To Lambda or not to Lambda?

Advanced Statistical Methods. Lecture 6

An introduction to Markov Chain Monte Carlo techniques

An introduction to Bayesian reasoning in particle physics

Cosmology and Large Scale Structure

Hierarchical Bayesian Modeling

Using training sets and SVD to separate global 21-cm signal from foreground and instrument systematics

Cosmology. Introduction Geometry and expansion history (Cosmic Background Radiation) Growth Secondary anisotropies Large Scale Structure

Elise Jennings University of Chicago

Brief Introduction to Cosmology

Dark Energy. Cluster counts, weak lensing & Supernovae Ia all in one survey. Survey (DES)

Really, really, what universe do we live in?

Weak gravitational lensing of CMB

Parameter estimation and forecasting. Cristiano Porciani AIfA, Uni-Bonn

Cosmological Constraints from a Combined Analysis of Clustering & Galaxy-Galaxy Lensing in the SDSS. Frank van den Bosch.

Forthcoming CMB experiments and expectations for dark energy. Carlo Baccigalupi

Nonparametric Inference and the Dark Energy Equation of State

The State of Tension Between the CMB and LSS

Determining neutrino masses from cosmology

Statistical Searches in Astrophysics and Cosmology

Shear Power of Weak Lensing. Wayne Hu U. Chicago

Power spectrum exercise

MontePython Exercises IFT School on Cosmology Tools

COSMIC MICROWAVE BACKGROUND ANISOTROPIES

Signatures of MG on. linear scales. non- Fabian Schmidt MPA Garching. Lorentz Center Workshop, 7/15/14

A5682: Introduction to Cosmology Course Notes. 11. CMB Anisotropy

Monte Carlo in Bayesian Statistics

Complementarity in Dark Energy measurements. Complementarity of optical data in constraining dark energy. Licia Verde. University of Pennsylvania

Log Gaussian Cox Processes. Chi Group Meeting February 23, 2016

Polarization from Rayleigh scattering

Rupert Croft. QuickTime and a decompressor are needed to see this picture.

A Bayesian Approach to Phylogenetics

Constraints on Anisotropic Cosmic Expansion from Supernovae

LSST Cosmology and LSSTxCMB-S4 Synergies. Elisabeth Krause, Stanford

STA 4273H: Statistical Machine Learning

Lecture 5. G. Cowan Lectures on Statistical Data Analysis Lecture 5 page 1

Science with large imaging surveys

Fisher Matrix Analysis of the Weak Lensing Spectrum

Leïla Haegel University of Geneva

The Principal Components of. Falsifying Cosmological Paradigms. Wayne Hu FRS, Chicago May 2011

Markov Chain Monte Carlo

Bayesian Networks in Educational Assessment

CPSC 540: Machine Learning

Approximate Bayesian computation: an application to weak-lensing peak counts

Cosmological tests of ultra-light axions

Baryon Acoustic Oscillations Part I

Statistical Methods in Particle Physics Lecture 1: Bayesian methods

Planck was conceived to confirm the robustness of the ΛCDM concordance model when the relevant quantities are measured with much higher accuracy

The Particle Filter. PD Dr. Rudolph Triebel Computer Vision Group. Machine Learning for Computer Vision

arxiv: v1 [astro-ph.co] 3 Apr 2019

Theoretical developments for BAO Surveys. Takahiko Matsubara Nagoya Univ.

The History of the Universe in One Hour. Max Tegmark, MIT

27 : Distributed Monte Carlo Markov Chain. 1 Recap of MCMC and Naive Parallel Gibbs Sampling

H 0 is Undervalued BAO CMB. Wayne Hu STSCI, April 2014 BICEP2? Maser Lensing Cepheids. SNIa TRGB SBF. dark energy. curvature. neutrinos. inflation?

Neutrino Mass Limits from Cosmology

Cross-correlations of CMB lensing as tools for cosmology and astrophysics. Alberto Vallinotto Los Alamos National Laboratory

Constraints on primordial abundances and neutron life-time from CMB

Observational evidence for Dark energy

Outline. Cosmological parameters II. Deceleration parameter I. A few others. Covers chapter 6 in Ryden

Cosmological Tests of Gravity

The impact of relativistic effects on cosmological parameter estimation

A5682: Introduction to Cosmology Course Notes. 11. CMB Anisotropy

What do we really know about Dark Energy?

Physical Cosmology 18/5/2017

Baryon acoustic oscillations A standard ruler method to constrain dark energy

Lecture 03. The Cosmic Microwave Background

A FIGURE OF MERIT ANALYSIS OF CURRENT CONSTRAINTS ON TESTING GENERAL RELATIVITY USING THE LATEST COSMOLOGICAL DATA SETS.

Parameter Estimation. William H. Jefferys University of Texas at Austin Parameter Estimation 7/26/05 1

Beyond ΛCDM: Dark energy vs Modified Gravity

Transcription:

CosmoSIS Webinar Part 1 An introduction to cosmological parameter estimation and sampling Presenting for the CosmoSIS team: Elise Jennings (Fermilab, KICP) Joe Zuntz (University of Manchester) Vinicius Miranda (University of Pennsylvania)

Goal of this webinar - How do I generate images like this if I have some data? - How do I combine datasets to produce different contours? - If a sampler is performing poorly, can I use a different one?

Overview Models and parameter spaces CosmoSIS Sampling methods Metropolis Hastings theory & example in CosmoSIS Making plots from MCMCs

Cosmological parameters Given the precision of our current and future experiments, we rarely can use analytical solutions to predict observables! Calculations are getting increasingly complicated. Examples: CMB: Require Boltzmann Codes, e.g. CAMB LSS: Need codes to model non-linear corrections to the matter power spectrum, e.g. Halofit, emulators

Model Parameter General meaning Needed for Flat LCDM Omega_m Matter density fraction Background evolution H_0 Expansion rate Background evolution Omega_b Baryon density fraction Thermal history Adding parameters to the model A_s, sigma_8 Variance of cosmic density structure Structure formation n_s Structure scale-dependence power law Structure formation LCDM Omega_k Curvature Background evolution nulcdm Omega_nu Neutrino density fraction Small-scale structure massive_nu Number of massive neutrinos Small-scale structure massless_nu Number of massless neutrinos Small-scale structure wcdm w Dark Energy constant equation of state Background evolution Extended DE w_a, w_p,... Dark Energy varying equation of state Background evolution

Nuisance parameters Most datasets require additional Nuisance parameters These can describe - Data-specific physical effects (e.g.: supernova light curve standardization) - Foregrounds (e.g. dust foreground parameters) - Parameters for instrument systematics (e.g. calibration parameters) Example: The Planck 2015 likelihood can have 16 different nuisance parameters: https://wiki.cosmos.esa.int/planckpla2015/index.php/cmb_spectrum_%26_likelihood_code

Parameter spaces M(Ω b,ω m,h 0,...) Inference takes place in a multi-dimensional parameter space. -can be highly non-gaussian! Given a model, M: which regions of parameter space are reasonable fits to the data? Ω b H 0 Probabilities in this space are functions of many variables: P(Ω b,ω m,h 0,...) Caution: Intuition becomes bad as the dimension of the parameter space increases. Ω m Does M(Ω b,ω m,h 0,...) resemble the data at a given point?

Parameter estimation: what does a sampler output? H 0 = 78 km/s/mpc Best fit only H 0 = (78 ± 8) km/s/mpc simple error bar (Max likelihood methods) H 0 = A true measurement of a parameter is a probability function showing its Posterior probability distribution function. Often summarize distributions using just mean and variance Suyu et al (2016) This is only a complete description in special cases like Gaussian distributions

Bayes Theorem P(params data, model) = Likelihood: we must determine this function of the model and data from the physics of the problem L(data params, model) P(params model) P(data model) Prior: previous information Posterior distribution for the parameters: the thing we want! Evidence: normalizing constant (for now; also used to compare entire models) Set of parameters

Constraining cosmological parameters given data Step 1: At given point in parameter space: generate a prediction M(Ω b, Ω m, H 0,...). Example: compute CMB power spectrum Step 2: Compute a probability of the data given that prediction Example: Use Planck likelihood Step 3: Use Bayes Theorem to get the posterior given some prior Example: use local measurements of H0 as a prior Step 4: Sampler proposes next point in the parameter space to evaluate likelihood Example: MCMC step through parameter space using proposal distribution Given the precision of current experiments, developing software for steps 1 and 2 can be quite challenging.

Overview Models and parameter spaces CosmoSIS Sampling methods Metropolis Hastings theory & example in CosmoSIS Making plots from MCMCs

CosmoSIS goal: connecting components Model Prediction Codes Sampling Methods Cosmology Data Sets

Example: CosmoSIS cosmological model Type 1A Supernova Likelihood Input Parameters Distance modulus calculation mu(z) Calculate Likelihood of observed supernova mu, z values given SN data Output Likelihood 1 2 3 4 5 6 The Data Block Cosmo Parameters Ω m, H 0, Ω b Background Arrays D(z), H(z), mu(z) Evaluated Likelihood

CosmoSIS homework In CosmoSIS we can evaluate a single likelihood using the test sampler. We will show this using CosmoSIS Demo 2 now, which generates a single CMB likelihood. See the wiki for how to run this yourself.

Sampling methods Metropolis-Hastings Nested Sampling (Multinest) Ensemble Samplers (Emcee, Kombine) There are many sampling methods available, not specific to cosmology, with many approaches and implementations Approximate Bayesian Computation Grid Explorers (Snake) Fisher Forecasting Maximum Likelihoods (Minuit)

Cosmology model prediction codes CAMB CLASS CosmoLike SNANA MGCAMB MGCLASS IsItGR EFTCamb Colossus CosmoCalc AstroPy CosmoMC Cosmolopy Many codes to predict different ingredients and steps in cosmological models.

Cosmology data sets Cepheid Variables Type IA Supernovae Baryon Acoustic Oscillations Strong Lensing Light element abundances Globular cluster ages Redshift Space Distortions Weak Lensing Large-Scale Structure Cluster Counts 21cm line structure Lyman Alpha Forest Cosmic Microwave Background Each probe is sensitive to different cosmological parameters and have different nuisance parameters

CosmoSIS: more complex example - lensing spectra Sequence of calculations is needed for structure likelihoods like lensing Like many observables, lensing depends on matter power spectrum Each module solves one complex task (if you own a state-of-the-art code - share them. Yaml files guides citation) General picture remains the same: Solve equations to compute underlying theory prediction Use stats to compute likelihood

Overview Models and parameter spaces CosmoSIS Sampling methods Metropolis Hastings theory & example in CosmoSIS Making plots from MCMCs

Sampling methods We want to have a set of points the parameter space are representative of the posterior distribution 16 samples Higher density <=> higher probability Density ratio <=> Probability ratio 512 samples 8192 samples Sample moments ~ posterior moments (modulo shot noise) Volume where 68% of the points are located -> 68% confidence region

Sampling methods We want to have a set of points the parameter space are representative of the posterior distribution 1. Need to efficiently explore areas of good fit This is not trivial in an high-dimensional space Classical example: n-dimensional sphere contained in an n-dimensional cube We want the number of points needed to represent the posterior to not be an exponential function of the number of dimensions

Sampling methods We want to have a set of points the parameter space are representative of the posterior distribution 1. Need to efficiently explore areas of good fit This is not trivial for arbitrary shapes Classical example: banana shape posterior We want methods that are robust to a variety of posterior shapes

Sampling methods We want to have a set of points the parameter space are representative of the posterior distribution 1. Need to efficiently explore areas of good fit This is not trivial for arbitrary problems Classical example: problems with fast/slow dimensions We will see that there are a variety of methods and no method can claim to be the best one in all situations

Overview Models and parameter spaces CosmoSIS Sampling methods Metropolis Hastings theory & example in CosmoSIS Making plots from MCMCs

Metropolis-Hastings Most approaches are in a class called Monte Carlo Markov Chains (MCMC) Many algorithms but important classic is Metropolis-Hastings

Metropolis-Hastings We want to represent the entire posterior distribution Therefore samples must be able to go from high to low probability regions

Metropolis-Hastings We want to represent the entire posterior distribution Go from low to high probability regions is always allowed.

Metropolis-Hastings We want to represent the entire posterior distribution Sometimes going from high to low probability regions is allowed.

Metropolis-Hastings We want to represent the entire posterior distribution Transition from high to low probability regions depends on the exact probability ratio

Metropolis-Hastings When a new proposed step is rejected, multiplicity of the current point must increase

How do I know when to stop sampling? Determining convergence is not trivial. What converge means may depend somewhat on what you want Look at trace plots -> Check Gelman-Rubin test Evaluate Z scores What if posterior is multi-modal? How to check errors on the contours? What if likelihoods based on posterior density is needed (KDE for example)?

Overview Models and parameter spaces CosmoSIS Sampling methods Metropolis Hastings theory & example in CosmoSIS Making plots from MCMCs

Metropolis-Hastings: CosmoSIS example We will now switch to a terminal and run a Metropolis-Hastings example: > cosmosis demos/metropolis.ini

Plots & Constraints from MCMC By construction we can make probability density plots from MCMCs by making a simple histogram in 1D or 2D This automatically marginalizes over the other parameters Can also smooth these to remove some of the scatter

CosmoSIS Plotting Demo 9: Scatter Plots > postprocess param_file_name.ini or > postprocess chain.txt Demo 1: Basic Cosmology Plots Demo 5: 2D Plots (smoothed)

More Questions & Further Reading Demos can be found on the CosmoSIS Wiki: https://bitbucket.org/joezuntz/cosmosis/wiki/home