427 Subtraction

427.0.1 Every observable is a difference
  ADC        - pedestal          detector electronics
  ADU        - bias              CCD, from the overscan region
  flux       - sky               spectroscopy, from sky fibres
  image      - template          difference imaging
  data       - background        collider spectra
  observed   - model             any fit residual
  lam_obs/lam_lab - 1            redshift (a ratio; a difference in log space)

In every case the subtracted quantity is itself estimated from data. A residual is therefore not a signal but the difference of two estimates, and its properties are the properties of that difference.

427.0.2 Noise plus subtraction produces peaks

In this subsection, we test using a random sample. Poisson counts were generated with no signal, background models fitted, and a Gaussian peak searched for over \(170\) mass positions and three widths:

\[ \begin {array}{rrrrrr} \text {background models} & \text {widths} & \text {trials} & \text {median } Z_{\max } & 95\% & \max \\ \hline 1 & 3 & 510 & 3.10 & 4.18 & 5.12 \\ 2 & 3 & 1020 & 3.04 & 4.12 & 4.84 \\ 4 & 3 & 2040 & 3.05 & 4.16 & 5.38 \\ 7 & 3 & 3570 & 43.55 & 44.60 & 45.82 \\ \end {array} \]
over \(200\) realisations each. The injected signal is zero throughout.

The first three rows show the expected look-elsewhere behaviour: a median \(Z_{\max }\) near \(3\) and occasional excursions past \(5\). The fourth row is different in kind. Adding a single-exponential and a double-exponential background to the polynomial family raises the median from \(3.05\) to \(43.6\), because those forms cannot describe the generated spectrum and the misfit is absorbed by the Gaussian. The value is not a fluctuation; it is a mis-specification, and it appears at \(44\sigma \) in every realisation.

This reproduces, in pure noise, the \(21.9\sigma \) obtained from the ATLAS signal-free region when the single exponential was admitted (§380). The mechanism is the same.

427.0.3 The difference of two random samples

Two independent Poisson samples were drawn from the same distribution and the peak search run on \(A-B\):

\[ \begin {array}{rrrrrr} N\ \text {per sample} & \text {median } Z_{\max } & 95\% & \max & Z>5 & Z>3 \\ \hline 10^{3} & 2.47 & 3.19 & 4.32 & 0.0\% & 10.7\% \\ 10^{4} & 2.46 & 3.52 & 4.51 & 0.0\% & 16.7\% \\ 10^{5} & 2.53 & 3.33 & 3.69 & 0.0\% & 19.3\% \\ 10^{6} & 2.56 & 3.46 & 3.84 & 0.0\% & 20.7\% \\ \end {array} \]

Increasing the sample size by a factor of a thousand does not reduce \(Z_{\max }\). It rises slightly, from \(2.47\) to \(2.56\), and the fraction exceeding \(3\sigma \) doubles from \(10.7\%\) to \(20.7\%\).

This is the expected behaviour of a maximum over a fixed number of trials, and it is the point. The largest excess obtainable from a difference of two signal-free samples is set by how many places one looks, not by how much data one has. More statistics narrows each individual test and leaves the maximum over tests where it was.

427.0.4 The subtraction creates the sign

Offsets were estimated from a window of the data and removed:

\[ \begin {array}{rrrr} \text {window fraction} & \text {negative} & \text {median residual} & |\text {pull}|>3 \\ \hline 1.00 & 50.6\% & -0.173 & 0.38\% \\ 0.50 & 50.8\% & -0.220 & 0.40\% \\ 0.25 & 50.6\% & -0.164 & 0.42\% \\ 0.10 & 50.3\% & -0.081 & 0.47\% \\ 0.05 & 51.7\% & -0.462 & 0.49\% \\ \end {array} \]

The negative fraction sits at \(50\%\) throughout, as it must for a symmetric noise distribution about a correctly estimated offset. This is the null case against which the supernova pre-explosion window of §426 should be read: there the negative fraction was \(49.23\%\) but \(|\text {pull}|>3\) was \(7.6\%\), against the \(0.4\)–\(0.5\%\) obtained here. The centre agrees; the tail does not.

427.0.5 Redshift from noise

Applying the line-matching procedure of §700.1 to spectra containing no lines, over \(z \in [-0.5,\,1.2]\):

\[ \begin {array}{lrrr} \text {input} & \text {median } z & z<0 & S_{+}/S_{-} \\ \hline \text {white noise} & -0.0556 & 57.5\% & 0.968 \\ \text {Poisson} & +0.1760 & 45.0\% & 1.005 \\ \text {smooth}+\text {noise} & +0.5892 & 37.5\% & 1.028 \\ \text {red noise} & +0.4247 & 45.0\% & 1.035 \\ \end {array} \]

