psiphy logo

psiphy — Package for Statistical Inference of Physics

A Python package for cosmological parameter inference, providing tools for simulation-based inference (SBI), MCMC sampling, Fisher forecasting, and posterior diagnostics.

Module

Contents

psiphy.mcmc

MHSampler (emcee), NestedSampler (nautilus or dynesty, with Bayesian evidence), importance sampling, sequential_monte_carlo

psiphy.utils.prior

Uniform, log-uniform, Gaussian and mixture priors with one interface for all samplers

psiphy.sbi

Likelihood-free inference: BOLFI, LFIRE, rejection ABC

psiphy.forecasting

FisherMatrix: numerical Fisher forecasts

psiphy.plotting

Triangle plots, credible intervals, posterior diagnostics

psiphy.toy_models

Simulators with known answers for testing

pip install psiphy

New here? Start with Installation and Quickstart, then follow the Tutorials.

Getting started

Indices and tables