Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    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 ss, with a pure incoming LRLR helicity state. Let c=cos⁡θc=\cos\theta describe the outgoing negatively charged fermion. The two orthogonal final-helicity amplitudes are

    MLR=κ(1+c),MRL=−κg(1−c),g>0.(1)\mathcal M_{LR}=\kappa(1+c),\qquad \mathcal M_{RL}=-\kappa g(1-c),\qquad g>0. \tag{1}

    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 γμ(PL+gPR)\gamma_\mu(P_L+gP_R), where PL,R=(1∓γ5)/2P_{L,R}=(1\mp\gamma_5)/2. For a coefficient C/Λ2C/\Lambda^2, κ=Cs/Λ2\kappa=Cs/\Lambda^2, at fixed energy within the effective theory's domain. Varying gg is not a variation of pure QED. The common spinor phases follow Polarized Scattering; the 1±c1\pm c 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 dσ/dΩ=∑f∣Mf∣2/(64π2s)d\sigma/d\Omega=\sum_f|\mathcal M_f|^2/(64\pi^2s). There is no initial spin average and no identical-final-state factorial. Azimuthal integration gives

    dσdc=σ0[h+(c)+g2h−(c)],h±(c)=38(1±c)2,σ0=κ212πs,σ(g)=σ0(1+g2),f(c∣g)=h+(c)+g2h−(c)1+g2.(2)\begin{aligned} \frac{d\sigma}{dc}&=\sigma_0[h_+(c)+g^2h_-(c)],\\ h_\pm(c)&=\frac38(1\pm c)^2, \qquad \sigma_0=\frac{\kappa^2}{12\pi s},\\ \sigma(g)&=\sigma_0(1+g^2),\qquad f(c\mid g)=\frac{h_+(c)+g^2h_-(c)}{1+g^2}. \end{aligned} \tag{2}

    Each h±h_\pm integrates to one. The cross section has dimensions of inverse energy squared; ff is a normalized angular probability density. Because the helicities are unresolved, this experiment sees g2g^2 and cannot distinguish gg from −g-g. We therefore infer a positive coupling.

    For a synthetic selection model, set

    ϵ(c)=ϵ0(1+αc),ϵ0=0.7,α=0.2,τ=Lintσ0=200.(3)\epsilon(c)=\epsilon_0(1+\alpha c),\qquad \epsilon_0=0.7,\quad\alpha=0.2,\quad \tau=\mathcal L_{\rm int}\sigma_0=200. \tag{3}

    Here Lint\mathcal L_{\rm int} is integrated luminosity and τ\tau is dimensionless. This simple efficiency has no momentum smearing or background. The predicted detected yield in bin bb is

    Yb(g)=τ∫bϵ(c)[h+(c)+g2h−(c)] dc.(4)Y_b(g)=\tau\int_b\epsilon(c)[h_+(c)+g^2h_-(c)]\,dc. \tag{4}

    The bin integral is a polynomial antiderivative. In particular, the total is

    Y(g)=τϵ0[1+g2+α2(1−g2)].(5)Y(g)=\tau\epsilon_0 \left[1+g^2+\frac\alpha2(1-g^2)\right]. \tag{5}

    Fix what is random

    Generate exactly NN independent raw angles from the reference density q(c)=f(c∣g0)q(c)=f(c\mid g_0), with g0=0.8g_0=0.8. For every coupling and bin define

    vg,b(c)=τϵ(c)[h+(c)+g2h−(c)]q(c) 1b(c),Y^b(g)=1N∑i=1Nvg,b(ci).(6)v_{g,b}(c)= \frac{\tau\epsilon(c)[h_+(c)+g^2h_-(c)]}{q(c)}\,\mathbf1_b(c), \qquad \widehat Y_b(g)=\frac1N\sum_{i=1}^N v_{g,b}(c_i). \tag{6}

    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 aa. Independence between events, but not between their reweighted predictions, gives

    Cov⁡(Y^a,Y^b)=1N[Eq(vavb)−YaYb].(7)\operatorname{Cov}(\widehat Y_a,\widehat Y_b) =\frac1N\left[\mathbb E_q(v_av_b)-Y_aY_b\right]. \tag{7}

    An unbiased estimate of this covariance is

    C^ab=1N(N−1)∑i=1N(va,i−v‾a)(vb,i−v‾b).(8)\widehat C_{ab} =\frac1{N(N-1)}\sum_{i=1}^N (v_{a,i}-\overline v_a)(v_{b,i}-\overline v_b). \tag{8}

    For disjoint angular bins, vavb=0v_av_b=0 on every event. At fixed NN, 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 wa,i=va,i/Nw_{a,i}=v_{a,i}/N, Eq. (8) becomes

    C^ab=NN−1[∑iwa,iwb,i−Y^aY^bN].(9)\widehat C_{ab} =\frac{N}{N-1}\left[ \sum_i w_{a,i}w_{b,i} -\frac{\widehat Y_a\widehat Y_b}{N} \right]. \tag{9}

    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 M∼Poisson⁡(N‾)M\sim\operatorname{Poisson}(\overline N) and, conditional on MM, draw independent angles from the same qq. Normalize each contribution by the known mean N‾\overline N, not by the random MM:

    Y^a=1N‾∑i=1Mva(ci).(10)\widehat Y_a=\frac1{\overline N}\sum_{i=1}^{M}v_a(c_i). \tag{10}

    The law of total covariance adds the fluctuation of the count to the conditional fixed-count covariance. The subtraction cancels, leaving

    Cov⁡(Y^a,Y^b)=Eq(vavb)N‾,C^ab=∑i=1Mwa,iwb,i,wa,i=va(ci)N‾.(11)\operatorname{Cov}(\widehat Y_a,\widehat Y_b) =\frac{\mathbb E_q(v_av_b)}{\overline N},\qquad \widehat C_{ab}=\sum_{i=1}^{M}w_{a,i}w_{b,i}, \quad w_{a,i}=\frac{v_a(c_i)}{\overline N}. \tag{11}

    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 MM would instead make a ratio estimator, with a special M=0M=0 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 N=4096N=4096, eight equal bins on [−1,1][-1,1], and couplings 0.5,0.8,1.10.5,0.8,1.1. It repeats the experiment 2048 times. The shared calculation uses NN angles per replica; the independent comparison uses a fresh reference sample of NN angles for each coupling, costing 3N3N. 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 5.5×10−125.5\times10^{-12}. 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 D=Y(1.1)−Y(0.5)=120.96D=Y(1.1)-Y(0.5)=120.96. Its variance is

    Var⁡(D^)=Var⁡(Y^1.1)+Var⁡(Y^0.5)−2Cov⁡(Y^1.1,Y^0.5).(12)\operatorname{Var}(\widehat D) =\operatorname{Var}(\widehat Y_{1.1}) +\operatorname{Var}(\widehat Y_{0.5}) -2\operatorname{Cov}(\widehat Y_{1.1},\widehat Y_{0.5}). \tag{12}
    Sampling ensemblePredicted variance of D^\widehat DEmpirical varianceMonte Carlo standard error of empirical variance
    Fixed NN, shared events3.187703.282930.10161
    Fixed NN, independent samples1.756201.811460.05695
    Poissonized shared events6.759806.846380.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.

    The fixed-count total-yield correlation changes sign between couplings; the shared-event yield difference has larger variance than the independently sampled difference.

    Left: predicted correlation of the three total-yield estimators with shared fixed-count events. Right: predicted and empirical variance of Y(1.1)−Y(0.5)Y(1.1)-Y(0.5), 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 pa=Ya/Tp_a=Y_a/T, T=∑bYbT=\sum_bY_b, the linearized propagation is

    Jab=δab−paT,Cp≃JCYJT.(13)J_{ab}=\frac{\delta_{ab}-p_a}{T},\qquad C_p\simeq J C_YJ^T. \tag{13}

    Rows of CpC_p 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 NN.

    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 (∑w)2/∑w2(\sum w)^2/\sum w^2 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

    1. Let MM be Poisson with mean N‾\overline N, independent of identically distributed marks viv_i. Derive Eq. (11) by conditioning on MM. Recover the fixed-NN and Poissonized covariance of unweighted bin counts.
    Solution

    Write ma=E(va)m_a=\mathbb E(v_a) and Sab=E(vavb)S_{ab}=\mathbb E(v_av_b). Conditional on MM, the sum has mean MmaMm_a and covariance M(Sab−mamb)M(S_{ab}-m_am_b). Hence its unconditional covariance is

    E(M)(Sab−mamb)+Var⁡(M)mamb=N‾Sab.\mathbb E(M)(S_{ab}-m_am_b) +\operatorname{Var}(M)m_am_b=\overline N S_{ab}.

    Dividing by N‾2\overline N^2 gives Eq. (11). Also, E[∑iwa,iwb,i]=Sab/N‾\mathbb E[\sum_iw_{a,i}w_{b,i}]=S_{ab}/\overline N, proving that estimator is unbiased.

    For marks va=1av_a=\mathbf1_a with disjoint-bin probabilities pap_a, Sab=δabpaS_{ab}=\delta_{ab}p_a. With exactly NN events, raw counts have covariance N(δabpa−papb)N(\delta_{ab}p_a-p_ap_b), the multinomial result. With a Poisson total they have covariance N‾δabpa\overline N\delta_{ab}p_a. The cancellation comes from randomizing the total; it does not follow from discarding the off-diagonal entries by hand.

    1. For two estimates made from the same fixed-NN sample, derive the variance of their difference directly from the event difference v2−v1v_2-v_1. Then take each mark to be +1+1 with probability (1+η)/2(1+\eta)/2 and −1-1 with probability (1−η)/2(1-\eta)/2. What happens to the mean and its relative uncertainty as η→0\eta\to0?
    Solution

    The difference estimator is N−1∑i(v2,i−v1,i)N^{-1}\sum_i(v_{2,i}-v_{1,i}), so

    Var⁡(Y^2−Y^1)=Var⁡(v2−v1)N=Var⁡(v2)+Var⁡(v1)−2Cov⁡(v2,v1)N.\operatorname{Var}(\widehat Y_2-\widehat Y_1) =\frac{\operatorname{Var}(v_2-v_1)}N =\frac{\operatorname{Var}(v_2)+\operatorname{Var}(v_1)-2\operatorname{Cov}(v_2,v_1)}N.

    Positive correlation reduces the variance, negative correlation increases it. The marginal variances alone cannot decide which occurs.

    For the signed mark, E(v)=η\mathbb E(v)=\eta and E(v2)=1\mathbb E(v^2)=1. The mean estimator has variance (1−η2)/N(1-\eta^2)/N and, for nonzero η\eta, relative standard error 1−η2/(N∣η∣)\sqrt{1-\eta^2}/(\sqrt N|\eta|). At exact cancellation the absolute uncertainty stays finite while relative uncertainty is undefined. Since ∑vi2=N\sum v_i^2=N, the expression (∑vi)2/N(\sum v_i)^2/N measures a fluctuating squared cancellation, not a number of independent physical events. Its expectation is 1+(N−1)η21+(N-1)\eta^2, even though all NN marks were independently generated.

    References

    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.