Skip to main content
Sandbox Physics
Gravitational-wave standard sirens

Recomputing a bright-siren and a dark-siren Hubble constant

Sandbox Physics ·

From the public GWTC-1 distance samples of GW170817 and a single Gaussian Hubble-flow velocity, we recomputed a bright-siren posterior with its maximum at 68.5 km s−1 Mpc−168.5\,\mathrm{km\,s^{-1}\,Mpc^{-1}} and a minimal 68.3 percent interval from 60.960.9 to 86.486.4. The published value is 70.0−8.0+12.070.0^{+12.0}_{-8.0}. The difference is explained by two simplifications listed below. On synthetic universes, the same inference with the selection normalisation is calibrated for both bright and dark sirens and biased without it.

Open the standard sirens Lab

This guide lists every input, command, version, output and failure case so that you can repeat both parts. The physics is in from one distance and one redshift to the Hubble constant and dark sirens, galaxy catalogs and the selection normalisation.

What is real data and what is synthetic

Table 5.1 The two parts of this guide.
PartDataStatus
GW170817 bright sirenLVK GWTC-1 posterior samples, sky fixed to the counterpartreal detector data, reanalysed by LVK
Hubble-flow velocity3017±166 km s−13017\pm166\,\mathrm{km\,s^{-1}} from the discovery paperpublished measurement
Calibration studyevents, galaxies and noise drawn by our scriptsynthetic, known injected cosmology
Reference eventten listed galaxy velocities and two amplitudessynthetic, used to cross-check the Lab

The samples come from the GWTC-1 data release, document LIGO-P1800370, version 5, file GW170817_GWTC-1.hdf5. The page states no licence, so we do not redistribute the file. The script downloads it and refuses to run if the SHA-256 digest differs. LIGO and Virgo, LIGO-P1800370-v5: Parameter estimation sample release for GWTC-1

Environment

We ran everything with Python 3.9.6, NumPy 1.26.4, SciPy 1.13.1 and h5py 3.14.0 on macOS. Units are megaparsecs for distance, km s−1\mathrm{km\,s^{-1}} for velocity and km s−1 Mpc−1\mathrm{km\,s^{-1}\,Mpc^{-1}} for the Hubble constant. Keep the downloaded file and the scripts in separate folders.

mkdir -p siren-check/data siren-check/scripts
cd siren-check/scripts
curl --remote-name-all "https://sandboxphysics.com/stories/standard-sirens/materials/{siren_model.py,synthetic_siren_study.py,recompute_gw170817_bright_siren.py,study-inputs.json}"
python3 -m venv ../venv && ../venv/bin/pip install numpy==1.26.4 scipy==1.13.1 h5py==3.14.0

The files are siren_model.py, synthetic_siren_study.py, recompute_gw170817_bright_siren.py and study-inputs.json.

Step 1: recompute GW170817

../venv/bin/python recompute_gw170817_bright_siren.py ../data/GW170817_GWTC-1.hdf5 gw170817-outputs.json

The script downloads the file if it is missing and checks the digest

eff59472991bb0f0fa8c1e58057093ce07b82eb4c112364e3578ba16fe54eca9

It reads the distance samples of the low-spin and high-spin runs. Because these samples were drawn with a prior proportional to d2d^2, the same prior the discovery paper used, the distance integral becomes a sample mean:

p(H0∣x,vH)∝p(H0) 1S∑s=1Sexp⁡ ⁣[−(vH−H0ds)22σv2],p(H_0\mid x,v_H)\propto p(H_0)\,\frac1S\sum_{s=1}^{S}\exp\!\left[-\frac{(v_H-H_0d_s)^2}{2\sigma_v^2}\right],

with vH=3017v_H=3017, σv=166\sigma_v=166 and SS samples. The discovery paper shows that the selection term is constant for a distance prior. Abbott et al., A gravitational-wave standard siren measurement of the Hubble constant, Methods

Table 5.2 Results, from gw170817-bright-siren-outputs.json. Intervals are minimal 68.3 percent intervals on a grid with step 0.050.05.
RunSamplesDistance median, 16 to 84 percentPriorMaximumInterval
Low spin8078807840.040.0, 30.830.8 to 45.4 Mpc45.4\,\mathrm{Mpc}1/H01/H_068.568.560.960.9 to 86.486.4
Low spin80788078sameflat69.269.261.261.2 to 91.991.9
High spin4041404141.741.7, 34.634.6 to 45.7 Mpc45.7\,\mathrm{Mpc}1/H01/H_068.368.361.361.3 to 80.680.6
Published43.8−6.9+2.9 Mpc43.8^{+2.9}_{-6.9}\,\mathrm{Mpc}1/H01/H_070.070.062.062.0 to 82.082.0

The low-spin posterior mean is 80.980.9, against the published 7878.

Why our numbers differ from the published ones

