Simulation-based cosmological inference from optically-selected galaxy clusters with $\texttt{Capish}$
Constantin Payerne, Calum Murray, Hugo Simon
TL;DR
Capish presents a forward-modeling SBI framework for optically-selected galaxy cluster cosmology, jointly inferring cosmology and mass–observable relations from cluster counts and mean weak-lensing masses while explicitly modeling systematics such as super-sample covariance, selection effects, and measurement noise. It generates synthetic catalogs from a halo mass function, maps halos to observed richness and lensing masses via parameterized relations, and trains neural density estimators to recover posterior distributions. Validation shows SBI posteriors align with likelihood-based results but are broader due to a more realistic forward model; Capish successfully reproduces analytic predictions and performs well on Euclid Flagship mocks when the halo mass function is matched. The framework offers a robust, flexible tool for DES, Euclid, and LSST cluster analyses and serves as a test bed for likelihood-based pipelines in upcoming wide-area surveys.
Abstract
Galaxy clusters are powerful probes of the growth of cosmic structure through measurements of their abundance as a function of mass and redshift. Extracting precise cosmological constraints from cluster surveys is challenging, as we must contend the complex relationship between richness and the underlying halo mass, selection function biases, super-sample covariance, and correlated measurement noise between mass proxies. As upcoming photometric surveys are expected to detect tens to hundreds of thousands of galaxy clusters, controlling these systematics becomes essential. In this paper, we present a forward-modelling approach using Simulation-Based Inference (SBI), which provides a natural framework for jointly modelling cluster abundance and lensing mass observables while capturing systematic uncertainties at higher fidelity than analytic likelihood methods - which rely on simplifying assumptions such as fixed covariances and Gaussianity - without requiring an explicit likelihood formulation. We introduce $\texttt{Capish}$, a Python code for generating forward-modelled galaxy cluster catalogues using halo mass functions and incorporating observational effects. We perform SBI using neural density estimation with normalizing flows, trained on abundance and mean lensing mass measurements in observed redshift-richness bins. Our forward model accounts for realistic noise, redshift uncertainties, selection functions, and correlated scatter between lensing mass and observed richness. We find good agreement with likelihood-based analyses, with broader SBI posteriors reflecting the increased realism of the forward model. We also test $\texttt{Capish}$ on cluster catalogues built from a large cosmological simulation, finding a good fit to cosmological parameters.
