Skip to content

Probability and Inference for Gravity

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.

Gravity data do not speak without a probabilistic model. A conclusion depends on what generated the data, which parameters and nuisance quantities were allowed, how uncertainty was represented, and how events entered the sample. This module checks that chain using small analytic models. It is an inference-literacy bridge, not a general statistics course and not a substitute for an experiment’s released likelihood.

Required background. Calculus and Linear Algebra for Relativity supplies normalization integrals, quadratic forms, and changes of variables.

You should leave able to construct and interpret likelihoods, priors, posterior comparisons, and uncertainties, and to diagnose selection and nuisance-model effects in a gravity example.

  1. A datum xx obeys x∣θ∼N(θ,σ2)x\mid\theta\sim\mathcal N(\theta,\sigma^2) and the prior is θ∼N(μ0,τ2)\theta\sim\mathcal N(\mu_0,\tau^2). Derive the posterior mean and variance.
  2. Explain why a 90%90\% Bayesian credible interval and a 90%90\% frequentist confidence interval do not make the same probability statement, even when their numerical endpoints happen to agree.
  3. Let y=θ+c+ny=\theta+c+n, where n∼N(0,σ2)n\sim\mathcal N(0,\sigma^2) and an independent calibration offset c∼N(0,s2)c\sim\mathcal N(0,s^2). Marginalize cc and identify the effective likelihood for y∣θy\mid\theta.
  4. An intrinsic population has normalized density p(z∣α)p(z\mid\alpha) and detection probability S(z)S(z). Write the density of zz among detected objects and identify the normalization that cannot be dropped when inferring α\alpha.
Hints for 1

Multiply likelihood and prior, collect the quadratic terms in θ\theta, and complete the square. Precisions add.

Solution to 1

Bayes’ rule gives

p(θ∣x)∝exp⁡[−(x−θ)22σ2−(θ−μ0)22τ2].p(\theta\mid x)\propto \exp\left[-\frac{(x-\theta)^2}{2\sigma^2} -\frac{(\theta-\mu_0)^2}{2\tau^2}\right].

Completing the square produces a Gaussian posterior with

V=(1σ2+1τ2)−1,μ=V(xσ2+μ0τ2).V=\left(\frac1{\sigma^2}+\frac1{\tau^2}\right)^{-1}, \qquad \mu=V\left(\frac{x}{\sigma^2}+\frac{\mu_0}{\tau^2}\right).

As τ→∞\tau\to\infty, the prior becomes broad and (μ,V)→(x,σ2)(\mu,V)\to(x,\sigma^2). As σ→0\sigma\to0, the data dominate. These limits check the weights.

Hints for 2

Ask what is random in each statement. In Bayesian inference the posterior distribution describes uncertainty in the parameter conditional on the observed data; frequentist coverage concerns repeated data sets under fixed parameter values.

Solution to 2

A 90%90\% credible interval C(x)C(x) satisfies

Pr⁡(θ∈C(x)∣x)=0.9\Pr(\theta\in C(x)\mid x)=0.9

under the stated likelihood and prior. A 90%90\% confidence procedure is constructed so that, for each fixed true θ\theta, repeated data XX satisfy

Pr⁡θ[θ∈C(X)]=0.9.\Pr_\theta[\theta\in C(X)]=0.9.

After observing one data set, the frequentist statement remains about the procedure’s repeated-sampling coverage, not a posterior probability assigned to fixed θ\theta. Coincident endpoints do not erase the difference in conditioning and interpretation.

Hints for 3

The sum of independent Gaussian variables is Gaussian. You can also complete the square in the integral ∫p(y∣θ,c)p(c) dc\int p(y\mid\theta,c)p(c)\,dc.

Solution to 3

Since c+nc+n is the sum of independent zero-mean Gaussians,

y∣θ∼N(θ,σ2+s2).y\mid\theta\sim\mathcal N(\theta,\sigma^2+s^2).

Thus

p(y∣θ)=12π(σ2+s2)exp⁡[−(y−θ)22(σ2+s2)].p(y\mid\theta)= \frac{1}{\sqrt{2\pi(\sigma^2+s^2)}} \exp\left[-\frac{(y-\theta)^2}{2(\sigma^2+s^2)}\right].

Ignoring calibration would overstate precision. A correlated or non-Gaussian calibration model would not reduce to this simple variance addition.

Hints for 4

Condition on the event “detected.” The numerator is the joint density of zz and detection; the denominator is the total detection efficiency under the population model.

Solution to 4

The detected density is

p(z∣α,det)=S(z)p(z∣α)ξ(α),ξ(α)=∫S(z)p(z∣α) dz.p(z\mid\alpha,{\rm det}) =\frac{S(z)p(z\mid\alpha)}{\xi(\alpha)}, \qquad \xi(\alpha)=\int S(z)p(z\mid\alpha)\,dz.

