Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Scientific Background: Measuring the Universe with Supernovae

San Diego State University

ASTR 596: Modeling the Universe

“Equipped with his five senses, man explores the universe around him and calls the adventure Science.”
— Edwin Hubble


The 1998 Revolution

In 1998, two independent teams studying distant Type Ia supernovae made a discovery so unexpected that it overturned our understanding of the cosmos: the expansion of the universe is accelerating.

This was shocking. Gravity should be slowing down the expansion. Imagine throwing a ball upward — gravity pulls it back. The universe should behave the same way. But observations showed the opposite: the expansion is speeding up, as if some mysterious “dark energy” is pushing space apart.

The 2011 Nobel Prize in Physics recognized this discovery. In Project 4, you’ll analyze the same data using the same methods.


Why Type Ia Supernovae Are Special

The Physics: A Cosmic Bomb

Type Ia supernovae occur when a white dwarf (the dense core remnant of a Sun-like star) in a binary system accretes matter from its companion. When the white dwarf reaches the Chandrasekhar limit (MCh1.4MM_\text{Ch} \approx 1.4\, M_\odot), electron degeneracy pressure can no longer support it, and the entire star undergoes runaway thermonuclear fusion in seconds.

Why this matters: Because they all explode at roughly the same mass, Type Ia supernovae have remarkably similar intrinsic luminosities. With careful calibration (accounting for light curve shapes and colors), they become standardizable candles — objects whose true brightness we know.

Standard Candles: Nature’s Gift to Cosmologists

If you know an object’s intrinsic luminosity LL and measure its observed flux ff, you can determine its distance:

f=L4πDL2f = \frac{L}{4\pi D_L^2}

where DLD_L is the luminosity distance. In astronomy, we work with magnitudes instead of flux. The distance modulus is:

μ=mM=5log10(DL10 pc)\mu = m - M = 5\log_{10}\left(\frac{D_L}{\text{10 pc}}\right)

where:

For our purposes, we’ll use a more convenient form with DLD_L in Mpc and factoring out the Hubble constant:

μ=255log10(h)+5log10(DLMpc)\mu = 25 - 5\log_{10}(h) + 5\log_{10}\left(\frac{D_L^*}{\text{Mpc}}\right)

where DLDL(h=1)D_L^* \equiv D_L(h=1) is the luminosity distance with hh factored out, and H0=100hkm/s/MpcH_0 = 100h\,\text{km/s/Mpc} is the Hubble constant.


What We’re Measuring: The Contents of the Universe

The distance-redshift (DLz)(D_L-z) relationship depends on what the universe is made of. Three parameters govern cosmic expansion:

Ωm\Omega_m: Matter Density Parameter

Ωmρmρcrit\Omega_m \equiv \frac{\rho_m}{\rho_\text{crit}}

This is the ratio of the current matter density (dark matter + baryonic matter) to the critical density — the density needed for a flat universe. Current measurements give Ωm0.3\Omega_m \approx 0.3.

Physical interpretation: About 30% of the universe’s energy budget is matter. The remaining ~70% is dark energy.

ΩΛ\Omega_\Lambda: Dark Energy Density Parameter

ΩΛΛ3H02\Omega_\Lambda \equiv \frac{\Lambda}{3H_0^2}

This parameterizes the “cosmological constant” Λ\Lambda — Einstein’s biggest “blunder” that turned out to be real. Dark energy has negative pressure and causes accelerated expansion. Measurements give ΩΛ0.7\Omega_\Lambda \approx 0.7.

Physical interpretation: Dark energy dominates the universe today. We don’t know what it is — this is one of the biggest mysteries in physics.

hh: Normalized Hubble Constant

H0=100hkm/s/MpcH_0 = 100h\,\text{km/s/Mpc}

The Hubble constant sets the current expansion rate of the universe. The parameter hh is dimensionless and roughly h0.7h \approx 0.7, meaning H070km/s/MpcH_0 \approx 70\,\text{km/s/Mpc}.

Physical interpretation: For every megaparsec of distance, recession velocity increases by about 70 km/s. This tells us the age and size of the observable universe.

The Flatness Constraint

For a “flat” universe (zero spatial curvature), we have:

Ωm+ΩΛ=1\Omega_m + \Omega_\Lambda = 1

This is consistent with cosmic microwave background observations (Planck 2018: ΩK<0.001|\Omega_K| < 0.001 where ΩK\Omega_K is the curvature parameter).

Why this matters for parameter estimation: The flatness constraint provides a critical simplification. Instead of having three independent parameters (Ωm,ΩΛ,h)(\Omega_m, \Omega_\Lambda, h), we can work with just two parameters (Ωm,h)(\Omega_m, h) by expressing dark energy in terms of matter density:

