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 Continuous Distribution, with method real
allowing conversion to a random variable.
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
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
This is a direct implementation of the equations described in sections 30.3 (for rHat and v) and 30.4 (for autocorrelation and ess) of the Stan manual.
A Uniform distribution over [from,to]
with expectation (to-from)/2
.
Bernoulli distribution with expectation
p
The probability of success