A Higgs boson measurement
Simulated collision events are reported as 6 category counts, and the signal strength is fitted from them. How much does the choice of categories change its uncertainty, against slices of a classifier output, when the tau energy scale is fixed and when it floats?
1. The measurement
A search for the Higgs boson decaying to two tau leptons counts collision events in a few categories and fits the counts. The parameter of interest is the signal strength , the signal rate relative to the prediction. Two nuisances are fitted with it: the background rate , and the tau energy scale , a calibration that shifts every energy-dependent quantity of every event. The usual categories are slices of a signal-versus-background classifier output.
The page compares those slices with 6 categories drawn by ScoreQuant, on a committed fixture of 1,000 simulated events. Each event carries a Monte Carlo weight and copies at seven shifted energy scales. It is a simulation study, not a published analysis: one merged background, a selection held fixed under the shift, and ordinary gradient-boosted trees.
2. Why classifier slices lose the signal strength
A count table measures through the way each parameter changes the expected counts of its categories. With and floating, the Poisson information about that survives is
and the expected uncertainty is . The reason is simple: the fit explains away any change in the counts that the nuisances can imitate, and only the remainder measures .
A single cut on the classifier output is the exact case. Its two counts cannot separate three parameters: the nuisances imitate any change of two counts, the minimum is zero, and the cut measures nothing once floats.
Finer slices come close to that. They order events by how signal-like they look, and raising the energy scale moves background up that order, into the slices where the signal adds its events. The energy-scale pattern imitates much of the signal pattern, and little remains: the classifier output, one number built to separate signal from background, does not record how an event responds to .
3. Scores from two classifiers
ScoreQuant bins events by their scores, the derivatives of each event's log likelihood with respect to , and . A signal-versus-background classifier supplies the two rate columns through the density ratio it estimates, and a second classifier, trained to tell an event's energy-scale-shifted-up copy from its shifted-down copy, supplies the energy-scale column as a central difference; the density-ratio walkthrough explains the step.
cross_fitted_table builds the table under the Monte Carlo weights, and scores every event with classifiers that never saw it or its shifted copies:
import numpy as np
import scorequant as sq
from examples.hep_classifier import SCHEMA, cross_fitted_table, load_fixture
data = load_fixture()
table = cross_fitted_table(data)
assert table.scores.shape == (data.n_events, 3)
assert SCHEMA.parameters == ("mu_htautau", "nu_background", "tes")
4. A rule fitted on half the events
A search needs a rule, not a labelling of the simulated events: a function of an event's scores that returns a category, so that recorded data and shifted copies can be categorised too. The events are split once into two halves; the rule is fitted on one and applied to the other, which enters the fit only as a validation sample that never steers it.
A category's response is its expected count times its mean score, so the information of the previous section can be computed from the score table for any proposed categories. The profiled criterion maximises it (user guide (opens in a new tab)). Plain D-optimality, which values , and alike, is fitted the same way for comparison.
from examples.hep_classifier.experiment import HEADLINE_BINS, SOLVER_SEED, event_split
halves = event_split(data.is_signal)
reference = table.subset(halves == 0)
evaluation = table.subset(halves == 1)
ds_rule = sq.fit_quantizer(
reference.sample(),
validation=evaluation.sample(),
n_bins=HEADLINE_BINS,
criterion=sq.ProfiledDOptimality(("mu_htautau",)),
config=sq.SoftVoronoiConfig(seed=SOLVER_SEED, initializer_restarts=8, max_iter=400),
)
assert ds_rule.information_kind == "supplied_score_surrogate"
labels = ds_rule.predict_scores(evaluation.scores)
signal = np.where(evaluation.is_signal, evaluation.weights, 0.0)
background = evaluation.weights - signal
signal_yield = np.bincount(labels, weights=signal, minlength=HEADLINE_BINS)
background_yield = np.bincount(labels, weights=background, minlength=HEADLINE_BINS)
These yields are the count table a search publishes; applied to the shifted copies, the rule gives them at every energy scale too.