Every input returns a best-fit redshift, and the ratio of the best positive score to the best negative score is between \(0.97\) and \(1.04\). The procedure has no preference for either sign when there is nothing to find, which is the correct null behaviour.

The comparison that matters is with the real spectra of §426, where the same statistic gave \(S_{+}/S_{-} = 1.14\) to \(1.23\). The discriminating power on real data exceeds the noise floor by ten to twenty percent.

427.0.6 What follows
  observed          established here
  -------------------------------------------------------------------
  Zmax ~ 3          from pure noise, any reasonable background family
  Zmax ~ 44         from pure noise, if a mis-specified family is admitted
  Zmax flat in N    the maximum is set by trials, not by statistics
  50% negative      correct null for a symmetric residual
  S+/S- ~ 1.0       correct null for redshift search
  -------------------------------------------------------------------
  compare with the real data:
  ATLAS signal-free    21.9 sigma with the exponential admitted
  ATLAS signal-free     3.25 sigma with it excluded
  ATLAS Higgs window    5.07 sigma
  SN pre-explosion     49.2% negative, |pull|>3 at 7.6%
  SDSS spectra         S+/S- = 1.14 - 1.23

The null behaviour of a subtraction-and-search procedure is a median \(Z_{\max }\) near \(3\), a symmetric residual, and no sign preference. Real data depart from that null, but by margins that are of the same order as the departures produced by admitting one additional background function, by narrowing the baseline window, or by misestimating the errors.

pict

427.1 Subtraction and Search

427.1.1 Every observable is a difference
  ADC        - pedestal          detector electronics
  ADU        - bias              CCD, from the overscan region
  flux       - sky               spectroscopy, from sky fibres
  image      - template          difference imaging
  data       - background        collider spectra
  observed   - model             any fit residual
  lam_obs/lam_lab - 1            redshift (a ratio; a difference in log space)

In every case the subtracted quantity is itself estimated from data. A residual is not a signal but the difference of two estimates.

427.1.2 The null: pure noise, zero signal

Poisson counts were generated from a smooth falling distribution with no injected signal, and the standard procedure applied: fit a background, search for a Gaussian peak over \(170\) positions and three widths, report \(Z=\sqrt {\Delta \chi ^2}\).

Twenty background families were used, spanning exponentials, powers, polynomials to degree eight, Chebyshev and Bernstein bases, and a log-normal. The per-family behaviour over \(200\) realisations:

\[ \begin {array}{lrrrrr} \text {family} & \text {par} & \chi ^2/\mathrm {dof} & \text {median } Z_{\max } & \max Z & Z>5 \\ \hline \text {log-normal} & 2 & 13.93 & 50.62 & 52.50 & 100.0\% \\ \text {exp} & 1 & 24.50 & 43.52 & 45.98 & 100.0\% \\ \text {exp}\times 2 & 2 & 11.34 & 34.29 & 36.96 & 100.0\% \\ \text {exp}\times 3 & 3 & 7.19 & 28.55 & 31.34 & 100.0\% \\ \text {poly 1} & 2 & 2.74 & 14.75 & 17.21 & 100.0\% \\ \text {exp}\times \text {poly1} & 2 & 1.33 & 6.53 & 9.73 & 97.5\% \\ \text {power} & 2 & 1.73 & 5.23 & 7.85 & 66.5\% \\ \text {power}^3 & 3 & 1.04 & 3.26 & 6.07 & 1.5\% \\ \text {poly 2} & 3 & 1.06 & 2.99 & 4.88 & 0.0\% \\ \text {exp}\times \text {poly2} & 3 & 0.99 & 2.49 & 4.17 & 0.0\% \\ \text {poly 3--8} & 4\text {--}9 & 0.99\text {--}1.02 & 2.32\text {--}2.46 & 4.04\text {--}4.46 & 0.0\% \\ \text {cheb 3--7} & 4\text {--}8 & 1.00\text {--}1.02 & 2.32\text {--}2.42 & 4.04\text {--}4.46 & 0.0\% \\ \text {Bernstein} & 4 & 1.00 & 2.32 & 4.27 & 0.0\% \\ \end {array} \]

The relation is monotonic and steep. A family with \(\chi ^2/\mathrm {dof}\) near unity gives a median \(Z_{\max }\) of \(2.3\)–\(3.0\) and never exceeds \(5\). A family with \(\chi ^2/\mathrm {dof}\) of \(24.5\) gives \(43.5\), in every realisation.

There is no signal in any of these. The significance is the misfit of the background, re-expressed as a Gaussian amplitude.

427.1.3 The admission gate sets the answer

Admitting all twenty families and varying only the \(\chi ^2/\mathrm {dof}\) threshold above which a family is rejected:

\[ \begin {array}{rrrrr} \text {gate} & \text {families passing} & \text {median } Z_{\max } & 95\% & \max \\ \hline 1.05 & 9.0 & 2.87 & 3.98 & 4.36 \\ 1.10 & 11.3 & 3.21 & 4.46 & 5.82 \\ 1.20 & 13.1 & 3.63 & 6.15 & 7.33 \\ 1.50 & 14.0 & 6.50 & 8.10 & 8.65 \\ 2.00 & 15.0 & 6.72 & 8.44 & 9.13 \\ 5.00 & 16.0 & 14.65 & 16.24 & 17.45 \\ \text {none} & 20.0 & 50.55 & 51.84 & 52.65 \\ \end {array} \]

The data are the same in every row: Poisson noise, no signal. The median \(Z_{\max }\) runs from \(2.87\) to \(50.55\) as a function of one threshold.

The gate of \(1.5\) used in §380 sits where the median is \(6.50\) — already above the discovery convention — and the two-family difference between a gate of \(1.2\) and \(1.5\) moves it from \(3.63\) to \(6.50\).

427.1.4 The maximum does not fall with statistics

Two independent Poisson samples were drawn from the same distribution and the search run on \(A-B\), with twelve background families:

\[ \begin {array}{rrrrrr} N\ \text {per sample} & \text {median} & 95\% & \max & Z>3 & Z>5 \\ \hline 10^{3} & 2.66 & 3.52 & 3.75 & 19.2\% & 0.0\% \\ 10^{4} & 2.64 & 3.47 & 3.83 & 20.0\% & 0.0\% \\ 10^{5} & 2.51 & 3.34 & 3.95 & 15.8\% & 0.0\% \\ 10^{6} & 2.60 & 3.29 & 4.28 & 23.3\% & 0.0\% \\ 10^{7} & 2.66 & 3.41 & 4.11 & 23.3\% & 0.0\% \\ \end {array} \]

Ten thousand times more data leaves \(Z_{\max }\) where it was, at \(2.5\)–\(2.7\), and one realisation in five exceeds \(3\sigma \). This is correct behaviour for a maximum over a fixed number of trials: more statistics sharpens each individual test and leaves the maximum over tests unchanged.

It also fixes the scale. A subtraction-and-search procedure returns \(Z_{\max }\approx 2.6\) from nothing, at any sample size, provided the background families fit.

427.1.5 Against the real data
  NULL (pure noise, zero signal)
    well-fitting families        Zmax  2.3 - 3.0   never above 5
    A - B, any N                 Zmax  2.5 - 2.7   20% above 3
    one mis-specified family     Zmax 43.5         100% above 5
    gate 1.05 -> gate none       Zmax  2.87 -> 50.55

  REAL DATA (this work)
    ATLAS signal-free, exp admitted      21.88
    ATLAS signal-free, gate 3.0           7.83
    ATLAS signal-free, gate 1.5           2.75
    ATLAS Higgs window                    5.07   global 3.20
    SDSS redshift search    S+/S-  1.14 - 1.23   (noise floor 0.97 - 1.04)
    SN pre-explosion    49.2% negative, |pull|>3 at 7.6%  (null 0.4 - 0.5%)

The ATLAS signal-free maximum of \(21.88\sigma \) obtained with the single exponential admitted has its exact counterpart in the null: \(43.52\) from the same family on pure noise. Excluding it brings the figure to \(2.75\) at a gate of \(1.5\), which is the null median.

The Higgs window returns \(5.07\sigma \) locally and \(3.20\sigma \) after trials. The null median for a well-specified background is \(2.6\). The excess over the null is a factor of two in \(Z\), which is real, and it is of the same order as the shift produced by moving the admission gate from \(1.2\) to \(1.5\).

427.1.6 What the procedure guarantees

A procedure that estimates a background from data and searches the residual for a bump returns a bump. The size of that bump is set by three things, none of which is the data: how many background families are admitted, how well the worst admitted family fits, and how many positions are searched. The number of events enters none of them.

Where the residual is small the procedure has nothing to work with, and where the background is mis-specified it produces arbitrary significance. Between those, the answer is a function of the gate.

Data and Source Availability

  Simulation            numpy.random.default_rng(0)
                        Poisson, 400 bins, mean 300*exp(-0.02x)+50
                        no injected signal in any run

  Background families   exp, exp2, exp3, exp*poly1, exp*poly2,
                        power, power3, log-normal, Bernstein(4),
                        poly 1-8, Chebyshev 3,5,7        [20 total]

  Peak search           Gaussian, widths 1, 2, 3
                        170 positions, 0.5 spacing, 6 units from each edge
                        Z = sqrt(chi2_bkg - chi2_bkg+sig), amplitude > 0

  Realisations          150 per configuration (120 for the A-B test)
                        200 for the per-family table

  Comparison values     ATLAS: this work, Open Data 93915 + 15006
                        SDSS: DR17, 42,072 pixels
                        SN: Pantheon+ DataRelease, 127,880 epochs

pict