The discovery paper used the parameter estimation available when it was written, with a distance of 43.8−6.9+2.9 Mpc43.8^{+2.9}_{-6.9}\,\mathrm{Mpc}. The GWTC-1 samples are a later reanalysis whose low-spin distance median is 40.0 Mpc40.0\,\mathrm{Mpc}. A shorter distance raises the implied H0H_0 for most samples and widens the high side. The discovery analysis also modelled the measured recession velocity and the peculiar velocity as separate terms, with a flat prior on vpv_p between −1000-1000 and 1000 km s−11000\,\mathrm{km\,s^{-1}}, where we use one Gaussian. Abbott et al., A gravitational-wave standard siren measurement of the Hubble constant, Methods, Eqs. 4 to 9 We did not test which simplification causes how much of the difference. Treat our numbers as a recomputation to set beside the published result.

Step 2: calibrate on synthetic universes

../venv/bin/python synthetic_siren_study.py study-inputs.json synthetic-study-outputs.json

The run took 51 seconds on a laptop. The model is deliberately restricted. Each event is recorded as two polarisation amplitudes with unit Gaussian noise; the detection threshold is a signal-to-noise ratio of 1212; the cosmology is flat with Ωm=0.3\Omega_m=0.3 and catalogs end at z=0.07z=0.07. The phase, polarisation angle and chirp mass are treated as known. The random seed is 7115471154, so a rerun gives identical numbers.

Table 5.3 Main inputs, from study-inputs.json.
InputValue
Face-on signal-to-noise ratio at 100 Mpc100\,\mathrm{Mpc}1515
Peculiar-velocity spread200 km s−1200\,\mathrm{km\,s^{-1}}
Prior on H0H_0flat, 2020 to 160160
Bright trials, dark trials400400, 250250
Galaxies per dark catalog4040
Monte Carlo events for the selection check400000400000
Table 5.4 Results, from synthetic-study-outputs.json. Expected coverage is 0.6830.683.
CheckResultPass
Selection fraction at H0=70H_0=700.02189±0.000230.02189\pm0.00023 by Monte Carlo, 0.021790.02179 by quadratureyes
β(80)/β(40)\beta(80)/\beta(40) at ρ100=4\rho_{100}=47.927.92, expected 88yes
Bright with β\betacoverage 0.7000.700, KS p=0.083p=0.083yes
Bright without β\betacoverage 0.6530.653, KS p=1.2×10−9p=1.2\times10^{-9}no, as expected
Dark with catalog β\betacoverage 0.7280.728, KS p=0.85p=0.85yes
Dark without β\betacoverage 0.3840.384, KS p=8×10−42p=8\times10^{-42}no, as expected
40 bright events at H0=70H_0=70, with β\beta71.971.9, from 70.370.3 to 73.873.8consistent
40 dark events at H0=70H_0=70, with β\beta67.967.9, from 65.365.3 to 70.670.6consistent

The same files hold a fixed reference event. The browser model behind the Lab reproduces its distance, bright and dark posteriors to within 0.50.5, 0.60.6 and 1.51.5 of the Python values; a repository test checks this.

Failure cases

Three failure cases are part of the output on purpose.

  1. Selection ignored. Rows 4 and 6 of Table 5.4. The 40-event dark result without β\beta sits at the prior edge, 159159.
  2. Host missing from the catalog, analysed without an out-of-catalog term. Coverage 0.550.55, KS p=1.9×10−8p=1.9\times10^{-8}, and one posterior with no support anywhere.
  3. Peculiar-velocity spread underestimated, 100100 assumed against 500500 true, at ρ100=60\rho_{100}=60. Coverage 0.640.64 and KS p=0.43p=0.43: the test passes although the model is wrong. We report it as a limit of the test, not as a success of the model.

The dark trials also redrew 51 of 250 catalogs that contained no galaxy able to produce a detection. An earlier version of the script had no limit on that loop and ran for hours without finishing.

What this does not reproduce

We did not rerun parameter estimation on strain data, model the detector network, include galaxy clustering, luminosity weighting or catalog incompleteness in the synthetic catalogs, or use a population model for masses. The GW170817 velocity is taken from the paper, not re-derived from galaxy surveys. With these limits, the synthetic numbers test the inference logic only.

Try it in the Lab

Press New noise several times on the default event and note how far the bright-siren median moves; compare that spread with the interval the readout reports. Open the standard sirens Lab

Sources

  1. LIGO and Virgo, LIGO-P1800370-v5: Parameter estimation sample release for GWTC-1
  2. Abbott et al., A gravitational-wave standard siren measurement of the Hubble constant, Methods

Keep reading

What this page links to directly

See this series on the content map →

Gravitational-wave standard sirens · Reading path

From a wave amplitude to the Hubble constant

  1. ArticleHow can a gravitational wave tell us how far away it came from?
  2. ArticleWaveform amplitude, orbit tilt and luminosity distance
  3. ArticleFrom one distance and one redshift to the Hubble constant
  4. ArticleDark sirens, galaxy catalogs and the selection normalisation
  5. You are hereRecomputing a bright-siren and a dark-siren Hubble constant
  6. ArticleReading the GWTC-3 dark-siren cosmology paper
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy