Skip to main content
Sandbox Physics
Kilonovae: heavy elements and diffusing light

Fitting GW170817 and the trade-off between ejecta mass and speed

Sandbox Physics ·

Fitted to 394 measurements of GW170817, the two-component grey model reaches a root-mean-square residual of 0.290.29 magnitudes once an extra scatter of 0.260.26 magnitudes is allowed, and a single component does far worse. The data fix each component's diffusion time better than its mass or speed: the red mass and speed are correlated at 0.890.89 and slide along a valley of nearly constant M/vM/v. This chapter writes down the likelihood, compares five fits and maps that valley.

Open the kilonova light-curve Lab

It uses the model of from the energy equation to kilonova light curves and colours. The step-by-step commands are in reproducing a two-component kilonova fit to the GW170817 photometry.

The data

Villar and colleagues combined 647 measurements from 18 papers and 46 instruments into one table, corrected for offsets between datasets, and marked outliers. Villar and colleagues, §2 and Table 3 We keep the detections in gg, rr, ii, zz, JJ, HH and KK or KsK_s that they used in their own fit and did not flag as outliers. That leaves 394 points from 0.450.45 to 25.425.4 days, with rr the best covered band at 83 points and JJ the sparsest at 38.

The magnitudes are not corrected for dust in the Milky Way. Instead the model adds extinction, Aλ=RλE(B−V)A_\lambda=R_\lambda E(B-V) with E(B−V)=0.1228E(B-V)=0.1228 and the coefficients for RV=3.1R_V=3.1. Schlafly and Finkbeiner, Table 6 The distance is fixed at 39.5 Mpc39.5\,\mathrm{Mpc}.

The likelihood

Each point ii has an observed magnitude OiO_i, an error σi\sigma_i and a model value MiM_i. The model is too simple to match every point within its error: real filters are broad while the model uses one wavelength per band, the spectrum is not a blackbody, and instruments still differ slightly. Villar and colleagues therefore add an unknown scatter σ\sigma in quadrature. Villar and colleagues, §3.2, eq. 6 We use the normalised Gaussian form

−ln⁡L=12∑i=1n[(Oi−Mi)2σi2+σ2+ln⁡(2π(σi2+σ2))].-\ln\mathcal L=\frac12\sum_{i=1}^{n}\left[\frac{(O_i-M_i)^2}{\sigma_i^2+\sigma^2}+\ln\bigl(2\pi(\sigma_i^2+\sigma^2)\bigr)\right].

Their printed equation keeps ln⁡(2πσi2)\ln(2\pi\sigma_i^2) inside the sum with the opposite sign and a separate −(n/2)ln⁡(2πσ2)-(n/2)\ln(2\pi\sigma^2) outside it. That is not the normalisation of a Gaussian with variance σi2+σ2\sigma_i^2+\sigma^2, so we use the form above and record the difference.

The fit maximises L\mathcal L rather than sampling it as Villar and colleagues did. With kk free parameters, the Bayesian information criterion

BIC=2(−ln⁡L)+kln⁡n\mathrm{BIC}=2(-\ln\mathcal L)+k\ln n

penalises extra freedom. A difference above about 1010 is strong evidence for the lower value.

What is free and what is fixed

The blue opacity is fixed at 0.5 cm2 g−10.5\,\mathrm{cm^2\,g^{-1}}, as in Villar and colleagues' two-component model. The free parameters are the blue mass, speed and floor temperature, the red mass, speed, floor and opacity, and the scatter: eight in all.

The likelihood has several local maxima. The script starts the optimiser from many points and keeps all distinct solutions.

Table 3.1 Distinct local optima of the two-component fit.
−ln⁡L-\ln\mathcal LBlue MM, vvRed MM, vv, κ\kappaσ\sigma
63.0263.020.02090.0209, 0.3850.3850.05250.0525, 0.1520.152, 3.183.180.2610.261
64.9064.900.01780.0178, 0.3870.3870.05010.0501, 0.1980.198, 2.632.630.2450.245
82.1382.130.02310.0231, 0.2820.2820.04600.0460, 0.1390.139, 3.313.310.2770.277
137.28137.280.02040.0204, 0.2990.2990.03850.0385, 0.1160.116, 1.821.820.3020.302

The third row lies close to Villar and colleagues' published values: 0.0230.023, 0.2560.256 for blue and 0.0500.050, 0.1490.149, 3.653.65 for red. Villar and colleagues, Table 2 Our best solution prefers a faster blue component, 0.385c0.385c, which lies beyond the largest speed, 0.3c0.3c, in the thermalization table, so its thermalization uses the table's edge values. That blue speed is best read as a property of this simplified model.

Comparing models

Table 3.2 Five fits to the same 394 points.
Modelkkσ\sigma−ln⁡L-\ln\mathcal LBIC
Two components880.2610.26163.0263.02173.85173.85
Red opacity fixed at 1010770.3660.366178.94178.94399.71399.71
No floor, Tc=300 KT_c=300\,\mathrm K660.3990.399243.13243.13522.12522.12
One component550.5460.546332.93332.93695.74695.74
Villar values, our setup110.2930.293106.32106.32218.62218.62

One grey component cannot make an early blue peak and a late infrared plateau at the same time; its BIC is worse by 522522. Removing the temperature floors costs 348348. Forcing the red opacity to 1010, a value typical of lanthanide-rich matter, costs 226226: these data prefer an intermediate opacity near 33. Villar and colleagues' published parameters, plugged into our code with only σ\sigma refitted, are worse than our optimum by 4343 in −ln⁡L-\ln\mathcal L and leave the late KK band about 0.200.20 magnitudes too bright. Differences in data selection, likelihood normalisation and sampling can each contribute; we have not separated them.

