html
Note
Click here <sphx_glr_download_examples_plot_d_survey.py>
to download the full example code
sphx-glr-example-title
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.
sphx-glr-script-out
Out:
No handles with labels found to put in legend.
<AxesSubplot:xlabel='$h$', ylabel='$\\Omega_\\lambda$'>
MCMC-Like Parameter Search
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
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
sphx-glr-signature