Hunting a 1 TeV particle
A coursework search for a heavy Higgs-like resonance in simulated collider events: cuts chosen by eye against a neural network that learns them, and an honest look at what a quoted significance does and does not mean.
Paolo Minhas · Project 4 (the Week 9 report) of the DAML course, School of Physics and Astronomy, University of Edinburgh
01The question
New heavy particles, if they exist, would show up as a bump in a mass spectrum: collisions that produced the particle pile up at its mass, on top of a smooth background of ordinary events. The sample here is a simulated 1 TeV particle (the file is called ggH1000) decaying through a Z boson into two leptons, with the rest of the decay showing up as one wide jet of particles, a “fat jet”. The quantity to look at is the mass of that whole system, reco_zv_mass.
The backgrounds are three simulated samples of ordinary processes that can fake the signature: pairs of gauge bosons (diboson), top quarks, and a Z boson produced with jets. Together there are 6,826,959 background events against 50,013 signal events. The events also carry weights that say how many real events each simulated one stands for, and the weighted sums are what matter: 5,402,674 background against 4200 signal. The files store energies in MeV; I show GeV or TeV here.
Real proportions
One signal event in how many?
Keep only the events that pass
1 in 1,287 events is signal. The grid shows 1,500 events, so about 1 is signal. Everything in the three background samples and the signal sample, weighted by the event weights.
- Signal kept
- 4200
- Background kept
- 5,402,674
- S / B
- 0.0008
Weighted event counts from the notebook. Which cells are signal is a fixed random pick: the picture shows the proportion, not real events.
In plain English
02What the events look like
Each event comes as a row of numbers: the momenta and angles of the two leptons, the fat jet’s momentum and D2 value, the dilepton mass and momentum, and the missing transverse energy. I plotted each one for the signal against the backgrounds. Almost everything overlaps. That is why choosing cuts takes thought.
Read off the notebook's printout
Where a cut can go
Variable
The signal's lower quartile sits above where most background lives, but the tails overlap. A gentle cut at 43 GeV drops the softest leptons.
The notebook printed the signal’s 10th and 25th percentiles and the background’s 75th and 90th for each variable, and I used them to place cuts where they cost the signal little. The ruler above shows the numbers beside the final cut for each variable. It also shows why some variables got no cut: when the two sets of percentiles are interleaved there is nothing to cut on.
03Square cuts
The final set is five cuts: D2 below 4, missing energy below 55 GeV, dilepton mass between 80 and 100 GeV, fat-jet momentum above 240 GeV and second-lepton momentum above 43 GeV. Together they keep 30,629 of 50,013 signal events and 1,687,010 of 6,826,959 background events. Weighted, that is 61.1% of the signal and 75.6% of the background removed, and the signal share goes from 0.0008 to 0.0019.
That is a modest gain, and the plot shows why. Normalised to the same area, the signal is a narrow peak at 1 TeV (bottom left below); in absolute numbers it is a barely visible sliver at the foot of a huge background (top right).
The tuning was slow. Harder cuts changed the shape of the background until its peak lined up with the signal’s, so I kept them gentle, and the fat-jet momentum cut was the one I worried about most. A first set that had worked without the Z+jets background was not good enough once it was added.
04A neural network
The alternative is to let a model learn the cuts. I built a small fully connected network in PyTorch and trained it on a balanced sample, 50,013 signal and 50,013 background events drawn at random, scaled to zero mean and unit variance, with 70% for training and 30% held back. It sees all eight kinematic variables and does not see the reconstructed mass.
From the notebook's code and printed results
The network, and how it did
Which network
Two hidden layers of 40 nodes, dropout 0.2, 2,041 trainable parameters, trained with Adam on binary cross-entropy for 200 full-batch epochs. Each point stands for 40 nodes; only a few are drawn.
Held-out 30% of a balanced sample (30,008 events). Rows are the truth, columns the network’s call.
Background kept out
12,857
85.8% of its row
Background let in
2,136
14.2% of its row
Signal lost
1,478
9.8% of its row
Signal found
13,537
90.2% of its row
Accuracy 88.0%, signal found 90.2%, background rejected 85.8%, area under the ROC curve 0.943.
On the held-out events it finds 90% of the signal and keeps out 86% of the background, with an area under the ROC curve of 0.943. Run over the whole signal and diboson samples, it keeps 90% of the weighted signal.
05Fitting and the sigma
To turn a selection into a claim, fit the mass spectrum two ways between 0.7 and 2.0 TeV, in 40 bins. is a smooth cubic for the background alone. adds a Gaussian for the signal, with its position and width fixed from a fit to the signal sample. The significance is where : how much better the signal term makes the fit.
The notebook’s results were these:
| Selection | χ² (H0 → H1) | Fitted signal | Significance |
|---|---|---|---|
| Square cuts | 224.09 → 192.97 | -1,115 | 5.58σ |
| Network | 638.85 → 424.67 | +2,386 | 14.63σ |
The network’s 14.6σ is nearly three times the cuts’ 5.6σ, and the notebook’s own comment is that this is impressive. Look at the sign of the first row, though, and then at the plot:
The notebook's recipe, live
How many sigma, and for what?
- Significance √Δχ²
- 5.58 σ
- p-value, one extra parameter
- 2.43×10⁻⁸
- Particle-physics discovery bar
- 5 σ, Δχ² = 25
But is the background model any good?
χ² divided by the number of degrees of freedom is about 1 for a fit that describes the data. Bars longer than the line are fits that do not.
Fits over 0.7 to 2.0 TeV in 40 bins: 36 degrees of freedom for the cubic background, 35 with the signal term. The white tick is χ²/ndf = 1. A large Δχ² only says that the signal term fits better than nothing; it says nothing about whether “nothing” was a fair description to begin with.
The network’s fit has a real shoulder to explain, but even there both curves miss the points on either side of it, and the χ² per degree of freedom is about 12 for the network’s best fit and 5.5 for the square-cut one. When the background model does not describe the data, any reasonable extra term will improve it a lot, and a large Δχ² follows.
06Mass sculpting
The last part of the project asked what happens if the reconstructed mass is included among the network’s inputs. The second network’s numbers look excellent: 92.9% accuracy and, over every event, 94% of the signal kept for only 7.5% of the background, a signal share of 0.0098 against 0.0019 for the cuts.
They are a warning. A network told the mass can learn that events near 1 TeV are more likely to be signal and favour them, whatever else they look like. The background that survives is then no longer smooth: it has a bump at the signal mass, made by the selection. Fit it with a smooth background plus a Gaussian and the Gaussian soaks the bump up. Below, there is no signal at all.
A toy with one real ingredient
Build a signal out of nothing
This sample contains no signal at all. The background curve is the cubic the notebook fitted to the square-cut background; the selection is a stand-in for a classifier that has been shown the mass and likes events near 1 TeV. Turn up how much it leans on the mass, and fit the result the way the notebook did.
At 0% it ignores the mass and the background keeps its smooth shape.
- Real signal events
- 0
- Fitted signal amplitude
- +1106 events
- Δχ² against no signal
- 969.6
- Apparent significance
- 31.1 σ
Toy: expected counts, no random fluctuations; 10% of the background is kept at every setting; the bump is a Gaussian of width 0.08 TeV, and the fit uses a Gaussian of the same position and width. Only the background curve is real data.
The effect in the notebook is a smaller version of the same thing. Its background histogram for the mass-trained network has visibly more events in the second bin than the other network’s, so the shape has changed (the figure’s x axis runs out to 5×10⁷ MeV, which squeezes that into the first two bars). The notebook’s conclusion is the one to keep: the reason to leave the mass out is that otherwise the selection can reshape the background to match the signal, and the thing you are searching for must not be something the selection can make.
07How far to trust it
These are the checks I made on the notebook while building this page, in a neutral tone, and what they could and could not settle.
- The 5.58σ is not a measurement of signal. The data histogram for the square-cut fit is built from
background_cutonly, the fitted signal amplitude is −1,115 events, and the notebook itself notes that the fit “has not worked correctly”. The network fit uses signal plus background. A like-for-like test would fit the same signal-plus-background sample after each selection. - All four fits describe the data poorly. χ² per degree of freedom is between 5 and 18. √Δχ² assumes the background model is right, so with these numbers it is a figure of merit for how much better the signal term fits, not a probability that the signal is real.
- The training curves do not show overfitting. The notebook suspected it. In the plot, the training and test curves lie on top of each other, early stopping never triggered, and accuracy is still creeping up at epoch 200 (about 0.88). A longer run is the likelier improvement. The 0.943 AUC and the confusion matrix are on a balanced held-out sample, not on the real signal-to-background ratio.
- The with-mass and without-mass numbers are not on the same sample. The network without the mass was applied to signal plus diboson only (3,800.7 signal and 8,433.3 background, weighted); the one with the mass was applied to signal plus all three backgrounds (3,959.8 and 405,859.9). The side-by-side plot the notebook meant to draw hit an error (an array of 205,140 where 6,876,972 were expected), so it never rendered.
- The cuts were tuned on the samples they are judged on. With millions of events that is a small effect, but there is no held-out set for the cut-based result, and the cut values came from reading the quantile printout.
- Nothing was re-run. The event files are not part of what I had to hand. Every number here is a printed output of the notebook or arithmetic on one; the confusion-matrix counts are read from its plot. The mass-sculpting lab is a toy, labelled as one, with a single real ingredient: the background curve.
Source: the Week 9 notebook (Project 4) for the DAML course; samples supplied with the course. Back to all research.