Kosmulator: A Python framework for cosmological inference with MCMC
Renier T. Hough, Robert Rugg, Shambel Sahlu, Amare Abebe

TL;DR
Kosmulator is a Python framework that accelerates cosmological inference using MCMC, enabling rapid testing of models beyond standard cosmology with high efficiency and accuracy.
Contribution
It introduces a modular, vectorised Python tool that significantly speeds up Bayesian inference in cosmology, especially for complex models, while maintaining accuracy.
Findings
Reproduces Cobaya posterior constraints within 0.3σ for key parameters.
Achieves 4.5× faster inference on a single CPU core.
Demonstrates automated model selection with AIC/BIC.
Abstract
We present Kosmulator, a modular and vectorised Python framework designed to accelerate the statistical testing of cosmological models. As the theoretical landscape expands beyond standard CDM, implementing new expansion histories into traditional Einstein--Boltzmann solvers becomes a significant computational bottleneck. Kosmulator addresses this by leveraging array-native execution and efficient ensemble slice sampling (via Zeus) to perform rapid Bayesian inference. We validate the framework against the industry-standard Cobaya code using a combination of Type Ia Supernovae, Cosmic Chronometers, and Baryon Acoustic Oscillation (BAO) data. Our results demonstrate that Kosmulator reproduces Cobaya's posterior constraints to within statistical agreement on and and precision on , while achieving a reduction…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCosmology and Gravitation Theories · Galaxies: Formation, Evolution, Phenomena · Computational Physics and Python Applications