ξ(α)\xi(\alpha) depends on the population parameters and therefore affects inference. Dropping it generally biases the inferred population toward regions that are easy to detect. If counts also carry information, the event-rate model and Poisson factor must be stated separately.

  • Secure: likelihood, prior, posterior, nuisance marginalization, and selection conditioning are kept distinct, with all distributions normalized in the relevant variables.
  • Uncertain: the qualitative effect is right but one normalization or conditioning statement needs a hint. Repeat that problem with a changed variance or selection function.
  • Not yet: a posterior is called a likelihood, a credible interval is given a coverage interpretation, nuisance uncertainty is fixed away without justification, or detected objects are treated as an unbiased population sample.

This diagnostic is low-stakes. A correct formula without its conditioning statement is not yet secure inference reasoning.

Write the sequence that could generate the data: physical parameters, latent variables, instrument response, nuisance quantities, and noise. The likelihood is the data density conditional on those quantities; it is not a probability distribution over parameters until combined with a prior and normalized. The gravity-specific construction is developed in The Gravitational-Wave Likelihood.

Bayes’ rule is p(θ∣d)∝p(d∣θ)π(θ)p(\theta\mid d)\propto p(d\mid\theta)\pi(\theta). A prior can encode a physical population, a coordinate measure, or regularization; those are different claims. Report sensitivity to consequential prior choices and check posterior predictive behavior, not only a parameter contour. See Compact-Binary Priors for a concrete domain where coordinate choices matter.

Marginalization propagates uncertainty; profiling optimizes over it and answers a different question. Selection conditions the observed sample and introduces an efficiency normalization that usually depends on population parameters. Selection Functions and Injection Campaigns develops these ideas for gravitational-wave detectors.

A likelihood ratio compares named hypotheses at specified parameter values. A Bayes factor integrates each likelihood over its prior and is therefore prior-dependent. Neither number is a context-free probability that a physical theory is true. Calibration, waveform systematics, data selection, and model misspecification remain part of the inference.

Transfer task: calibration and thresholding

Section titled “Transfer task: calibration and thresholding”

A measured amplitude is

A^=A+c+n,\hat A=A+c+n,

with n∼N(0,σ2)n\sim\mathcal N(0,\sigma^2) and c∼N(0,s2)c\sim\mathcal N(0,s^2) independent. An event is retained only if A^>A∗\hat A\gt A_*. Derive the marginal likelihood before selection, the detection probability at fixed AA, and the conditional density for a retained measurement.

Hint 1

After marginalizing cc, define Σ2=σ2+s2\Sigma^2=\sigma^2+s^2. Standardize the threshold with (A∗−A)/Σ(A_*-A)/\Sigma.

Hint 2

Conditioning truncates the Gaussian. Divide its ordinary density by the probability that a draw lies above the threshold.

Solution

Marginalization gives

p(A^∣A)=N(A^;A,Σ2),Σ2=σ2+s2.p(\hat A\mid A)=\mathcal N(\hat A;A,\Sigma^2), \qquad \Sigma^2=\sigma^2+s^2.

If Φ\Phi is the standard-normal cumulative distribution,

P(det∣A)=1−Φ(A∗−AΣ).P({\rm det}\mid A) =1-\Phi\left(\frac{A_*-A}{\Sigma}\right).

For an observed value above threshold,

p(A^∣A,det)=N(A^;A,Σ2)1−Φ[(A∗−A)/Σ],A^>A∗.p(\hat A\mid A,{\rm det}) =\frac{\mathcal N(\hat A;A,\Sigma^2)} {1-\Phi[(A_*-A)/\Sigma]}, \qquad \hat A\gt A_*.

It is zero below threshold. The denominator restores normalization and depends on AA. Near threshold, retained noise fluctuations are preferentially positive, so treating the selected sample with the untruncated Gaussian biases amplitude inference upward. In a real gravity analysis, the selection variable, pipeline, population, and injection validation must all be specified.

  • Suppressing the normalization of a likelihood when it depends on the parameter being inferred.
  • Treating a prior uniform in one coordinate as uniform after a nonlinear change of variables.
  • Folding calibration uncertainty into error bars without representing its correlations.
  • Correcting observed counts for selection while forgetting that the detected-parameter density is also conditioned.

After the transfer task, return to the route that sent you here: Compact Binaries and Gravitational Waves, Relativistic Astrophysics, Tests of Gravity, Relativistic Cosmology, Primordial Black Holes, Gravitational Radiation and Compact Binaries, Computational Relativity, or the Research Seminar in Gravitation.