Skip to content

Residual and Consistency Tests

Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

Scrollable table. Use Left and Right arrow keys to reveal additional columns.

Scrollable figure. Use Left and Right arrow keys to inspect hidden content.

Residual tests ask whether calibrated data contain coherent structure left unexplained by a fitted GR signal and noise model. Consistency tests ask whether different data subsets infer compatible physical parameters. Both are deliberately broad diagnostics: they can reveal model failure without deciding whether the cause is gravity, source physics, calibration, selection, or noise.

Required background. Weak Metric Perturbations and Gauge Freedom supplies weak-field gravity and waveform perturbations. Probability and Inference for Gravity supplies likelihoods, posterior prediction, covariance, and calibrated test statistics.

Helpful background. Relativistic Two-Body Dynamics supplies the source parameters and inspiral–merger relations whose consistency is tested.

For detector data dd and signal h(θ)h(\theta), define

r=d−h(θ).r=d-h(\theta).

This subtraction is not yet a test. In stationary Gaussian noise with covariance CC, the whitened residual rw=C−1/2rr_w=C^{-1/2}r has a declared reference distribution. In real data, the power spectral density, calibration transfer function, glitches, gating or inpainting, data segment, and window all enter the residual. Estimating CC from the same segment can also change the null distribution.

A posterior-predictive residual test draws θ\theta and nuisance quantities from their posterior, generates replicated data through the calibrated likelihood, and compares a predeclared statistic T(r)T(r) with the observed value. Useful statistics include coherent network energy, time–frequency morphology, autocorrelation, and projection onto waveform-derivative directions. Searching many pixels, wavelets, start times, or frequency bands requires the corresponding trials to be included in calibration.

To see what fitting changes, take a fixed, correctly whitened linear model d=Xa+nd=Xa+n, with n∼N(0,I)n\sim\mathcal N(0,I) and XX of column rank pp. Least squares gives the projection

P=X(XTX)−1XT,r=(I−P)d=(I−P)n.P=X(X^TX)^{-1}X^T,\qquad r=(I-P)d=(I-P)n.

Since P2=P=PTP^2=P=P^T, the residual covariance is I−PI-P, not II. Only N−pN-p independent noise directions remain, and rTr∼χN−p2r^Tr\sim\chi^2_{N-p}. A missing deterministic component bb instead produces a noncentral chi-square law with noncentrality bT(I−P)bb^T(I-P)b. A component lying entirely in the fitted space leaves no residual at all: it biases fitted parameters. These exact statements assume fixed XX and known covariance. Posterior-predictive tail areas reuse fitted data and are not generally uniform; do not give them the repeated-sampling interpretation of the exact chi-square tail below without a separate calibration.

Unmodeled coherent power is evidence against the composite fitted model. It is not automatically evidence against GR. A missing higher harmonic, eccentricity, precession, scattered-light transient, calibration line, or inaccurate merger model can produce a structured residual.

Let subsets AA and BB produce estimates of a common parameter vector. In a Gaussian approximation,

Δθ=θ^A−θ^B,Q=ΔθTCΔ−1Δθ,\Delta\theta=\hat\theta_A-\hat\theta_B, \qquad Q=\Delta\theta^T C_\Delta^{-1}\Delta\theta,

with

CΔ=CA+CB−CAB−CABT.C_\Delta=C_A+C_B-C_{AB}-C_{AB}^T.

Here CAC_A, CBC_B, and CABC_{AB} must describe the sampling covariance of these estimates under the null for QQ to have a frequentist chi-square interpretation. In the regular unbiased Gaussian case, its degrees of freedom are the number of identifiable difference directions; singular directions require restriction to their support or a pseudoinverse, not an ordinary inverse. Shared calibration, noise estimates, and overlapping data can create cross-covariance. Using the same fixed prior can also shrink both estimates without making that prior an additional random measurement. Posterior covariance is not automatically sampling covariance. An inspiral–post-inspiral comparison, detector split, observing-run split, or frequency split is meaningful only after the split rule and common parameter map are fixed. Choosing the split after examining the discrepancy invalidates its nominal reference distribution.

The current GWTC-5 tests manuscript deliberately omits the traditional inspiral–merger–ringdown consistency test because studies found spurious biases under its then-used implementation; dispersive propagation is also deferred. This is an instructive negative result: a familiar statistic is not retained merely because it once had a standard label LVK 2026, P2500781-v17, Table 1 and §§2–3.

For a real gravitational-wave residual analysis at the 2026-08-19 evidence cutoff, pin the exact event catalog, strain and parameter-estimation release, calibration version, sample rate, and file hashes. The current public catalog baseline is GWTC-5 stable parameter-estimation release 9, DOI 10.7935/bk00-6a89; its 16 kHz products are source-matched, while 4 kHz products are SciPy-decimated with a documented filter error, and data below 10 Hz are not calibrated GWOSC 2026, GWTC-5.0 data notes.

State all event, detector, data-quality, signal-to-noise, time, and frequency selections. If events enter because a residual statistic was interesting, the selection is outcome-dependent and a population conclusion is biased. The likelihood must normalize the noise model, propagate calibration covariance, declare waveform and glitch priors, and include sampler-convergence diagnostics. Reproduction requires released inputs, software commit, dependency lock, configuration, random seeds, and machine-readable residual statistics.

No real-data numerical result is reproduced on this method page. Instead, the following controlled benchmark specifies the minimum behavior an implementation must demonstrate before it is applied to a catalog.

Use Python 3.12.5, NumPy 2.1.0, and SciPy 1.14.1 with random seed 17017. Generate NN unit-variance Gaussian samples plus a known linear template axa x, fit aa, and evaluate Q=rTrQ=r^Tr against χN−12\chi^2_{N-1}. Repeat for a null injection and for a fault containing an omitted orthogonal component. A compact reference calculation is:

import numpy as np
from scipy.stats import chi2
rng = np.random.default_rng(17017)
def one_trial(n=4096, fault=0.0):
phase = 2 * np.pi * np.arange(n) / n
x = np.cos(17 * phase)
z = np.sin(31 * phase)
data = 0.3 * x + fault * z + rng.normal(size=n)
a_hat = x @ data / (x @ x)
residual = data - a_hat * x
q = residual @ residual
return chi2.sf(q, n - 1)
for trials in (2000, 8000, 32000):
null = np.array([one_trial() for _ in range(trials)])
faulty = np.array([one_trial(fault=0.30) for _ in range(trials)])
print(trials, np.mean(null < 0.05), np.mean(faulty < 0.05))

Save the block as residual_null.py and run python residual_null.py in the pinned environment. The second printed column is the null false-alarm fraction; it should converge toward 0.050.05 within its binomial standard error 0.05(0.95)/Ntrials\sqrt{0.05(0.95)/N_{\rm trials}}. The third is detection power for the omitted component and should converge to a value above the false-alarm rate, increasing with fault amplitude or sample count. Repeat at sample counts 2048, 4096, and 8192, and with an independently generated orthogonal basis.

This benchmark checks fitting degrees of freedom, whitening normalization, false-alarm calibration, convergence with Monte Carlo size, and power against one known failure. It does not validate nonstationary detector noise. A production algorithm must add colored-noise generation, PSD uncertainty, calibration draws, waveform injections, selection, and a second independently implemented statistic. The run should fail if the null rate misses a predeclared three-standard-error band or if the fault is not detected with increasing power.

Evidence or result at the cutoffReproduction checkLimitation or failure mode
Peer-reviewed GWTC-3 residual and consistency methods, LVK 2023, Table I and §§IV–V provide a catalog baselineReanalyze released injections and event subsetsResults depend on waveform, calibration, PSD, and split implementation
Current GWTC-5 releases enlarge and revise the available event setPin stable release 9 and selection metadataSubmitted tests document is not yet a peer-reviewed replacement for every method
Null synthetic residuals can be calibrated exactly in the linear Gaussian benchmarkRecover uniform tail probabilities across resolutionsPassing the toy benchmark does not establish real-noise adequacy

The independent scientific check is cross-pipeline recovery: a residual morphology or parameter discrepancy should be reproduced with a second noise representation and waveform family, and should scale as a specified alternative predicts. Sensitivity that appears only under one PSD, sampler, or split is a diagnosed failure mode, not a gravity signal.

Why is subtracting the maximum-likelihood waveform and comparing rTrr^Tr with χN2\chi^2_N incorrect in the benchmark above?

Solution

The amplitude is estimated from the same NN samples, so fitting projects out one noise direction. The residual therefore has N−1N-1 independent Gaussian degrees of freedom, not NN. In addition, rTrr^Tr follows the stated chi-square law only after correct whitening and with a fixed noise variance. Therefore the benchmark uses χN−12\chi^2_{N-1} and checks its tail probabilities over repeated injections. In a real analysis, estimated PSD and calibration parameters consume or modify further effective degrees of freedom, which is why end-to-end simulation is safer than inserting an informal count.

  • Gravitational Wave Open Science Center (2026), “GWTC-5.0,” official catalog and data-release documentation, stable parameter-estimation release 9. Data notes.
  • LIGO Scientific Collaboration, Virgo Collaboration, and KAGRA Collaboration (2023), “Tests of general relativity with GWTC-3,” Physical Review D 107, 022005. LVK 2023, Table I and §§II–VIII.
  • LIGO Scientific Collaboration, Virgo Collaboration, and KAGRA Collaboration (2026), “GWTC-5.0: Tests of General Relativity,” submitted manuscript, arXiv:2607.19293, LIGO DCC P2500781-v17. LVK 2026, Table 1 and §§2–7.