When a cosmic-ray observatory scans thousands of overlapping sky windows for a cluster of events, the most extreme window will look significant even if nothing is there. Physicists call this the look-elsewhere effect. Today they correct for it by simulating huge numbers of fake skies. The Telescope Array needed $10^6$ simulated skies to show that a hotspot of 19 events, where 4.49 were expected, fell from $5.1\sigma$ before the correction to $3.4\sigma$ after it (INDICATIONS OF INTERMEDIATE-SCALE ANISOTROPY…). This approach has two weaknesses. Confirming a $5\sigma$ global excess (a p-value of about $2.9\times10^{-7}$) needs orders of magnitude more simulations. And every simulated p-value is only as good as the background model fed into the simulator.
We propose to borrow a proof technique from circuit complexity to replace simulation with a certificate: a rigorous upper bound on the corrected p-value. The bound is built from small local calculations around each window. It holds for every background model that agrees with the assumed one on those local neighborhoods, not just for one model. The technique comes from the switching lemma, a theorem about how logic formulas simplify when most of their inputs are fixed at random. Its standard proof charges each failure to the first clause that causes it, which avoids counting the same failure many times. Recent work on derandomizing the switching lemma made a further observation that we reuse: such proofs only use a few low-order statistical properties of the randomness, so they remain valid for any distribution that has those properties.
Core Claim
Treat a scan as an OR over windows $W$ of threshold events "count in $W$ is at least $k$." The union (Bonferroni) bound adds up every window's tail probability. It is loose because one real or fake cluster pushes many overlapping windows over threshold at once. Following the canonical-witness step of switching-lemma proofs, we fix an order on the windows and charge the global event to the first window that exceeds the threshold:
$$ P\Big(\max_W n_W \ge k\Big) \;\le\; \sum_{W} P\big(n_W \ge k \ \text{and}\ n_{W'} < k \ \text{for all } W' \in \mathcal{N}(W),\ W' \prec W\big). $$
Here $n_W$ is the event count in window $W$, $\prec$ is the chosen order, and $\mathcal{N}(W)$ is a local neighborhood of overlapping windows. The inequality holds for any neighborhood size, because dropping constraints can only increase each term. It becomes an equality when $\mathcal{N}(W)$ contains all earlier windows.
Each summand depends only on the joint distribution of counts in the small region covered by $\mathcal{N}(W)$. It can therefore be computed exactly by multinomial or Poisson enumeration over the cells formed by the overlapping windows. This needs no global simulation, and the cost does not grow as the tail probability shrinks.
The "fooling the proof" insight then gives the second, more distinctive claim. Because the certificate only uses neighborhood-level distributions, taking the maximum of each summand over a set of local background models gives a single p-value bound valid for all of them. Examples of such sets are exposure maps known only to within a few percent, or smooth large-scale dipoles of bounded amplitude. This is the scan-statistic analogue of a pseudorandom restriction: the proof needs only bounded local agreement with the reference model, not full independence.
Relation to Prior Work
The research file contains no prior work joining these two directions. The method comes from Improved Pseudorandom Generators from Pseudorandom Multi-switching Lemmas, which shows that a multi-switching lemma survives when true randomness is replaced by distributions matching only the properties its encoding proof checks. It also comes from Improved Pseudorandom Generators for AC0 Circuits, which fully derandomizes that lemma by partitioning the input coordinates. Both papers bound failure probabilities over a family of formulas under one shared random restriction, but only over uniform bits and for building pseudorandom generators. We keep the proof structure: charging each failure to a first witness, and needing only limited agreement with true randomness. We discard the generator.
The multi-switching view suggests one extension. A single canonical order over the product family of positions, angular radii, and energy thresholds yields one certificate for a multi-scale scan, instead of a separate correction for each scale.
Learning pseudo-Boolean k-DNF and Submodular Functions extends switching arguments to integer-valued functions, but its cost grows super-exponentially in the output range. It serves here as a constraint. We avoid pushing a switching lemma through Poisson counts directly and use only the charging step, which handles integer counts without that blow-up.
On the physics side, the Telescope Array analysis motivates the work and supplies the reference p-value. The marginal $\psi(2S)\to\gamma\eta$ signal in Branching fractions for psi(2S) -> gamma eta' and gamma eta is an example of the small-count regime where asymptotic approximations are doubtful. We should be candid about one gap. Classical scan statistics and pairwise-overlap refinements of Bonferroni (Hunter- or Worsley-type bounds) exist outside this file. The novelty claimed is not the existence of improved union bounds. It is three things together: exact local computation with neighborhoods of controllable order, worst-case certificates over a whole set of background models, and a single certificate for joint multi-scale scans.
Research Program
The first component is the theory. We will prove the charging inequality for spherical-cap windows under a multinomial null with non-uniform exposure. We will then bound how the gap between bound and truth shrinks as the neighborhood order grows. The intuitive reason it should shrink fast is that exceedance clusters are spatially local: given that window $W$ exceeds, the chance that a far-away earlier window also exceeds is roughly independent and tiny. Finally, we will state the robustness version: if each neighborhood's cell masses lie within a box of half-width $\delta$ around the reference model, the certificate is the sum of the per-neighborhood maxima. For upward deviations in the windows that exceed, monotonicity of the threshold events makes this maximization close to an endpoint evaluation.
The second component is the computation. We will build a library that does the following: constructs the cell arrangement of each neighborhood, computes the constrained tail probability by dynamic programming over cell counts, and sums over windows with cost linear in the number of windows.
Baselines
The naive reference point is the local p-value of the best window with no correction. On Telescope Array this corresponds to the reported $5.1\sigma$. Any method must land far above that p-value and at or above the true global one.
The simplest rigorous competitor is Bonferroni: the local p-value multiplied by the number of windows scanned. We will apply it to exactly the same window grid. Beating it means a strictly smaller valid bound, and we expect the gap to grow with grid resolution and with the number of scales.
The strongest existing method is Monte Carlo over the null, as used by Telescope Array. With $10^6$ isotropic skies it reports a chance probability of $3.7\times10^{-4}$ (post-trial $3.4\sigma$; Telescope Array). We will rerun Monte Carlo with the same 72-event selection, the same 20° windows, and our reconstruction of the exposure, so that both methods use one null. Our certificate must upper-bound the Monte Carlo value. Beating Monte Carlo on accuracy is not possible, since Monte Carlo is unbiased under its own null. Beating it means coming within a factor of 2 of its value at a small fraction of its compute. A further win would be giving valid bounds where Monte Carlo cannot, namely at $5\sigma$-level depths and across background-model sets.
Importance-sampling Monte Carlo, which reweights simulations toward clustered skies, gets the same CPU budget as our certificate. Gross–Vitells asymptotic formulas and Hunter-type pairwise bounds are also included. No reported result was found on Lacuna for any of these three on these datasets, so all will be run by us.
Two ablations isolate the key ingredient. The first varies neighborhood order: zeroth order recovers Bonferroni, then first-ring and second-ring neighborhoods follow. The second compares single-model and model-set certificates, which separates the cost of robustness from the gain of charging.
Why not just…?
Why not just run more Monte Carlo? For a fast isotropic-sky simulator this is a real threat at the $3\sigma$ level, and we will say so plainly. On the Telescope Array geometry, $10^9$ fast skies are affordable, and we will use them as ground truth. The case for certificates rests on two settings that our experiments test directly. The first is scans whose null requires expensive detector simulation, where reaching $p\sim10^{-7}$ is out of reach. The second is background mismodeling, which Monte Carlo cannot bound because it inherits whatever background model it is given. If the certificate is not within a small factor of the $10^9$-sky value, the approach has failed for this use.
Why not importance sampling? It reduces variance well when the likely failure pattern is known. It still returns an estimate under one null, with no worst-case guarantee across a set of background models. We will compare it at equal compute on accuracy and on coverage under a misspecified background.
Why not Gross–Vitells or other asymptotic formulas? They assume large counts. With 72 events and a 19-event cluster, that assumption is exactly what is in doubt. Our experiments will report how far the asymptotic estimate is from the $10^9$-sky ground truth, and whether it overstates significance in that regime.
Why not Hunter-type pairwise union bounds? These are first-order charging bounds and are the closest classical relative. If increasing the neighborhood order adds little beyond pairwise overlaps, the contribution reduces to the robustness and multi-scale parts, and we would report that outcome.
Proposed Experiments
The primary test reconstructs the Telescope Array scan: 72 events above 57 EeV, zenith angle below 55°, and 20° sliding windows. The success criterion is a certificate within a factor of 2 of $3.7\times10^{-4}$.
Next, we inject synthetic hotspots that span $3\sigma$ to $5.5\sigma$ global significance and extend the scan to radii from 15° to 35°. For each injection we compare certificate tightness and wall-clock time against $10^9$ fast skies.
For robustness, we perturb the exposure within ±5% and add dipoles of bounded amplitude. We then measure two things: how far single-model Monte Carlo p-values drift, and whether the model-set certificate still covers every perturbed null.
For a one-dimensional, low-count bump hunt with a realistic background shape, we draw small background samples from the HIGGS dataset's reconstructed-mass features (Searching for exotic particles in high-energy physics with deep learning). We scan mass windows with injected narrow signals at BES-like event counts, and fit the background on held-out subsamples so that the background-model error is real rather than simulated.
The decisive check for the whole proposal is this: the second-order certificate must be valid in every robustness trial, and it must be tighter than Bonferroni by at least an order of magnitude on the multi-scale scans.
References
- INDICATIONS OF INTERMEDIATE-SCALE ANISOTROPY OF COSMIC RAYS WITH ENERGY GREATER THAN 57 EeV IN THE NORTHERN SKY MEASURED WITH THE SURFACE DETECTOR OF THE TELESCOPE ARRAY EXPERIMENT
- Improved Pseudorandom Generators from Pseudorandom Multi-Switching Lemmas
- Improved Pseudorandom Generators for AC0 Circuits
- Learning pseudo-Boolean k-DNF and submodular functions
- Branching fractions for<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>ψ</mml:mi><mml:mn/><mml:mo>(</mml:mo><mml:mn>2</mml:mn><mml:mi>S</mml:mi><mml:mo>)</mml:mo><mml:mn/><mml:mo>→</mml:mo><mml:mi>γ</mml:mi><mml:mrow><mml:msup><mml:mrow><mml:mi>η</mml:mi></mml:mrow><mml:mrow><mml:mo>′</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:math>and γη
- Searching for exotic particles in high-energy physics with deep learning