Skip to content

Latest commit

 

History

History
221 lines (96 loc) · 4.62 KB

plot_d_survey.rst

File metadata and controls

221 lines (96 loc) · 4.62 KB

html

Note

Click here <sphx_glr_download_examples_plot_d_survey.py> to download the full example code

sphx-glr-example-title

Constrain Cosmology

Simulate cosmological constraints from a sample of lensed SN.

All of these cosmology tools are based on Coe & Moustakas 2009. and Dan Coe's Fisher matrix starter paper.

Creating a Survey

Start by defining your survey parameters. In this case we have a survey called "Test Survey" with 10 lenses with normally distributed lens and source redshifts, 5% lens model uncertainty and 2% time delay uncertainty.

Gridded Parameter Search

This will make a smooth contour plot for 2 parameters.

plot d survey

sphx-glr-script-out

Out:

No handles with labels found to put in legend.

<AxesSubplot:xlabel='$h$', ylabel='$\\Omega_\\lambda$'>

MCMC-Like Parameter Search

plot d survey

Fisher Matrix Analysis

This will make a 5x5 fisher matrix with the given parameters

Add a prior that assumes perfect knowledge of all other parameters

plot d survey

sphx-glr-script-out

Out:

<AxesSubplot:xlabel='w0', ylabel='wa'>

sphx-glr-timing

Total running time of the script: ( 0 minutes 15.501 seconds)

html