This project uses observational data from the Pantheon+SH0ES dataset to measure the Hubble constant (H₀), estimate the age of the Universe, and explore key aspects of cosmic expansion history through Type Ia supernova observations.
- Plot the Hubble Diagram (Distance Modulus vs. Redshift)
- Fit a Flat ΛCDM Cosmological Model to derive Hubble constant (H₀) and matter density (Ωₘ)
- Estimate the age of the Universe using the fitted parameters
- Analyze residuals to assess model accuracy and identify trends
- Explore results by splitting the dataset into low-redshift and high-redshift subsets
The project uses the Pantheon+SH0ES dataset, containing calibrated distance moduli, redshifts, and uncertainties for Type Ia supernovae. Data is cleaned to exclude rows with missing or invalid values before analysis.
- Data Preparation: Load and clean the Pantheon+SH0ES dataset
- Hubble Diagram: Plot distance modulus (μ) vs. redshift (z) with logarithmic scaling for clear visualization
- Cosmological Model:
- Assume a flat ΛCDM model
- Compute the theoretical distance modulus μ(z, H₀, Ωₘ) using luminosity distance and E(z)
- Fit model to observational data using
scipy.optimize.curve_fit
- Parameter Estimation: Extract best-fit values and uncertainties for H₀ and Ωₘ
- Age of Universe: Integrate inverse Hubble parameter to compute cosmic age in Gyr
- Residual Analysis: Plot residuals (observed - model μ) to check fit quality
- Low-z and High-z Comparison: Fit subsets of supernovae data to investigate redshift-dependent variations in H₀
- Hubble Diagram: μ vs. z with model overlay
- Residual Plot: Residuals vs. redshift to assess fit quality
- Low-z and High-z Hubble constant comparison
Install dependencies using:
pip install numpy pandas matplotlib scipy astropy
- Compare derived H₀ with Planck18 and other literature values
- Estimate Universe's age assuming Ωₘ = 0.3, discuss sensitivity to Ωₘ
- Comment on differences in H₀ for low and high redshift samples
- Discuss assumptions made (flatness, cosmological constant) and potential impacts of relaxing them
Clone the repository and run the Jupyter Notebook to reproduce all analysis steps. PDF export of the notebook can be provided for submission or reporting.
Type Ia supernovae are considered standardizable candles, providing powerful probes for measuring cosmic expansion and dark energy effects. This project follows the modern approach used in observational cosmology to constrain Hubble constant discrepancies and improve understanding of the Universe's history.
Pantheon+SH0ES.txt
— Supernova datasetsupernova_cosmology.ipynb
— Complete analysis notebookREADME.md
— Project overview and instructionsrequirements.txt
— List of required Python packages