Skip to main content

Probabilistic programming with arrays of Gaussian variables.

Project description

gprob

gprob is a probabilistic programming language for Gaussian random variables with exact conditioning, implemented as a python package.

A brief example:

from gprob import normal

# Initializing two independent normal variables.
x = normal(0, 1)
y = normal(0, 1)

# The joint distribution of x and y under the contition that 
# their sum is zero is obtained as 
z = (x & y) | {x-y: 0}

z.cov()

Requirements

Installation

pip install gprob

Acknowledgements

gprob was inspired by GaussianInfer, an accompaniment for the paper

D. Stein and S. Staton, "Compositional Semantics for Probabilistic Programs with Exact Conditioning," 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), Rome, Italy, 2021, pp. 1-13, doi: 10.1109/LICS52264.2021.9470552

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gprob-0.1.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

gprob-0.1.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page