Article view

swyft: Truncated Marginal Neural Ratio Estimation in Python

By B. Miller, Alex Cole, Christoph Weniger, Francesco Nattino, Ou Ku, Meiert W. Grootes

Article information

Publication
Published 19 July 2022
Institutions at publication
University of Amsterdam; () , of , , () , ,; Netherlands eScience Center
46 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Parametric stochastic numerical simulators are ubiquitous in science. They model observed phenomena by mapping a parametric representation of simulation conditions to a hypothetical observation-effectively sampling from a probability distribution over observational data known as the likelihood. Simulators are advantageous because they easily encode relevant scientific knowledge. Simulation-based inference (SBI) is a machine learning technique which applies a simulator, a fitted statistical surrogate model, and a set of prior beliefs to estimate a probabilistic description of the parameters which plausibly generated some observational data. This description of parameters is known as the posterior and it is the end-product of Bayesian inference. Our package swyft implements a specific, simulation-efficient SBI method called Truncated Marginal Neural Ratio Estimation (TMNRE) (Miller et al., 2021); it estimates the likelihoodto-evidence ratio to approximate the posterior, as in Hermans et al. (2020).swyft (Miller et al., 2020) provides a collection of tools to simulate and store data, locally or in a distributed computing setting, and perform (marginalized) simulation-based Bayesian inference. It produces ready-to-publish plots that demonstrate the calibration of the posterior estimate along with the posterior itself.

Citations per year

Citations per year
YearCitations
2022 3
2023 10
2024 14
2025 8
2026 11

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 46 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
The Netherlands4