5. The uncertainty on the signal strength
The yield templates give the expected uncertainty on from the count table's own Poisson likelihood, as an Asimov value at , with the simulation's actual energy-scale response rather than the estimated score.
| Rule, 6 categories | σ(μ), energy scale fixed | σ(μ), energy scale floating |
|---|---|---|
| Profiled rule | 0.706 | 0.717 |
| Plain D rule | 0.735 | 0.765 |
| Classifier quantile bins | 0.669 | 1.190 |
| Classifier logit, equal width | 0.636 | 1.460 |
| Classifier intervals, max S²/(S+B) | 0.596 | 1.909 |
With the energy scale fixed, every rule does about equally well, and the classifier slices are slightly ahead: they were built for that question. Once it floats, their σ(μ) grows roughly two- to threefold, to 1.460 for equal-width logit bins, while the profiled rule's grows by a few percent, to 0.717. Plain D is close behind, so most of the gain comes from binning in score space at all.
The same categories fed to pyhf, as a standard HistFactory model with free signal and background rates and the energy scale as a template variation, give σ(μ) of 0.706 and 0.710 for the profiled rule, and 0.636 and 1.590 for equal-width logit bins, energy scale fixed then floating. The fixed values match the table. Floating, pyhf reads the energy-scale response from two shifted templates rather than a line through all seven, which moves the values by up to a tenth but keeps their order (examples/hep_classifier/pyhf_fit.py).
The absolute values are not a projected sensitivity, because the fixture's weight is a subsample sum; the ratios between rows are the result. The table's rules were fitted on all events, since one half is too small to rank them precisely; held out, the profiled rule still beats every classifier binning with the energy scale floating, in both directions of the split. The Monte Carlo uncertainty of the yields, which a real analysis would add, is about forty times the Poisson uncertainty here, and the order of the rows survives it. A Gaussian constraint of width 0.01 on hardly moves any row: the counts already pin the energy scale more tightly.
6. What a held-out half retains
In information terms the comparison is strictly held out: each rule is fitted on one half, and the profiled information about that the other half's counts retain is divided by that half's unbinned profiled information.
| Method | Profiled information about the signal strength, held out |
|---|---|
| Classifier quantile bins | 0.3682 |
| Classifier logit, equal width | 0.2712 |
| S²/(S+B) intervals | 0.3244 |
| Plain D rule | 0.8025 |
| Profiled Ds rule (ScoreQuant) | 0.8583 |
| Certified ceiling (reference ceiling) | 0.9642 |
The profiled rule keeps 0.8583 of the information on events it never saw, close to the certified ceiling (API guide (opens in a new tab)); the classifier binnings keep between a quarter and two fifths, and which of them comes out best changes with the direction of the split.
These retentions rest on the estimated scores, which is why the rule records its information as a surrogate. The energy-scale column is the noisy one: two classifiers trained on disjoint events agree on it only at a correlation of 0.50, and that noise biases every retention down. The σ(μ) table does not use that column, which is why it is the primary result.
7. What the result means
Slicing a classifier output is the right compression when the energy scale is known: the classifier separates signal from background, and that is all a fit with fixed asks. Once floats, the fit also needs the changes in the counts that the energy scale cannot imitate, and the classifier output does not record them. Categories drawn in score space keep them, because each event carries its response to every parameter, and the uncertainty on the signal strength stays close to where it was with the energy scale fixed.
The study is small and simulated: the scores are estimates, and the categories are small enough that Monte Carlo statistics would dominate a real analysis. The events are a subset of the FAIR Universe - HiggsML Uncertainty Challenge Public Dataset, released under CC-BY-4.0 through record 10.5281/zenodo.15131565. Every number on the page comes from the evidence file that JAX_ENABLE_X64=1 MPLBACKEND=Agg uv run python -m examples.hep_classifier writes.