Problem: What is the fractional amount of matter and energy of the universe?
Solution: I collected supernova data from an international collaboration survey, built from scratch a non-naive bayes regression algorithm to fit the luminosity distance curve and used Bayesian inference to find the probabilities of the parameters values, given the data collected. Then, I used the Markov Chain Monte Carlo method to estimate the final values and respective uncertainties.
Result: The fractions of matter and radiation that I estimated are in agreement with the Planck Satellite 2018 release.
In this project we will use the Pantheon+SH0ES luminosity distances data of 1701 Supernovae to estimate cosmological parameters. The parameters that we are interested in are the Hubble constant
The data of 1701 supernovae luminosity distances was extracted from the Phanteon+SH0ES Git Hub Data Release, download the data and set your directory properly.
The luminosity distance in a flat expanding Friedmann-Lemaitre-Robertson-Walker university is given by:
where
The covariance matrix will be imported from the Pantheon+SH0ES Git Hub Data Release. The format of the covariance (.cov) file is NxN lines where the matrix should be read in sequentially. The first line gives the number of rows/columns in the matrix (N=1701). The STATONLY matrix has only elements that correspond to the statistical distance uncertainties for individual SNe. This includes intrinsic scatter off-diagonal components when the light-curves represent the same SN observed by different surveys.
The likelihood distribution that will be used is
where
The Scipy minimize function will be used to compute the parameters
The corner plot shows the marginalized distribution for each parameter independently in the histograms along the diagonal and then the marginalized two dimensional distributions in the other panels.
We have analysed the supernova data from Phanteon+SH0ES collaboration to estimate the universe fractions of matter, vaccum energy and the the Hubble parameter using bayesian inference. These parameters was computed considering 10000 Markov Chains generated by 2000 walkers using the emcee implementation of the Monte Carlo algorithm. Since about 40 steps are needed for the chain to "forget" where it started we discarded the initial 100 steps. The final estimation choosen was the 50-th percentile of the flatted samples and the uncertainty the diference of the central value with the 25-th and the 75-th percentiles respectively. The final values encountered are matter density
the dark energy density
and the Hubble parameter
which agree with the direct observation of these parameters released by th Planck Satelite collaboration (2018):