The best fit is not perfect. Its worst band is HH, with an rms residual of 0.400.40 magnitudes. Villar and colleagues found that their two-component model predicts a double-peaked KK light curve that the data do not show, one reason they preferred three components. Villar and colleagues, Fig. 5

Why mass and speed trade off

The diffusion time depends on MM and vv only through M/vM/v:

td=2κMβvc.t_d=\sqrt{\frac{2\kappa M}{\beta vc}} .

Raise both by the same factor and the light curve's timescale stays put. Two other things change, but more weakly: the photosphere is larger at fixed time, R=vtR=vt, so the same luminosity comes out cooler, and the thermalization fraction shifts. The data feel these second-order effects only faintly.

Table 3.3 Profile of −ln⁡L-\ln\mathcal L over red mass and speed, the other parameters re-fitted, minus the grid minimum 63.9863.98.
MM \ vv0.130.130.150.150.160.160.170.170.200.20
0.0450.0458.88.822.322.315.715.79.69.622.422.4
0.0500.05025.125.10.20.28.78.722.422.42.12.1
0.0550.05563.463.44.04.00.00.07.57.510.410.4
0.0600.060119.8119.827.227.28.28.24.14.136.736.7

The low values run diagonally: (0.050,0.15)(0.050, 0.15), (0.055,0.16)(0.055, 0.16), (0.060,0.17)(0.060, 0.17), all with M/vM/v near 0.340.34. A second, shallower branch appears near v=0.20v=0.20. For two parameters, a rise of 1.151.15 in −ln⁡L-\ln\mathcal L bounds a joint 6868 percent region and a rise of 3.03.0 a 9595 percent region. The point at v=0.20v=0.20 is excluded at 6868 percent but not at 9595 percent.

The local error estimate from the curvature at the best fit gives ±0.0022\pm0.0022 in red mass and ±0.0052\pm0.0052 in red speed, with correlation 0.8880.888. Those numbers describe the bottom of one valley. They miss the second branch, and they would understate the uncertainty if quoted alone.

Shape and viewing angle

All of this assumes spherical components. Villar and colleagues also fitted a three-component model with the blue component confined near the poles, weighting the components by 1−cos⁡θ1-\cos\theta and cos⁡θ\cos\theta. It gave a half-opening angle θ=66−3+1\theta=66^{+1}_{-3} degrees and masses about half those of the spherical fit. Villar and colleagues, §3.1 and §4 They treated those parameters as a guide to the effect of asymmetry, and ours deserve the same caution: the mass of a kilonova inferred from photometry depends on its assumed shape.

Lab tasks

  1. Lower the red mass to 0.0450.045 and the red speed to 0.1340.134. Check that the red diffusion time stays at 7.367.36 days, and estimate by eye how far the KK curve moves.
  2. From the default, change only the red speed to 0.1340.134. The diffusion time now changes. Compare the shift in the KK curve with task 1.
  3. Set the red opacity to 1010. Which bands move away from the points, and in which direction?

Exercises with explained answers

  1. Check the BIC of the two-component fit from −ln⁡L=63.02-\ln\mathcal L=63.02, k=8k=8 and n=394n=394.
  2. Red mass and speed lie along M/v≈0.34M/v\approx0.34. If the red speed were 0.180.18, what mass would keep the diffusion time unchanged?
  3. A colleague quotes the red mass as 0.0525±0.00220.0525\pm0.0022 solar masses. What would you add?
  4. Why can a larger extra scatter σ\sigma make −ln⁡L-\ln\mathcal L smaller even though it widens every error bar?
Answers
  1. 2×63.02+8ln⁡394=126.04+8×5.976=173.852\times63.02+8\ln394=126.04+8\times5.976=173.85, as in Table 3.2.
  2. M≈0.34×0.18=0.061M\approx0.34\times0.18=0.061 solar masses, at fixed red opacity. The profile table shows this region is not favoured by the data, because the second-order effects grow away from the best fit.
  3. That the error is the local curvature at one optimum. Along the diagonal valley, and on the second branch near v=0.20v=0.20, other masses fit almost as well; the value also depends on the spherical, grey model and would drop by about half for the polar geometry Villar and colleagues tried.
  4. Each term has two parts. The squared residual divided by the variance falls as σ\sigma grows, while ln⁡(σi2+σ2)\ln(\sigma_i^2+\sigma^2) rises. When residuals are larger than the quoted errors, the first effect wins until σ\sigma roughly matches the typical residual. Here that balance sits at 0.260.26 magnitudes, close to the rms residual of 0.290.29.

Repeat the fit yourself, with every input and failure case, in reproducing a two-component kilonova fit to the GW170817 photometry.

Try it in the Lab

Lower the red mass to 0.045 and the red speed to 0.134. The red diffusion time in the caption stays at 7.36 days, and the K curve moves by about a tenth of a magnitude. Open the kilonova light-curve Lab

Sources

  1. Villar and colleagues, §2 and Table 3
  2. Schlafly and Finkbeiner, Table 6

Keep reading

What this page links to directly

See this series on the content map →

Kilonovae: heavy elements and diffusing light · Reading path

From radioactive heat to a blue-then-red flash

  1. ArticleHow does a neutron-star collision turn nuclear decay into days of coloured light?
  2. ArticleRadioactive heat and the time light needs to escape merger debris
  3. ArticleFrom the energy equation to kilonova light curves and colours
  4. You are hereFitting GW170817 and the trade-off between ejecta mass and speed
  5. ArticleReproducing a two-component kilonova fit to the GW170817 photometry
  6. ArticleReading Tanaka et al. 2020 on r-process opacities in kilonovae
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