Goodness of fit by Neyman-Pearson testing

G. Grosso, Marco Letizia, M. Pierini, Andrea Wulzer · DOI

Abstract

The Neyman-Pearson strategy for hypothesis testing can be employed for goodness of fit if the alternative hypothesis is selected from data by exploring a rich parametrised family of models, while controlling the impact of statistical fluctuations. The New Physics Learning Machine (NPLM) methodology has been developed as a concrete implementation of this idea, to target the detection of new physical effects in the context of high energy physics collider experiments. In this paper we conduct a comparison of this approach to goodness of fit with others, in particular with classifier-based strategies that share strong similarities with NPLM. From our comparison, NPLM emerges as the more sensitive test to small departures of the data from the expected distribution and not biased towards detecting specific types of anomalies. These features make it suited for agnostic searches for new physics at collider experiments. Its deployment in other scientific and industrial scenarios should be investigated.

Introduction: The Challenge of High-Dimensional Goodness-of-Fit

In high-energy physics (HEP), researchers are constantly tasked with determining whether experimental data matches the predictions of the Standard Model. This is fundamentally a Goodness of Fit (GoF) problem. While straightforward for one-dimensional data, GoF becomes exceedingly difficult in the high-dimensional spaces typical of particle collider experiments. Traditional methods, such as the Chi-squared test, often fail as the number of dimensions increases.

Recent "Classifier-based" methods, like the Classifier-based Two-Sample Test (C2ST), attempt to solve this by training a neural network to distinguish between experimental data and a reference simulation. If the classifier cannot distinguish between the two, the fit is considered "good." However, these classifiers often have "blind spots"—they may miss small but significant clusters of anomalous events (a "needle in a haystack") because they weight all data points equally in their pursuit of overall classification accuracy.

Methodology: The New Physics Learning Machine (NPLM)

This paper explores the New Physics Learning Machine (NPLM), which reframes GoF as a Neyman-Pearson hypothesis test. According to the Neyman-Pearson lemma, the likelihood ratio is the most powerful test statistic for hypothesis testing. Unlike standard classifiers, NPLM uses a neural network to learn the log-likelihood ratio between the data distribution and the reference distribution. This approach naturally gives more weight to points that are highly unlikely under the reference model, enhancing sensitivity to subtle anomalies.

NPLM explores a nested family of hypothesis spaces to find the best fit for the data. Panel (a) shows the model fitting different data distributions (D1, D2) across varying hypothesis space complexities (Ha, Hb, Hc). Panel (b) illustrates the nested nature of these spaces.

A key innovation of NPLM is its agnostic learning capability. The model does not require prior knowledge of the anomaly's shape. Instead, it explores a rich family of models to find the "best fit" alternative hypothesis directly from the data. As illustrated in Figure 2, by considering nested hypothesis spaces of increasing complexity ($H_w^a \subset H_w^b \subset H_w^c$), the model can adapt to various types of departures from the reference distribution $R$.

Furthermore, NPLM maximizes data efficiency by using the entire dataset for both training and evaluation. While this risks overfitting, the authors employ specific regularization techniques, such as weight clipping, to control statistical fluctuations. This "in-sample" evaluation effectively doubles the available statistics compared to traditional train-test splitting methods.

Experimental Evaluation

The authors evaluated NPLM using three distinct datasets:

  1. Expo (1D Toy): An exponential background with five different signal types, ranging from small peaks in the tail to broad distortions in the bulk.
  2. μμ (5D Realistic): A high-energy physics simulation of muon pairs, testing the ability to find "New Physics" signals like a heavy $Z'$ boson or Effective Field Theory (EFT) distortions against a Drell-Yan background.
  3. DQM (Data Quality Monitoring): Real-world data from a muon drift tube chamber at CERN, used to detect hardware failures or calibration drifts.

Key Insights and Results

The results demonstrate that NPLM consistently outperforms C2ST in terms of statistical power. In almost every benchmark, NPLM's "power curves"—the probability of detecting a signal at a given significance—were significantly higher.

  • Sensitivity to Small Signals: In the "peak in the tail" benchmark, where the signal-to-background ratio is very small, C2ST was completely unable to distinguish the signal, while NPLM detected it with high confidence.
  • Uniformity of Response: NPLM responds more uniformly to different signal shapes than traditional tests (like Anderson-Darling or Kolmogorov-Smirnov), which often have specific strengths but catastrophic weaknesses for certain anomaly types.
  • Robustness: NPLM remained sensitive even when the total number of events matched the reference, but the shape of the distribution differed slightly—a scenario where many counting-based tests fail.

Conclusion and Future Directions

NPLM represents a significant advancement in goodness-of-fit testing for high-dimensional data. By leveraging the Neyman-Pearson lemma and modern neural network regularization, it provides a more sensitive and agnostic tool for discovery in high-energy physics. While the computational cost of training multiple "toy" datasets for reference distributions is a factor, the gains in statistical power and sensitivity are substantial. Future research will focus on scaling NPLM to even higher-dimensional tasks, such as validating complex generative models.

Summary updated

BibTeX
@inproceedings{grosso2024goodness,
  author = {G. Grosso and Marco Letizia and M. Pierini and Andrea Wulzer},
  title = {{Goodness of fit by Neyman-Pearson testing}},
  booktitle = {SciPost},
  year = {2024},
  doi = {10.21468/scipostphys.16.5.123},
}
Figure