Skip to content

Package: distributions

Nodes for interacting with probability distributions.

These nodes can be used to create various kinds of common probability distributions and compute their quantities such as mean, variance, or entropy of the distribution, the log-probability of given data point(s), or draw samples from the distribution.

Similarly to the array creation nodes, these nodes likewise allow the user to optionally choose one of several backend implementations of otherwise mathematically equivalent distributions. This is taken care of automatically when using the nodes in a context such as bayesian inference. Outside these contexts, the default backend (numpy/scipy) is fine for most scientific computing, but when used with the (gradient-)based methods in the optimization category, one of the jax-based backends may have to be chosen. Node classes in this package are: - nodes ending in Distribution: these are the predefined distribution types - nodes starting in Distribution: these are nodes that compute quantities from distributions, such as the CDF, entropy, mean, etc.

Nodes in this package: