fgivenx
Functional Posterior Plotter
Functional Posterior Plotter
To install this package, run one of the following:
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.
Summary
Functional Posterior Plotter
Last Updated
Jan 16, 2024 at 12:31
License
MIT
Total Downloads
22.2K
Version Downloads
5.0K
Supported Platforms
Documentation
http://fgivenx.readthedocs.io/