Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Overview of CUQIpy

Table of Contents:

Note: some of the details mentioned here will make more sense after going through the next notebook that demonstrates how to use CUQIpy to solve a simple Bayesian inverse problem.

What is CUQIpy?

CUQIpy overview

Why CUQIpy?

CUQIpy is built to address the need for:

CUQIpy modules

CUQIpy modules

CUQIpy plugins

CUQIpy plugins

CUQIpy design principles

Bayesian model:

dGamma(1,104)sGamma(1,104)xLMRF(0,d1)yGaussian(Ax,s1I)p(d,s,x,y)=p(d)p(s)p(xd)p(yx,s)\begin{align*} d &\sim \text{Gamma}(1, 10^{-4})\\ s &\sim \text{Gamma}(1, 10^{-4})\\ x &\sim \text{LMRF}(\mathbf{0}, d^{-1})\\ y &\sim \text{Gaussian}(\mathbf{A}\mathbf{x}, s^{-1}\mathbf{I})\\ p(d,s,x,y) &= p(d)p(s)p(x|d)p(y|x,s) \end{align*}

where d1d^{-1} and ss are the precision parameters of the prior (the LMRF) and the data distribution (the Gaussian), respectively, xx is the unknown parameter, and yy is the data. A\mathbf{A} is the forward operator.

Bayesian model in CUQIpy:

d = Gamma(1, 1e-4)
s = Gamma(1, 1e-4)
x = LMRF(0, lambda d: 1/d)
y = Gaussian(A@x, lambda s: 1/s)
joint = JointDistribution(d, s, x, y)

See setting up a Bayesian model in CUQIpy in 4 steps here.

CUQIpy team