---
title: "Read a frequency-consistency test for glitches"
description: "Read Allen's frequency-consistency statistic with fixed chirp injections and a synthetic glitch."
canonical_url: "https://sandboxphysics.com/stories/gw-matched-filter/read-the-frequency-veto/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/gw-matched-filter/read-the-frequency-veto/"
last_modified: "2026-11-22"
---

[Matched filtering with GW150914](https://sandboxphysics.com/stories/gw-matched-filter/)

# Read a frequency-consistency test for glitches

Sandbox Physics · 2026-11-22

One loud spike can drive up a matched-filter score. A chirp has a further obligation. The parts of its score from different frequency bands should agree with the pattern predicted by that template.

[Open the GW150914 analysis](https://sandboxphysics.com/labs/binary-neutron-star-merger/#gw150914-analysis)

## What Allen tests

Start with sections IV and VI of Bruce Allen’s published 2005 analysis. They split the template’s noise-weighted power among bands. If the waveform matches, the expected contribution from a band follows its share of the template power. A transient with much of its power near one frequency can give a high total even when most bands fall short. The paper also treats mismatch: a genuine waveform that fits imperfectly can increase the same statistic. [Allen, arXiv:gr-qc/0405045v2](https://arxiv.org/abs/gr-qc/0405045v2)

With eight bands, the demonstration estimates a complex contribution $z_i$ per band. Write their sum as $z$ and the template power fraction for each band as $p_i$. Small differences from one-eighth come from finite frequency bins. The diagnostic used here is

$$
\chi^2_{\mathrm{r}}=\frac{1}{14}\sum_{i=1}^{8}\frac{\lvert z_i-p_i z\rvert^2}{p_i}.
$$

Fourteen is the number of independent differences after the complex total has been fixed. A perfectly matching noiseless example has zero discrepancy. In ideal Gaussian noise fluctuations remain.

## Compare two synthetic examples

Use the same noise curve, template and lag window as the Hanford controls. The first noisy injected chirp has a matched score of 7.18 with reduced discrepancy 1.67. The specified sine-Gaussian glitch gives a similar score of 7.32, with discrepancy 10.45. These are two particular checked trials with known inputs. Their difference is a way to read the paper’s statistic with real numbers. [LIGO–Virgo detector noise guide, §5](https://arxiv.org/abs/1908.11170v3)

## Keep the trial count in view

At one chosen arrival in ideal colored noise, the mean squared quadrature score is two. Searching across arrival times gives noise more chances. In our 256 search windows with one fixed template, one noise trial reached five and none reached six. When an injected chirp had optimal score eight, the procedure recovered 252 of 256 within ten milliseconds at a score of at least six.

These counts describe this simulated exercise. A false-alarm rate for an observing run needs real instruments, the actual template bank, the coincidence selection, and a much larger measured background. You can rerun the toy experiment with the saved seed or compare the fitted residue at an intentionally wrong mass.

![Synthetic noise alone gives lower peak scores than the same trials with an added chirp.](https://sandboxphysics.com/stories/gw-matched-filter/materials/noise-trials.png)

A fixed template searched in 256 pairs of simulated windows.[Read the actual trials](https://sandboxphysics.com/stories/gw-matched-filter/materials/noise-report.json)

## Sources

1. [Allen, arXiv:gr-qc/0405045v2](https://arxiv.org/abs/gr-qc/0405045v2)
2. [LIGO–Virgo detector noise guide, §5](https://arxiv.org/abs/1908.11170v3)

[Previous chapter Recompute the GW150914 match from the public strain](https://sandboxphysics.com/stories/gw-matched-filter/replay-the-public-strain/)

## Keep reading

Matched filtering with GW150914 · Reading path

### Matched filtering with GW150914

1. [Article **How to find a chirp in detector noise**](https://sandboxphysics.com/stories/gw-matched-filter/finding-the-chirp/)
2. [Article **Why a strain record is whitened**](https://sandboxphysics.com/stories/gw-matched-filter/whitening-a-strain-record/)
3. [Article **What arrival time and chirp mass do to the match**](https://sandboxphysics.com/stories/gw-matched-filter/arrival-and-chirp-mass/)
4. [Article **Recompute the GW150914 match from the public strain**](https://sandboxphysics.com/stories/gw-matched-filter/replay-the-public-strain/)
5. [You are here **Read a frequency-consistency test for glitches**](https://sandboxphysics.com/stories/gw-matched-filter/read-the-frequency-veto/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **Binary Neutron Star Merger**](https://sandboxphysics.com/labs/binary-neutron-star-merger/)
2. [Article **A pulsar clock revealed an orbit losing energy**](https://sandboxphysics.com/stories/astronomy-gravity/hulse-taylor-orbital-decay/)
