- Home
- Library
- Computational Quantum Field Theory
- From Generated Events to an Inferred Coupling
- Likelihoods from Simulated Observables
Likelihoods from Simulated Observables
A simulator predicts possible data at a chosen coupling. Inference reverses that question: which couplings remain compatible with one observed dataset? The answer depends on what was counted, what was selected, and which features of the observation apparatus are known.
We will recover a coupling from a Poisson count and its angular distribution, then give the efficiency an independently measured nuisance parameter. An exact likelihood makes this a useful baseline for learned likelihood ratios.
Preparation: The angular scattering and weighted-event model, elementary conditional probability and differentiation.
Specify a distribution of observations
Use the fixed incoming-helicity, two-body family
Its cross section is , where for amplitudes and . The previous article derives this normalization with no initial spin average. Fix exposure . The synthetic detection probability is
It stays between and over the allowed domain. Selection is independent between events. There are no backgrounds, angular smearing or correlated detector losses in this model.
Poisson production followed by independent thinning gives a Poisson process of detected angles with intensity
Consequently an observation consists of
The selected density is not the production density . Its normalizer depends on the coupling because the efficiency has angular dependence. For example, , so the mean efficiency is .
The generator samples by mixing the two elementary inverse-CDF maps and applies rejection to obtain . An independent check draws the production Poisson count and thins its events individually. Both constructions have the same detected count law. The retained finite-replica means and variances fluctuate around that law; they are not forced to agree exactly.
Count and shape belong in the same likelihood
For the observed dataset , the likelihood is
Factors independent of the parameters can be dropped when maximizing or taking ratios. Substituting gives the equivalent log likelihood
This cancellation is useful, but does not authorize dropping selection from the model. It cancels only because the count and conditional shape use the same selected intensity. Conditioning on the observed instead discards count information and leaves the product of selected densities in Eq. (4).
The likelihood is a function of parameters for fixed data. It is not normalized as a probability density over those parameters. A simulator's random seed is an algorithmic setting, not another physical parameter to infer. The exposure, helicity preparation, coupling and efficiency have distinct roles in the generative model.
Products of count probabilities with auxiliary measurements, and maximization over nuisance parameters, are developed in Cowan et al., §2, Eqs. (6)–(9). Our unbinned shape is the corresponding explicitly normalized continuous observation model. Cowan et al.
An exact maximization check
For known , introduce and write , . Up to terms independent of ,
The score is monotone. Check its signs at the parameter boundaries; otherwise a bracketed root finds the unique interior maximum whenever at least one informative event gives strict concavity. This independent check is stronger than accepting a generic optimizer's success flag. If , the likelihood decreases with , and the constrained maximum is the lower boundary.
Our fixed fitting domain is . The generated demonstration uses truth , , for which . The chosen independent random stream produces . Its results are:
| Analysis of the same observation | Estimated | Set from |
|---|---|---|
| Count only, correct efficiency | 0.85449 | [0.77994, 0.92590] |
| Shape only, correct efficiency | 0.88393 | [0.81447, 0.95811] |
| Count and shape, correct efficiency | 0.86949 | [0.81946, 0.92001] |
| Count and shape, incorrectly flat efficiency | 0.81294 | [0.76538, 0.86096] |
Here for each specified analysis. The exact score root and generic numerical maximum agree to in . The retained direct count-times-shape and intensity log likelihoods agree within . Finite-difference score checks show the expected small-step rounding limitation in the second derivative; the analytic score supplies the fit.
One realized estimate happens to lie closer to truth when the efficiency is wrong. An estimator's bias and coverage concern repeated observations, not its distance from truth in one selected dataset. The next article performs those repeated tests.
Count and shape contain complementary information. For the Poisson process, information in decomposes as
The cross term vanishes because the expectation of the normalized shape score is zero. At the stated truth, independent quadrature gives . These are information values with respect to ; conversion to multiplies by . They describe the local large-sample curvature, not an exact finite-sample interval.
Measure an efficiency nuisance instead of fixing it away
Suppose is known, while must be calibrated. Send 200 independently prepared probes at each known angle and . The two accepted counts obey
This deliberately simple calibration model shares the same efficiency as the main observation. The retained sample has , . Multiply both binomial probabilities into Eq. (5). The joint fit gives
To test a particular , maximize the joint likelihood over at that :
The set defined by is . Maximization over an unknown nuisance uses a different question from averaging it with a prior. The auxiliary binomial likelihood is actual calibration data in this example, not a Gaussian penalty invented after looking at the main sample.
Each curve is measured from its own likelihood maximum, so parameter-independent normalization constants do not affect the comparison. The dotted vertical line is the generating coupling; horizontal lines mark the asymptotic one- and 3.84146-unit thresholds. The incorrectly flat model happens to peak closer to truth in this one observation, which does not establish good repeated-data performance.
Thresholds 1 and 3.84146 are the asymptotic 68.27% and 95% quantiles of a one-degree-of-freedom chi-square law for the two-sided likelihood-ratio statistic. Interior identifiability, regularity and adequate information matter. Boundaries and small counts can invalidate that approximation; our example shows why an interior Gaussian argument cannot be universal. Cowan et al., §3.1, Eqs. (17)–(20), state the large-sample approximation. This single nuisance fit is not a measured coverage study. Cowan et al.
A posterior needs a prior measure
For known and a prior density on the specified domain,
With a uniform prior in , the displayed observation gives posterior mean , median , and a central 95% credible interval . A prior uniform in instead has density proportional to and gives mean and central 95% interval . Doubling the normalization/quantile quadrature from 128 to 256 nodes changes the retained quantiles by less than .
The numerical closeness of these intervals to likelihood-ratio sets in this informative example does not identify their meanings. A credible interval contains a specified posterior probability conditional on the prior and model. A confidence procedure is assessed by repeated-data coverage at fixed truth. Neither interpretation is supplied by an optimizer alone. The prior dependence of posterior inference and the distinct uses of likelihood surrogates are discussed by Cranmer, Brehmer and Louppe, §§1.2 and 3.2. Cranmer et al.
The companion observation_likelihood.py retains the actual synthetic angles, calibration counts, likelihood curves and quadrature checks. Later exact and learned analyses reuse this observation and the same declared model; no physical data or detector performance measurement is claimed.
Summary
Specify the random count, selected shape and calibration observations before fitting. The exact angular model has a concave score in , giving a transparent numerical baseline. Count information, efficiency uncertainty, prior dependence and repeated-sampling calibration remain separate parts of the inference.
Exercises
- Derive the count-only constrained maximum-likelihood estimate of when is known. Explain how the full score in Eq. (7) determines an interior solution or a boundary maximum, including .
Solution
Set , , so . The count log likelihood is plus a constant, with derivative . An unconstrained interior maximum satisfies , hence
Clip this value to the allowed interval, then take its positive square root. The clipping follows because the derivative is monotone decreasing and changes sign only at that value.
For the full likelihood, Eq. (7) proves the same monotonicity of the score. If the score at the lower boundary is nonpositive, that boundary is optimal. If the score at the upper boundary is nonnegative, the upper boundary is optimal. Otherwise the unique score zero is the maximum when the log likelihood is strictly concave. For , the score is the negative constant ; no interior root exists. A solver that insists on finding one has posed the wrong numerical problem.
- Starting with production density and independent efficiency , derive the selected density. Show how omitting its normalizer changes a shape likelihood. Then transform a uniform prior in to a density in .
Solution
The joint probability of an angle in and detection is . Divide by the detection probability to obtain
For selected events the log shape likelihood therefore contains . Omitting it adds a parameter-dependent term, changes the score, and generally changes the estimate. The term cancels against the matching selected count normalization only when the complete count-and-shape likelihood is used consistently.
Under , probability conservation requires . On , a uniform- prior is
It differs from . Reparameterizing a fixed prior with its Jacobian leaves posterior probabilities unchanged; replacing one uniform prior by the other changes the prior measure and thus the inference.
References
- Cowan, Glen, Kyle Cranmer, Eilam Gross and Ofer Vitells. “Asymptotic formulae for likelihood-based tests of new physics,” arXiv:1007.1727v3. Section 2, Eqs. (6)–(9), covers likelihoods with auxiliary observations and profiling; §3.1, Eqs. (17)–(20), gives the asymptotic two-sided statistic. The one-sided discovery/limit statistics in other sections are not used here.
- Cranmer, Kyle, Johann Brehmer and Gilles Louppe. “The frontier of simulation-based inference,” arXiv:1911.01429v3. Sections 1.1–1.2 and 3.2–3.3 discuss simulator-defined models, posterior versus likelihood inference, calibration and misspecification.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.