ΩΛ=1Ωm\Omega_\Lambda = 1 - \Omega_m

This reduces the dimensionality of our inference problem. We’re trading physical generality (allowing for spatial curvature) for statistical precision (tighter constraints on the remaining parameters). When Ωm+ΩΛ1\Omega_m + \Omega_\Lambda \neq 1, we’d need a third parameter, which enlarges uncertainty and introduces additional degeneracies.

Why is this justified? The flatness constraint comes from independent observations (CMB acoustic peaks, baryon acoustic oscillations), not from the supernova data itself. We’re combining multiple lines of evidence — this is more powerful than analyzing supernovae in isolation. The CMB tells us the universe is flat; supernovae tell us what fills that flat universe (matter vs. dark energy).

Physical interpretation: The flat universe assumption is well-motivated by inflationary cosmology, which predicts Ωtotal=1\Omega_{\text{total}} = 1 to extraordinary precision. Our analysis implicitly assumes this paradigm.


The Distance-Redshift Relation

Redshift: A Cosmic Speedometer

When we observe distant supernovae, their light is redshifted — stretched to longer wavelengths—due to cosmic expansion. The redshift zz is defined as:

z=λobsλemitλemit=anowathen1z = \frac{\lambda_\text{obs} - \lambda_\text{emit}}{\lambda_\text{emit}} = \frac{a_\text{now}}{a_\text{then}} - 1

where a(t)a(t) is the cosmic scale factor (normalized so anow=1a_\text{now} = 1).

Physical interpretation: z=0.5z = 0.5 means the universe was 2/3 its current size when the light was emitted. z=1z = 1 means it was half the current size.

The Friedmann Equation

General relativity tells us how the scale factor a(t)a(t) evolves:

(a˙a)2=H02[Ωma3+ΩΛ+(1ΩmΩΛ)a2]\left(\frac{\dot{a}}{a}\right)^2 = H_0^2\left[\Omega_m a^{-3} + \Omega_\Lambda + (1-\Omega_m-\Omega_\Lambda)a^{-2}\right]

This is the Friedmann equation. Each term corresponds to a component with different evolution because each has a different equation of state.

Equation of State: The relationship between pressure pp and energy density ρ\rho for a cosmic fluid:

wpρc2w \equiv \frac{p}{\rho c^2}

where ww is the equation of state parameter. This determines how energy density scales with the scale factor:

ρa3(1+w)\rho \propto a^{-3(1+w)}

The three components:

ComponentwwScaling ρ(a)\rho(a)Physical Reason
Matter (CDM)0a3a^{-3}Volume dilution only
Radiation+1/3+1/3a4a^{-4}Volume dilution + redshift
Dark Energy (Λ\Lambda)-1a0a^{0} (constant)Vacuum energy density doesn’t dilute

Why matter dilutes as a3a^{-3}: As the universe expands, the number density of particles decreases as na3n \propto a^{-3} (inverse volume). Since matter has negligible pressure (w=0w=0), the energy density is just ρm=nmc2a3\rho_m = nm c^2 \propto a^{-3}.

Why dark energy stays constant: An equation of state w=1w=-1 means negative pressure p=ρc2p = -\rho c^2. This is the defining property of a cosmological constant — the energy density of empty space itself, which doesn’t change as space expands.

The Friedmann equation above can be rewritten to show each component’s contribution explicitly:

(a˙a)2=H02[Ωma3+ΩΛ+ΩKa2]\left(\frac{\dot{a}}{a}\right)^2 = H_0^2\left[\Omega_m a^{-3} + \Omega_\Lambda + \Omega_K a^{-2}\right]

where ΩK=1ΩmΩΛ\Omega_K = 1 - \Omega_m - \Omega_\Lambda is the curvature density parameter. For a flat universe, ΩK=0\Omega_K = 0.

Luminosity Distance Formula

The luminosity distance in an expanding universe is:

DL(z)=c(1+z)H00zdzΩm(1+z)3+ΩΛ+(1ΩmΩΛ)(1+z)2D_L(z) = \frac{c(1+z)}{H_0}\int_0^z \frac{dz'}{\sqrt{\Omega_m(1+z')^3 + \Omega_\Lambda + (1-\Omega_m-\Omega_\Lambda)(1+z')^2}}

where c=2.998×105km/sc = 2.998 \times 10^5\,\text{km/s} is the speed of light.

Key insight: The shape of DL(z)D_L(z) depends on (Ωm,ΩΛ,h)(\Omega_m, \Omega_\Lambda, h). By measuring DLD_L at many redshifts, we constrain these parameters.

The Flat Universe Simplification

For a flat universe (Ωm+ΩΛ=1\Omega_m + \Omega_\Lambda = 1), this becomes:

DL(z)=c(1+z)H00zdzΩm(1+z)3+(1Ωm)D_L(z) = \frac{c(1+z)}{H_0}\int_0^z \frac{dz'}{\sqrt{\Omega_m(1+z')^3 + (1-\Omega_m)}}

