CMD + K

fgivenx

Community

Functional Posterior Plotter

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::fgivenx

Usage Tracking

2.4.2
2.4.1
2.4.0
2.3.0
2.2.2
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

fgivenx is a python package for plotting posteriors of functions. It is currently used in astronomy, but will be of use to any scientists performing Bayesian analyses which have predictive posteriors that are functions.

This package allows one to plot a predictive posterior of a function, dependent on sampled parameters. We assume one has a Bayesian posterior Post(theta|D,M) described by a set of posterior samples {theta_i}~Post. If there is a function parameterised by theta y=f(x;theta), then this script will produce a contour plot of the conditional posterior P(y|x,D,M) in the (x,y) plane.

The driving routines are fgivenx.plot_contours, fgivenx.plot_lines and fgivenx.plot_dkl. The code is compatible with getdist, and has a loading function provided by fgivenx.samples_from_getdist_chains.

About

Summary

Functional Posterior Plotter

Last Updated

Jan 16, 2024 at 12:31

License

MIT

Total Downloads

22.2K

Version Downloads

5.0K

Supported Platforms

noarch