ssmit1986 / BayesianInference

Wolfram Language application for Bayesian inference and Gaussian process regression
MIT License
37 stars 4 forks source link

BayesianInference

Wolfram Language application for Bayesian inference and Gaussian process regression.

This is a package that implements the nested sampling algorithm in pretty much the same way as described by John Skilling in his 2006 paper "Nested Sampling for General Bayesian Computation" (Bayesian Analysis, 1, number 4, pp. 833 - 860; available at: https://projecteuclid.org/download/pdf_1/euclid.ba/1340370944).

Nested sampling example

It also provides some functionality for Markov Chain Monte Carlo sampling (MCMC) based on built-in (but undocumented) functions in the Statistics`MCMC` context.

A new recently added function called BayesianLinearRegression provides the Bayesian alternative to Mathematica's LinearModelFit.

Finally, there is also some code that helps to construct neural networks for quasi-Bayesian regression as explained on the following pages:

Installation:

You can now load the package by evaluating:

<< BayesianInference`

Alternatively, you can just set the working directory of your notebook to the same directory as example_code.nb and load the package using the line above (see the initialisation cell in the notebook for an example).

Using the package:

See the example_code.nb notebook for a general explanation of the code and several examples. Note that the package underwent significant changes since the previous release and most functionality is invoked in a different way than before.

Update history

Version 2.0