Skip to content

Selection Functions from Injections

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.

A selection function is the probability that the complete search-and-reporting procedure includes a source with specified parameters and data-state conditions. It is not merely a signal-to-noise threshold. Injection campaigns estimate this probability by placing known signals into representative data, running the declared pipeline, and counting recoveries with importance weights that match the target source distribution.

Helpful background. Search-level injection design begins in Injection Campaigns and Search Sensitivity. The threshold whose efficiency is measured must be the one defined in Detection Thresholds and False-Alarm Accounting.

Detection probability and population efficiency

Section titled “Detection probability and population efficiency”

Let θ\theta denote source parameters and xx the detector state, calibration, observing epoch, and other conditions entering the search. For catalog rule S\mathcal S, define

pdet(θ,x)=∫dd 1[S(d,x)=1] p(d∣θ,x).p_{\mathrm{det}}(\theta,x) = \int dd\, \mathbf 1[\mathcal S(d,x)=1]\, p(d\mid\theta,x).

Here dd denotes the data, 1\mathbf1 is one when the selection rule is satisfied and zero otherwise, and ∫dd\int dd integrates over all possible data realizations. This probability averages over noise under the declared data model. For a normalized population density π(θ∣Λ)\pi(\theta\mid\Lambda), with shape parameters Λ\Lambda, and a normalized distribution p(x)p(x) of observing states, the selection fraction is

α(Λ)=∫dθ dx pdet(θ,x)π(θ∣Λ)p(x).\alpha(\Lambda) = \int d\theta\,dx\, p_{\mathrm{det}}(\theta,x) \pi(\theta\mid\Lambda)p(x).

Thus α\alpha is the fraction of sources expected to be selected, averaged over source properties and observing conditions. The product π(θ∣Λ)p(x)\pi(\theta\mid\Lambda)p(x) assumes their distributions are independent; use their joint density if the source population changes with observing state. The same source can be detectable in one detector epoch and missed in another. The detector/source-frame transformation, redshift measure, observing time, duty cycle, calibration, waveform content, and pipeline threshold must therefore match the population likelihood in which α\alpha is used.

Importance sampling with recovered injections

Section titled “Importance sampling with recovered injections”

First consider exact class labels with no measurement error. Let the intrinsic fractions be fA=fB=0.5f_A=f_B=0.5 and the detection probabilities be ϵA=0.2\epsilon_A=0.2, ϵB=0.8\epsilon_B=0.8. Of 1000 sources, the expected detected counts are 100 in A and 400 in B. Thus α=0.5\alpha=0.5, while the fractions within the detected sample are qA=0.2q_A=0.2, qB=0.8q_B=0.8:

qj=ϵjfjα,α=∑jϵjfj.q_j=\frac{\epsilon_j f_j}{\alpha}, \qquad \alpha=\sum_j\epsilon_j f_j.

The figure separates the three quantities. In particular, the middle panel contains detection probabilities conditional on each class; those probabilities need not sum to one, even though they happen to do so in this example.

Equal intrinsic fractions in classes A and B become detected fractions of 0.2 and 0.8 because B is four times more likely to be detected.

Selection alone can create an apparent population imbalance. Equal intrinsic fractions with detection probabilities 0.2 and 0.8 yield detected fractions 0.2 and 0.8. These are exact illustrative probabilities for two known classes without measurement error or contamination, not observational data.

Here inverse-efficiency counting works: 100/0.2=400/0.8=500100/0.2=400/0.8=500, recovering equal intrinsic counts. It fails for a class with zero efficiency, whose abundance is unconstrained by detections alone, and it is not a substitute for marginalizing uncertain event parameters in a real catalog.

Suppose NinjN_{\mathrm{inj}} injections are drawn from proposal density q(θ,x)q(\theta,x) and passed through the search. Let yj=1y_j=1 if injection jj is recovered under the catalog rule and 00 otherwise. Then

α^(Λ)=1Ninj∑j=1Ninjyjπ(θj∣Λ)p(xj)q(θj,xj).\widehat\alpha(\Lambda) = \frac{1}{N_{\mathrm{inj}}} \sum_{j=1}^{N_{\mathrm{inj}}} y_j \frac{\pi(\theta_j\mid\Lambda)p(x_j)}{q(\theta_j,x_j)}.

This estimator is valid only where the injection proposal has support wherever the target integrand is nonzero. A campaign concentrated on nearly equal-mass, nonspinning binaries cannot estimate selection for extreme mass ratios or precessing systems by reweighting alone.

Define recovered weights wj=yjπ(θj∣Λ)p(xj)/q(θj,xj)w_j=y_j\pi(\theta_j\mid\Lambda)p(x_j)/q(\theta_j,x_j). A warning diagnostic is

Neff=(∑jwj)2∑jwj2.N_{\mathrm{eff}} = \frac{\left(\sum_j w_j\right)^2}{\sum_j w_j^2}.

Large NinjN_{\mathrm{inj}} does not rescue a tiny NeffN_{\mathrm{eff}}. For independent draws from the stated proposal, an unbiased estimate of the variance of the sample mean is

Var⁡^(α^)=1Ninj(Ninj−1)∑j(wj−α^)2.\widehat{\operatorname{Var}}(\widehat\alpha) =\frac{1}{N_{\mathrm{inj}}(N_{\mathrm{inj}}-1)} \sum_j(w_j-\widehat\alpha)^2.

Unrecovered injections still count: their wj=0w_j=0 values belong in the denominator and variance. Dividing by the number recovered instead of the number drawn would estimate the wrong quantity. Correlated or stratified injection designs require the corresponding variance calculation.

