Bernoulli distribution with expectation p
A Beta distribution with expectation a/(a + b)
and variance ab/((a + b)^2 (1 + a + b))
.
A Beta-binomial distribution with expectation a/(a + b) * k
A Binomial distribution with expectation k*p
A Binomial distribution with expectation k*p
The probability of success
The number of trials
A support representing an open-below {r < k} interval.
A support representing an open-below {r < k} interval.
The upper bound of the distribution
A support representing an open-above {r > k} interval.
A support representing an open-above {r > k} interval.
The lower bound of the distribution
A support representing a bounded (min, max) interval.
A finite discrete distribution
A finite discrete distribution
A map with keys corresponding to the possible outcomes and values corresponding to the probabilities of those outcomes
A Continuous Distribution, with method param
allowing conversion to a RandomVariable.
Discrete Constant (point mass) with expecation constant
Discrete Constant (point mass) with expecation constant
The integer value of the point mass
Discrete Mixture Distribution
Discrete Mixture Distribution
Map of Discrete distribution and probabilities
Generator trait, for posterior predictive distributions to be forwards sampled during sampling
Geometric distribution with expectation 1/p
Geometric distribution with expectation 1/p
The probability of success
Location-scale family distribution
A Multinomial distribution
A Multinomial distribution
A map with keys corresponding to the possible outcomes of a single multinomial trial and values corresponding to the probabilities of those outcomes
The number of multinomial trials
Negative Binomial distribution with expectation n*p/(1-p)
Negative Binomial distribution with expectation n*p/(1-p)
Probability of success
Total number of failures
Poisson distribution with expectation lambda
Poisson distribution with expectation lambda
The mean of the Poisson distribution
Predictor class, for fitting data with covariates
The main probability monad used in Rainier for constructing probabilistic programs which can be sampled
Class to scale a distribution under multiplication by a positive scale factor.
Class to scale a distribution under multiplication by a positive scale factor. We assume that (a > 0).
Class to translate a distribution by adding a constant.
A Cauchy distribution with mode location
and scaling relative to standard Cauchy of scale
Combinatoric functions useful in log density calculations.
Combinatoric functions useful in log density calculations. Note that they all return the log of the function described.
Object to exponentiate a distribution.
An Exponential distribution with expectation 1/rate
A Gamma distribution with expectation shape*scale
and variance shape*scale*scale
.
A Gamma distribution with expectation shape*scale
and variance shape*scale*scale
. N.B. It is parameterised with *scale* rather than *rate*, as is more typical in statistics texts.
Generator object, for posterior predictive distributions to be forwards sampled during sampling
A Laplace distribution with expectation location
and variance 2*scale*scale
A LogNormal distribution representing the exponential of a Gaussian random variable with expectation location
and standard deviation scale
.
A LogNormal distribution representing the exponential of a Gaussian random variable with expectation location
and standard deviation scale
. It therefore has expectation exp(location + scale*scale/2)
.
A Gaussian distribution with expectation location
and standard deviation scale
The main probability monad used in Rainier for constructing probabilistic programs which can be sampled
A support representing the whole real line.
A Uniform distribution over [from,to]
with expectation (to-from)/2
.
Bernoulli distribution with expectation
p
The probability of success