prophys.domain

prophys.domain#

The domain layer: named uncertain quantities, models and observations.

RandomVariable injects a named source of uncertainty into any expression. UncertainAttribute is a documented model output with a unit. ProbabilityModel bundles attributes for compilation. Observations carries measured data, including censored, interval and missing records.

Classes

UncertainAttribute

A named, documented uncertain quantity, the primary unit of meaning in prophys.

AttributeInteractions

Joint dependence between several UncertainAttribute objects, for attributes that are not independent.

ProbabilityModel

A probabilistic model: a collection of UncertainAttribute objects, optionally coupled.

Observations

A set of observations of one attribute, each with its own kind.

RandomVariable

A named source of uncertainty inside an expression, backed by a Distribution.

JointRandomVariable

A vector valued random variable whose named components are jointly distributed.

JointComponent

One named component of a JointRandomVariable.

Functions

find_random_variables

Collect all distinct RandomVariable leaves reachable from expr, keyed by name.

as_observations

Coerce a plain array into exact Observations, returning an Observations unchanged.