Lesson 3 of 3 · Particle templates and likelihood comparisons
Compare the whole histogram without confusing preference with proof
21 minute lesson · 3 checks along the way
Your goal for this lessonCompare candidate signal/background mixtures with all histogram bins while separating relative likelihood, normalization and model adequacy.
In this lesson 4 sections · 3 checks
Read & understand
Model the population rather than label every event
A reconstructed positive charge does not always identify a true positron. The AMS charge-sign methods page describes charge-confusion backgrounds and template fitting: several detector responses help characterize populations whose measurements overlap. A template is a normalized predicted shape for a selected population in a measured variable. It must be supported by calibration and modeling. The fictional templates below have three bins and two components, called signal and background; they are not AMS classifier bins, measured particle counts or a reconstruction of its multi-component analysis.
Let the signal shape be s = [0.70, 0.25, 0.05] and the background shape b = [0.10, 0.25, 0.65]. Each sums to one. A candidate with expected component counts S and B predicts μi = Ssi + Bbi in bin i. Candidate A has S = 80 and B = 20, so μA = [58, 25, 17]. Candidate B has S = 20 and B = 80, giving μB = [22, 25, 53]. Both totals are 100. The shared middle-bin shape is deliberate: changing this mixture cannot alter its expected middle count at fixed total.
Read & understand
Calculate a likelihood ratio from every bin
For independent Poisson counts ni, a candidate likelihood is proportional to the product of e^(−μi) μi^ni/ni!. Taking the natural logarithm of a ratio cancels the factorial terms: ln(LA/LB) = Σ[ni ln(μAi/μBi) − (μAi−μBi)]. The total-rate difference also cancels here because both expected totals are 100. Conditional on that common total, a multinomial shape comparison gives the same ratio. These statements specify the sampling model; a likelihood ratio is not automatically a posterior probability or a significance level.
With observed n = [60, 25, 15], the log ratio is 60 ln(58/22) + 25 ln(25/25) + 15 ln(17/53) ≈ 41.107855. The middle term is zero because the candidates make the same prediction there. The positive sign favors A among these two supplied candidates. Every bin still belongs in the calculation: the last bin supplies evidence in the opposite direction from the first. Reporting only the first bin would exaggerate the comparison and hide evidence against the preferred candidate.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Test another observation and another normalization
For an alternate observation n = [22, 25, 53], the same calculation gives ln(LA/LB) ≈ −38.938352, favoring B. The templates did not change; the observed histogram did. A preferred mixture is an inference from the complete observed pattern and the candidate models, not a permanent label attached to the bin with the largest signal fraction. If templates or selection rules change, recompute all affected expected counts and check that each component shape remains normalized.
Now compare A with candidate C whose expected counts are 1.2 times A: [69.6, 30, 20.4], total 120. For any observed histogram totaling 100, ln(LC/LA) = 100 ln(1.2) − 20 ≈ −1.767844. The larger predicted rates do not automatically improve the fit. Omitting the −20 total-rate term would reverse this conclusion. Conditioning on a total would answer a different, shape-only question: A and C have identical normalized shapes. Choose the sampling question before discarding normalization information.
Compare every bin, then inspect the mismatch
Original Poisson/multinomial comparison. Ranking two supplied candidates differs from checking goodness of fit, and neither establishes an astrophysical discovery.
Open full-size diagram in a new tab: Compare every bin, then inspect the mismatchCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
A winner can still leave a visible mismatch
Suppose the observation is instead n = [25, 50, 25]. The two-candidate log ratio is approximately −4.191950, so B wins the relative comparison. Yet both candidates predict 25 middle-bin events, while 50 were observed. Every mixture of these fixed templates with total 100 has that same middle-bin expectation. Choosing a different signal fraction cannot remove the discrepancy. Relative preference ranks supplied alternatives; it does not show that the winning model adequately describes the data.
A diagnostic for the middle bin is its Poisson deviance contribution, 2[n ln(n/μ) − (n−μ)]. At n = 50 and μ = 25 this is about 19.314718. This number measures a specific discrepancy against a saturated bin model; converting a whole-fit statistic into a p-value requires an appropriate reference distribution and treatment of fitted parameters and uncertainties. A surprising histogram may motivate checking templates, calibration, selection or missing components. It does not, by itself, establish a new particle or its cosmic origin.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: AMS charge-sign analysis and template fittingInstitutional explanation of overlapping particle populations and charge-confusion templates. This lesson uses invented two-component shapes, not flight data or published performance values.
- Read: Particle Data Group: Statistics, 2024Sections on binned likelihood and goodness of fit distinguish Poisson/multinomial models and saturated-model comparisons. Equations are applied to original classroom counts.