For data (y) (the measured masses) with experimental covariance (V_{\rm exp}) and model values (\mu(\theta)),
[ \chi^2(\theta)=\Delta^TV^{-1}\Delta,\qquad\Delta=y-\mu(\theta). ]
(V_{\rm exp}) is diagonal except for states that share a systematic error, where (V_{ij}\mathrel{+}=s_is_j). With (V=LL^T) the whitened residuals (z=L^{-1}\Delta) give (\chi^2=z^Tz): a plain sum of squares.
Measured masses are known to a fraction of an MeV; potential models are good to several MeV. With (V=V_{\rm exp}) the fit is decided by whichever state happens to be measured best. So every state gets a common model error:
[ V(\sigma)=V_{\rm exp}+\sigma^2W,\qquad W={\rm diag}(w_i^2),\ w_i=1\text{ by default}. ]
For Gaussian errors that are right, (\langle\chi^2\rangle=\nu=N-p). The floor (\sigma_{\rm th}) is defined by (\chi^2=\nu) (the Paule–Mandel estimator).
The solution is unique. With (x=\sigma^2) and residuals fixed,
[ \frac{d\chi^2}{dx}=\frac{d}{dx}\Delta^TV^{-1}\Delta=-\Delta^TV^{-1}WV^{-1}\Delta\le0, ]
so (\chi^2(x)) decreases monotonically and bisection finds the root (or (x=0) if (\chi^2(0)\le\nu) already). The fit alternates: minimise over (\theta) at fixed (\sigma), solve for (\sigma), repeat. Replacing (\nu) by quantiles of (\chi^2_\nu) gives a confidence interval for the floor.
!!! warning “A floor is not a goodness of fit”
A model with its own floor passes (\chi^2/\nu=1) by construction. To compare models they are refitted at a
common declared error (--floor).
Parameters that must be positive are fitted as (u=\ln\theta). Levenberg–Marquardt solves
[ \big(J^TJ+\lambda\,{\rm diag}(J^TJ)\big)\,\delta=-J^Tz,\qquad J=\partial z/\partial u, ]
accepts (\delta) if (\chi^2) falls (then (\lambda\to\lambda/10)) and otherwise raises (\lambda\to10\lambda): small (\lambda) is Gauss–Newton, large (\lambda) a short step downhill. (J) comes from Feynman–Hellmann (solving). Because these surfaces have several minima, fits are started from many points, from the minima of simpler (nested) models, and optionally with Minuit2.
At the minimum (C_u=(J^TJ)^{+}) (pseudo-inverse), and with (K={\rm diag}(d\theta/du)), (C_\theta=KC_uK). A prediction (P(\theta)) with gradient (g) has (\sigma_P^2=g^TC_\theta g). The condition number of the scaled Fisher matrix measures near-degeneracy.
How much does state (i) pin its own prediction? Linearise (z(\hat u+\delta)\approx\hat z+J\delta); at the minimum (J^T\hat z=0). Delete row (j_i^T) of (J) and entry (\hat z_i). The new normal equations are
[ (F-j_ij_i^T)\,\delta=j_i\hat z_i,\qquad F=J^TJ. ]
By the Sherman–Morrison formula ((F-jj^T)^{-1}j=F^{-1}j/(1-h)) with (h=j^TF^{-1}j). Therefore the residual of the deleted state is
[ \hat z_i+j_i^T\delta=\hat z_i\Big(1+\frac{h_i}{1-h_i}\Big)=\boxed{\frac{\hat z_i}{1-h_i}} . ]
(h_i) is the leverage, a number between 0 and 1 with (\sum_ih_i=p). The predictive variance of the deleted state is (1+h_i/(1-h_i)=1/(1-h_i)), so its standardised pull is (\hat z_i/\sqrt{1-h_i}).
This is exact for a linear model. --loo also does the refits exactly, solving the floor again without the
deleted state so that it does not set its own error bar. --lmo removes whole multiplets and --kfold random
folds; if the error on deleted states is much larger than on fitted ones, the model is overfitting.
!!! info “Primer: Markov-chain Monte Carlo” The posterior (p(\theta\mid y)\propto p(y\mid\theta)\,p(\theta)) is sampled by a random walk: propose (u’=u+) Gaussian step, accept with probability (\min[1,p(u’)/p(u)]). The visited points are distributed as the posterior. Several chains from dispersed starts must agree; the Gelman–Rubin statistic (\hat R\to1) checks this.
The priors are flat in (u). The floor is not fixed but marginalised: (\ln\sigma) is sampled too (flat on (\sigma\in[10^{-5},0.05]) GeV), and the likelihood must then keep its normalisation,
[ \ln p(y\mid u,\sigma)=-\tfrac12\big[\Delta^TV(\sigma)^{-1}\Delta+\ln\det V(\sigma)\big]+{\rm const}. ]
The proposal covariance is (2.38^2/p) times the fit covariance. Posterior predictive checks ask whether data drawn from the fitted model look as discrepant as the real ones.
The first term the non-relativistic models leave out is (\delta H=-\frac{p^4}{8m_1^3}-\frac{p^4}{8m_2^3}). Most of it can be hidden by shifting the parameters. So:
(\sigma_a) is an a-priori truncation error: no PDG residual enters it. Pooled over the physical models of types A and B it is the declared error of the v1.3 and later analysis (15.9 MeV for (c\bar c), 3.3 MeV for (b\bar b)).
--shared b fits both systems with one string tension, testing that the confining force does not depend on
flavour. Each system keeps its own floor, solved from its share of the degrees of freedom,
(\nu_s=N_s-\sum_{i\in s}h_{ii}).
| tool | formula or idea |
|---|---|
| Pearson test | (p=P(\chi^2_\nu\ge\chi^2)) at the declared error |
| AIC, BIC | (\chi^2+2p), (\chi^2+p\ln N); AICc corrects for small (N) |
| nested test | (\Delta\chi^2\sim\chi^2_{\Delta p}) (Wilks); halved on a boundary |
| Laplace evidence | Gaussian approximation to (\int p(y\mid\theta)p(\theta)\,d\theta) |
| stacking, pseudo-BMA | weights from leave-one-out predictive densities |
| Holm | multiple tests: compare the (k)-th smallest of (m) p-values with (\alpha/(m-k+1)) |
| runs and Shapiro–Wilk tests | structure and normality of residuals |