Computational note: You should implement both methods and verify they agree — this is an excellent validation strategy for your forward model.

Method 1: Numerical Integration using scipy.integrate.quad():

Method 2: Pen (1999) Fitting Formula:

Why implement both? If your two implementations agree to within ~0.4%, you can be confident your forward model is correct. This is how professional astronomers validate their code — independent implementations should give (roughly) the same answer.

The Pen (1999) fitting formula:

DL(z)=cH0(1+z)[η(1,Ωm)η(11+z,Ωm)]D_L(z) = \frac{c}{H_0}(1+z)\left[\eta(1, \Omega_m) - \eta\left(\frac{1}{1+z}, \Omega_m\right)\right]

where:

η(a,Ωm)=2s3+1[1a40.1540sa3+0.4304s2a2+0.19097s3a+0.066941s4]1/8\eta(a, \Omega_m) = 2\sqrt{s^3 + 1}\left[\frac{1}{a^4} - 0.1540\frac{s}{a^3} + 0.4304\frac{s^2}{a^2} + 0.19097\frac{s^3}{a} + 0.066941s^4\right]^{-1/8}

and s3(1Ωm)/Ωms^3 \equiv (1-\Omega_m)/\Omega_m.


Worked Example: Computing Luminosity Distance

Let’s compute DLD_L and μ\mu for a supernova at redshift z=0.5z = 0.5 in a flat universe with Ωm=0.3\Omega_m = 0.3 and h=0.7h = 0.7.

Given:

Step 1: Compute the integral

I=00.5dz0.3(1+z)3+0.7I = \int_0^{0.5} \frac{dz'}{\sqrt{0.3(1+z')^3 + 0.7}}

Evaluating numerically (or using Pen’s formula):

I0.5668I \approx 0.5668

Step 2: Compute luminosity distance

DL=c(1+z)H0I=2.998×105km/s×1.570km/s/Mpc×0.5668D_L = \frac{c(1+z)}{H_0} I = \frac{2.998 \times 10^5\,\text{km/s} \times 1.5}{70\,\text{km/s/Mpc}} \times 0.5668
DL3639MpcD_L \approx 3639\,\text{Mpc}

Step 3: Compute DLD_L^* (with hh factored out)

DL=hDL=0.7×3639=2547MpcD_L^* = h \cdot D_L = 0.7 \times 3639 = 2547\,\text{Mpc}

Step 4: Compute distance modulus

μ=255log10(h)+5log10(DL/Mpc)\mu = 25 - 5\log_{10}(h) + 5\log_{10}(D_L^*/\text{Mpc})
μ=255log10(0.7)+5log10(2547)\mu = 25 - 5\log_{10}(0.7) + 5\log_{10}(2547)
μ=255(0.155)+5(3.406)=25+0.775+17.03\mu = 25 - 5(-0.155) + 5(3.406) = 25 + 0.775 + 17.03
μ42.81mag\mu \approx 42.81\,\text{mag}

Verification: You can check this against Ned Wright’s Cosmology Calculator with these parameters. Your implementation should reproduce this result to within 0.1%\sim 0.1\% accuracy.


How Different Cosmologies Look

The key observational signature is how μ(z)\mu(z) differs between cosmological models:

Matter-dominated universe (Ωm=1,ΩΛ=0\Omega_m = 1, \Omega_\Lambda = 0):

Accelerating universe (Ωm=0.3,ΩΛ=0.7\Omega_m = 0.3, \Omega_\Lambda = 0.7):

Empty universe (Ωm=0,ΩΛ=0\Omega_m = 0, \Omega_\Lambda = 0):

The 1998 teams found that high-redshift supernovae were systematically fainter than predicted by matter-dominated models—direct evidence for cosmic acceleration.


The Data: JLA Sample

The Joint Light-curve Analysis (JLA) sample combines data from:

What you’ll work with:

Why a covariance matrix? Uncertainties are correlated between bins due to:

Ignoring these correlations gives wrong error bars. The full covariance matrix is essential.

