Skip to content

This project estimates key cosmological parameters like the Hubble constant (H₀) and matter density (Ωₘ) using Type Ia supernova data. It involves distance modulus fitting, cosmological model calculations, and analysis of low-z and high-z supernova subsets.

Notifications You must be signed in to change notification settings

1810suman/Supernova_Cosmology_Project

Repository files navigation

🔭 Supernova Cosmology Project: Measuring Cosmological Parameters Using Type Ia Supernovae

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.

📦 Project Overview

  • 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

🗂 Dataset

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.

🛠 Approach and Methodology

  1. Data Preparation: Load and clean the Pantheon+SH0ES dataset
  2. Hubble Diagram: Plot distance modulus (μ) vs. redshift (z) with logarithmic scaling for clear visualization
  3. 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
  4. Parameter Estimation: Extract best-fit values and uncertainties for H₀ and Ωₘ
  5. Age of Universe: Integrate inverse Hubble parameter to compute cosmic age in Gyr
  6. Residual Analysis: Plot residuals (observed - model μ) to check fit quality
  7. Low-z and High-z Comparison: Fit subsets of supernovae data to investigate redshift-dependent variations in H₀

📊 Visual Outputs

  • Hubble Diagram: μ vs. z with model overlay
  • Residual Plot: Residuals vs. redshift to assess fit quality
  • Low-z and High-z Hubble constant comparison

🔧 Requirements

Install dependencies using:

pip install numpy pandas matplotlib scipy astropy

💡 Insights & Interpretations

  • 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

🧭 Getting Started

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.

🌌 Scientific Context

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.

📂 Repository Contents

  • Pantheon+SH0ES.txt — Supernova dataset
  • supernova_cosmology.ipynb — Complete analysis notebook
  • README.md — Project overview and instructions
  • requirements.txt — List of required Python packages

About

This project estimates key cosmological parameters like the Hubble constant (H₀) and matter density (Ωₘ) using Type Ia supernova data. It involves distance modulus fitting, cosmological model calculations, and analysis of low-z and high-z supernova subsets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published