Analytic Marginalization over Binary Variables in Physics Data
Marcus Högås, Edvard Mörtsell
TL;DR
This work tackles the problem of marginalizing over binary nuisance variables in data analyses, which would otherwise explode the parameter space. It shows that exact binary marginalization yields a log-likelihood correction identical to the Ising-model partition function, enabling fast likelihood evaluation via Ising techniques. Two practical approximations are developed: a Paramagnetic scheme that ignores data correlations and a Mean-Field scheme based on Hubbard–Stratonovich transformation, both illustrated on toy data and Type Ia SN mass-step calibrations. The results demonstrate accurate parameter recovery and quantify how host-mass uncertainties affect cosmological inferences, finding negligible impact on $H_0$ in the SN case, while also highlighting the method’s potential extensions to Cepheid overtone classification and beyond. The framework is general, offering a principled and scalable way to incorporate discrete uncertainties across physics and other fields.
Abstract
In many data analyses, each measurement may come with a simple yes/no correction; for example, belonging to one of two populations or being contaminated or not. Ignoring such binary effects may bias the results, while accounting for them explicitly quickly becomes infeasible as each of the $N$ data points introduces an additional parameter, resulting in an exponentially growing number of possible configurations ($2^N$). We show that, under generic conditions, an exact treatment of these binary corrections leads to a mathematical form identical to the well-known Ising model from statistical physics. This connection opens up a powerful set of tools developed for the Ising model, enabling fast and accurate likelihood calculations. We present efficient approximation schemes with minimal computational cost and demonstrate their effectiveness in applications, including Type Ia supernova calibration, where we show that the uncertainty in host-galaxy mass classification has negligible impact on the inferred value of the Hubble constant.
