- Home
- Library
- Computational Quantum Field Theory
- From Generated Events to an Inferred Coupling
- Histograms, Reweighting, and Correlated Predictions
Histograms, Reweighting, and Correlated Predictions
An event sample can predict several couplings at once. Those predictions share statistical fluctuations, so subtracting their error bars in quadrature can give the wrong uncertainty. Shared events can even make a difference less precise: the sign of the covariance matters.
We will carry one helicity distribution into weighted histograms, calculate its covariance, and compare shared events with independent samples. The same angular model will then supply the synthetic observations in Likelihoods from Simulated Observables.
Preparation: Two-body scattering, elementary covariance and importance sampling.
A coupling changes the event weight
Take two distinct massless Dirac species at fixed center-of-mass energy squared , with a pure incoming helicity state. Let describe the outgoing negatively charged fermion. The two orthogonal final-helicity amplitudes are
This is a specified chiral interaction family. It can be obtained at leading order from a contact current with a left incoming projector and a final current , where . For a coefficient , , at fixed energy within the effective theory's domain. Varying is not a variation of pure QED. The common spinor phases follow Polarized Scattering; the factors are the high-energy helicity factors in Peskin's §3.2, Eqs. (3.23)–(3.25). Peskin (PDF)
Sum the two final probabilities and use . There is no initial spin average and no identical-final-state factorial. Azimuthal integration gives
Each integrates to one. The cross section has dimensions of inverse energy squared; is a normalized angular probability density. Because the helicities are unresolved, this experiment sees and cannot distinguish from . We therefore infer a positive coupling.
For a synthetic selection model, set
Here is integrated luminosity and is dimensionless. This simple efficiency has no momentum smearing or background. The predicted detected yield in bin is
The bin integral is a polynomial antiderivative. In particular, the total is
Fix what is random
Generate exactly independent raw angles from the reference density , with . For every coupling and bin define
The efficiency is integrated as an analytic weight in this calculation. We are estimating a predicted mean yield, not generating the fluctuating observed count. The latter will have its own Poisson distribution in the next article. Our reference is strictly positive throughout the compact angular interval, so support and weight-moment conditions hold.
Combine coupling and bin into one index . Independence between events, but not between their reweighted predictions, gives
An unbiased estimate of this covariance is
For disjoint angular bins, on every event. At fixed , the covariance between their estimates is consequently negative. Filling one bin consumes a draw that cannot fill the other. Predictions at different couplings can instead have either sign of covariance.
If final event contributions are written , Eq. (8) becomes
Thus the familiar sum of squared weights is not the fixed-sample variance by itself. The centering term expresses which ensemble was actually generated.
When the sum of squared weights is appropriate
Now draw and, conditional on , draw independent angles from the same . Normalize each contribution by the known mean , not by the random :
The law of total covariance adds the fluctuation of the count to the conditional fixed-count covariance. The subtraction cancels, leaving
This is the compound-Poisson result. Bohm and Zech derive its moments and the equivalence between a Poisson total followed by multinomial allocation and independent Poisson bin counts in §2, Eqs. (5)–(11). Bohm and Zech (PDF)
For disjoint bins the raw cross moment vanishes, so the Poissonized estimates are uncorrelated. Normalizing by the realized would instead make a ratio estimator, with a special case; it would not be Eq. (10).
These mean/covariance identities also hold for signed, finite-second-moment contributions. That does not make a signed weighted histogram an ordinary Poisson count, nor justify applying a positive-weight scaled-Poisson approximation to it. The matching article explains the separate physical origin of signed contributions.
An actual comparison: sharing can increase a variance
The retained calculation uses , eight equal bins on , and couplings . It repeats the experiment 2048 times. The shared calculation uses angles per replica; the independent comparison uses a fresh reference sample of angles for each coupling, costing . Its marginal estimators are identical, which isolates the effect of sharing rather than changing the proposal distribution.
Polynomial bin integrals supply the means. Independent 96- and 192-point quadratures within each bin supply the covariance moments; the maximum second-moment change is . The empirical covariance and the averaged estimator in Eqs. (8) or (11) are retained for all 24 coupling/bin entries.
Consider the total-yield difference . Its variance is
| Sampling ensemble | Predicted variance of | Empirical variance | Monte Carlo standard error of empirical variance |
|---|---|---|---|
| Fixed , shared events | 3.18770 | 3.28293 | 0.10161 |
| Fixed , independent samples | 1.75620 | 1.81146 | 0.05695 |
| Poissonized shared events | 6.75980 | 6.84638 | 0.20850 |
The two target couplings straddle the reference coupling. Their weights respond oppositely to much of the angular fluctuation, producing a negative covariance. Sharing therefore increases this difference's variance. This is a useful counterexample to treating common random numbers as an automatic variance reduction. The shared calculation still supplies all predictions at lower simulation cost; the preferred comparison depends on the observable and the cost being held fixed.
Left: predicted correlation of the three total-yield estimators with shared fixed-count events. Right: predicted and empirical variance of , with standard errors estimated from squared deviations across the 2048 replica predictions. Independent samples use three times as many raw angles per replica. The Poissonized comparison changes the count ensemble as well.
The quoted uncertainties in the last column describe the finite collection of replicas used to estimate a variance. They are neither errors on a measured collider count nor physical theory uncertainties. A fluctuating independent-sample covariance can be nonzero even though its ensemble expectation is zero.
Normalized histograms and physical variations
A shape estimate divides by its own fluctuating total. For , , the linearized propagation is
Rows of sum to zero: the fractions sum to one. This is a genuine covariance constraint, so a fit must remove one redundant fraction or use the constrained subspace. The numerical example checks the null direction and compares this delta-method covariance with the replica fractions. The ratio is not exactly unbiased at finite .
Reweighting a coupling, scale or parton distribution changes a physical prediction. Correlations tell us how well the simulation resolves that change. They do not turn an envelope of physical variations into a statistical confidence interval. Likewise, the positive-weight diagnostic summarizes weight concentration; it is not an observable-independent guarantee of precision, especially with cancellations or correlated events.
The reproducible companions are angular_model.py, angular_checks.py and weighted_events.py under examples/computational-qft/event-generation/. They retain fixed settings, independent random streams and selected covariance results. No detector or NLO generator is being replaced by this angular teaching example.
Summary
The covariance of weighted predictions depends on whether the event count is fixed or Poisson, whether events are shared, and whether a fluctuating normalization is divided out. Propagate the covariance of the actual estimator. In this example, shared events make one coupling difference noisier because their covariance is negative.
Exercises
- Let be Poisson with mean , independent of identically distributed marks . Derive Eq. (11) by conditioning on . Recover the fixed- and Poissonized covariance of unweighted bin counts.
Solution
Write and . Conditional on , the sum has mean and covariance . Hence its unconditional covariance is
Dividing by gives Eq. (11). Also, , proving that estimator is unbiased.
For marks with disjoint-bin probabilities , . With exactly events, raw counts have covariance , the multinomial result. With a Poisson total they have covariance . The cancellation comes from randomizing the total; it does not follow from discarding the off-diagonal entries by hand.
- For two estimates made from the same fixed- sample, derive the variance of their difference directly from the event difference . Then take each mark to be with probability and with probability . What happens to the mean and its relative uncertainty as ?
Solution
The difference estimator is , so
Positive correlation reduces the variance, negative correlation increases it. The marginal variances alone cannot decide which occurs.
For the signed mark, and . The mean estimator has variance and, for nonzero , relative standard error . At exact cancellation the absolute uncertainty stays finite while relative uncertainty is undefined. Since , the expression measures a fluctuating squared cancellation, not a number of independent physical events. Its expectation is , even though all marks were independently generated.
References
- Bohm, G., and G. Zech. “Statistics of weighted Poisson events and its applications,” arXiv:1309.1287v1 (PDF). Section 2, Eqs. (1)–(11), derives compound-Poisson moments and the count-allocation identity. Its positive-weight approximation is not used for signed events here.
- Peskin, Michael E. “Spin, Mass, and Symmetry,” hep-ph/9405255v1 (PDF). Section 3.2, printed pp.23–24, Eqs. (3.21)–(3.25), supplies the helicity angular dependence; the chiral coupling family and local phases are specified above.
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.