Critical importance: If you treat errors as independent (using only a diagonal covariance matrix), you’ll systematically underestimate your uncertainties. Common systematics like photometric calibration errors shift all data points together in the same direction—a calibration error of 2% affects every supernova in the sample. When you ignore correlations, the data appears artificially constraining because you’re counting the same systematic uncertainty 31 separate times instead of once. This is a dangerous mistake in scientific inference that leads to falsely confident conclusions.


The Inference Problem: Forward vs. Inverse

The Forward Problem (Easy)

Given cosmological parameters (Ωm,h)(\Omega_m, h):

  1. Compute DL(zi;Ωm,h)D_L(z_i; \Omega_m, h) for each supernova redshift

  2. Predict μitheory=255log10(h)+5log10(DL/Mpc)\mu_i^\text{theory} = 25 - 5\log_{10}(h) + 5\log_{10}(D_L^*/\text{Mpc})

This is a deterministic calculation — just plug in numbers.

The Inverse Problem (Hard)

Given observed μiobs\mu_i^\text{obs} and covariance C\mathbf{C}:

This is an inference problem. You need:

  1. A likelihood function L(Ωm,hdata)\mathcal{L}(\Omega_m, h | \text{data})

  2. Prior probabilities p(Ωm,h)p(\Omega_m, h)

  3. A way to sample the posterior p(Ωm,hdata)p(\Omega_m, h | \text{data})

That’s where MCMC comes in.


The Likelihood Function

For Gaussian errors with covariance C\mathbf{C}, the log-likelihood is:

lnL(θ)=12i,jnri[C1]ijrj12lnCn2ln(2π)\ln\mathcal{L}(\theta) = -\frac{1}{2}\sum_{i,j}^n r_i\,[\mathbf{C}^{-1}]_{ij}\,r_j - \frac{1}{2}\ln|\mathbf{C}| - \frac{n}{2}\ln(2\pi)

where the residual vector is:

ri=μiobsμitheory(zi;θ)r_i = \mu_i^\text{obs} - \mu_i^\text{theory}(z_i; \theta)

and θ=(Ωm,h)\theta = (\Omega_m, h) for the flat case.

Practical note: The constant terms lnC\ln|\mathbf{C}| and ln(2π)\ln(2\pi) don’t affect MCMC sampling (they cancel in acceptance ratios), so you can omit them:

lnL(θ)=12rTC1r\ln\mathcal{L}(\theta) = -\frac{1}{2}\mathbf{r}^T \mathbf{C}^{-1} \mathbf{r}

Why This Is Hard: Degeneracies and Tensions

Parameter Degeneracies

Ωm\Omega_m and hh are correlated (degenerate). You can increase Ωm\Omega_m (more matter → slower expansion → objects appear closer) and simultaneously increase hh (faster expansion today → objects appear farther) to compensate.

This creates a “banana-shaped” posterior distribution. MCMC efficiently explores this correlated structure.

The Hubble Tension

Different methods give different values for H0H_0:

This 5σ\sim5\sigma discrepancy is called the Hubble Tension—an active crisis in cosmology.

Why this is a big deal: A 5σ discrepancy is statistically overwhelming — if both measurements are correct and systematic errors properly accounted for, there’s only about a 1-in-3.5-million chance this arose from random statistical fluctuations. When two precision measurements disagree at this level, something fundamental is wrong. Possible explanations:

  1. Unknown systematics: One (or both) measurements has unaccounted systematic errors

  2. New physics in the early universe: Extra radiation, early dark energy, or modifications to expansion history before recombination

  3. Breakdown of ΛCDM: Our standard cosmological model may be incomplete

  4. Local inhomogeneities: We may live in an underdense region affecting local measurements

Your measurement will fall somewhere between these values (around h0.70h \approx 0.70), illustrating the tension firsthand. This isn’t a textbook exercise — you’re exploring an open question at the frontier of cosmology. The resolution of the Hubble Tension may require new physics beyond the Standard Model of cosmology, but that is beyon the scope of this course.


Connection to Module 5: This Is a Forward Model

Recall from Module 5 Part 1 the fundamental structure of computational science:

  1. Physical law → Mathematical model (Friedmann equations)

  2. Forward model → Predict observables (μ\mu from Ωm,h\Omega_m, h)

  3. Inverse problem → Infer parameters from noisy measurements

  4. Sampling → Use MCMC to explore parameter space

This project brings together everything:

You’re not just analyzing data — you’re measuring the composition of the universe using Nobel Prize-winning methods you built from scratch. This is the project where you are legitimately modeling the universe.


Further Reading

Original Papers:

Data Release:

Cosmology Background:

Verification Tools:


Now proceed to the Project 4 Description to learn what you’ll implement.