prophys.distributions#
Probability distributions whose parameters are symbolic expressions.
Univariate families (Gaussian, Weibull, Gumbel,
…), circular and directional distributions, multivariate and data driven
distributions, and dependence structures (GaussianCopula,
Correlation, Independent). Every family builds log_prob
and, where available, cdf, quantile, reparameterized sample and
moments as differentiable expressions, so their parameters can be fitted or
depend on other model quantities.
Classes
Base class of all probability distributions. |
|
Distribution of |
|
Normal distribution with mean mean and standard deviation sigma. |
|
Weibull distribution in scale and shape form: |
|
Exponential distribution with rate rate: |
|
Log normal distribution: |
|
Gamma distribution with shape concentration and rate rate. |
|
Beta distribution on |
|
Continuous uniform distribution on |
|
Gumbel (type I extreme value) distribution for maxima, with location loc and scale scale. |
|
Gaussian with a log density renormalized to the interval |
|
Bernoulli distribution over |
|
Categorical distribution over k categories, indexed from 0, with probabilities probs. |
|
Poisson distribution over nonnegative integer counts with mean rate. |
|
Von Mises distribution on the circle (radians), the circular analog of a Gaussian. |
|
Gaussian wrapped onto the circle, for angular quantities in radians. |
|
Joint distribution of a direction and a conditional intensity, such as a wind rose. |
|
Multivariate normal distribution parameterized by its mean and the Cholesky factor of its covariance. |
|
Finite mixture of component distributions with (possibly learnable) weights. |
|
Data driven distribution defined by a fixed sample set, such as observed wind speeds. |
|
Piecewise constant density over histogram bins. |
|
Joint distribution coupling arbitrary marginals through a Gaussian copula. |
|
Bivariate Gaussian copula between two marginals, with correlation |
|
Joint distribution of independent marginals (a product density). |
Functions
Return the lower Cholesky factor of a correlation matrix built from an unconstrained vector. |
|
Map independent standard normals to correlated uniforms of a Gaussian copula. |