This accuracy matters increasingly as the catalog grows. A shape likelihood contains −Nln⁡α-N\ln\alpha, so a small numerical error gives δln⁡L≃−N δα/α\delta\ln\mathcal L\simeq-N\,\delta\alpha/\alpha. A selection estimate adequate for ten events may be inadequate for a thousand. Selection uncertainty must be propagated or shown negligible across the hyperparameter region being compared.

An injection campaign is faithful only if its recovery process matches the catalog construction in consequential respects:

IngredientRequired matchTypical bias if omitted
Detector timeDuty cycle, sensitivity, PSD, glitches, data-quality masksWrong sensitive spacetime volume
CalibrationEpoch response and uncertainty treatmentAmplitude- and phase-dependent efficiency error
WaveformModes, spins, eccentricity, tides over target supportMissing or misranked source subpopulations
SearchPipeline version, bank, ranking, coincidence, vetoesEfficiency for the wrong decision rule
ThresholdSame FAR, rank, and de-duplication rule as catalogNormalization inconsistent with included events
Injection proposalKnown density and full target supportUnstable or impossible reweighting

Software injections added to recorded strain test much of the analysis path but not the physical detector response before calibrated strain. Hardware injections test more of that chain but are sparse and are not a population Monte Carlo. The two serve different validation roles.

Selection in the catalog and population likelihoods

Section titled “Selection in the catalog and population likelihoods”

Conditioning on detection changes the distribution of observed sources:

p(θ∣det,Λ)=pdet(θ)π(θ∣Λ)α(Λ).p(\theta\mid\mathrm{det},\Lambda) = \frac{p_{\mathrm{det}}(\theta)\pi(\theta\mid\Lambda)}{\alpha(\Lambda)}.

For shape-only inference conditioned on NN detections, factors of α(Λ)−N\alpha(\Lambda)^{-N} appear. In a Poisson rate model, the expected detected count contains the rate and selection exposure. Mixing these conventions can double-count or omit selection. The distinction and the correction to single-event conditioning are given in Thrane and Talbot 2019, § 5 and Appendices E–F, corrected PDF v9.

Selection generally does not become a per-event correction factor inserted into each already-detected event likelihood. It normalizes the detected ensemble under the same generative model. Applying “1/pdet1/p_{\mathrm{det}} weights” directly to noisy event estimates is not equivalent to the hierarchical likelihood and can be severely biased near threshold.

A reproducible calculation records the injection table and proposal density, source/detector-frame conventions, waveform version, detector times, strain/calibration/data-quality release, pipeline and threshold version, random seed, and software environment. It then varies injection count and proposal design and reports α^\widehat\alpha, Monte Carlo uncertainty, and NeffN_{\mathrm{eff}} over the full hyperparameter domain.

Useful stress tests include:

  • split by observing epoch, detector network, and pipeline;
  • compare direct binomial estimates in well-populated cells with importance sampling;
  • inject from a second proposal targeted at high-weight corners;
  • perturb calibration, PSD, waveform family, and threshold;
  • recover a mock population with known Λ\Lambda; and
  • deliberately choose an unsupported target to verify that the diagnostic fails loudly.

At the evidence cutoff 2026-08-18, an observational use must bind the official GWTC-5.0 release, the search and sensitivity specification in GWTC-5.0 Methods, §§ 2–3, and any release-specific selection products used by the population analysis LVK 2026, GWTC-5.0 Population, §§ 2–6 and appendices. This page reports no newly executed injection estimate and supplies no unverified rerun command.

Sources are uniform in Euclidean volume within 0<D<Dmax⁡0<D<D_{\max}. A noiseless toy search detects every source with D<DhD<D_h and none beyond, where Dh<Dmax⁡D_h<D_{\max}.

  1. Find the population selection fraction.
  2. If injections are instead drawn uniformly in DD, what importance factor, up to normalization, represents the volume population?
Solution

Uniform volume gives π(D)=3D2/Dmax⁡3\pi(D)=3D^2/D_{\max}^3. Therefore

α=∫0Dh3D2Dmax⁡3 dD=(DhDmax⁡)3.\alpha =\int_0^{D_h}\frac{3D^2}{D_{\max}^3}\,dD =\left(\frac{D_h}{D_{\max}}\right)^3.

For a proposal uniform in distance, q(D)=1/Dmax⁡q(D)=1/D_{\max}. The importance ratio is

π(D)q(D)=3D2Dmax⁡2,\frac{\pi(D)}{q(D)} =\frac{3D^2}{D_{\max}^2},

so distant injections receive larger weights. If too few recovered injections lie near DhD_h, the weighted estimate can have low effective sample size even when the raw injection count is large.

  • LIGO Scientific Collaboration, Virgo Collaboration, and KAGRA Collaboration (2026). “GWTC-5.0: Methods for Identifying and Characterizing Gravitational-Wave Transients.” arXiv:2605.27224. Open PDF.
  • LIGO Scientific Collaboration, Virgo Collaboration, and KAGRA Collaboration (2026). “GWTC-5.0: Population Properties of Merging Compact Binaries.” arXiv:2605.27226. Open PDF.
  • LIGO Scientific Collaboration, Virgo Collaboration, and KAGRA Collaboration (2026). GWTC-5.0 Data Release. DOI 10.7935/bk00-6a89. Official release.
  • Thrane, E., and Talbot, C. (2019). “An Introduction to Bayesian Inference in Gravitational-Wave Astronomy: Parameter Estimation, Model Selection, and Hierarchical Models.” Publications of the Astronomical Society of Australia 36, e010. DOI. Open PDF v9, including the selection erratum.