Positive Lower-Bounded Distributions
The positive lower-bounded probabilities have support on real values above some positive minimum value.
Pareto distribution
Probability density function
If
Distribution statement
y ~
pareto
(y_min, alpha)
Increment target log probability density with pareto_lupdf(y | y_min, alpha)
.
Stan functions
real
pareto_lpdf
(reals y | reals y_min, reals alpha)
The log of the Pareto density of y given positive minimum value y_min and shape alpha
real
pareto_lupdf
(reals y | reals y_min, reals alpha)
The log of the Pareto density of y given positive minimum value y_min and shape alpha dropping constant additive terms
real
pareto_cdf
(reals y | reals y_min, reals alpha)
The Pareto cumulative distribution function of y given positive minimum value y_min and shape alpha
real
pareto_lcdf
(reals y | reals y_min, reals alpha)
The log of the Pareto cumulative distribution function of y given positive minimum value y_min and shape alpha
real
pareto_lccdf
(reals y | reals y_min, reals alpha)
The log of the Pareto complementary cumulative distribution function of y given positive minimum value y_min and shape alpha
R
pareto_rng
(reals y_min, reals alpha)
Generate a Pareto variate with positive minimum value y_min and shape alpha; may only be used in transformed data and generated quantities blocks. For a description of argument and return types, see section vectorized PRNG functions.
Pareto type 2 distribution
Probability density function
If
Note that the Lomax distribution is a Pareto Type 2 distribution with
Distribution statement
y ~
pareto_type_2
(mu, lambda, alpha)
Increment target log probability density with pareto_type_2_lupdf(y | mu, lambda, alpha)
.
Stan functions
real
pareto_type_2_lpdf
(reals y | reals mu, reals lambda, reals alpha)
The log of the Pareto Type 2 density of y given location mu, scale lambda, and shape alpha
real
pareto_type_2_lupdf
(reals y | reals mu, reals lambda, reals alpha)
The log of the Pareto Type 2 density of y given location mu, scale lambda, and shape alpha dropping constant additive terms
real
pareto_type_2_cdf
(reals y | reals mu, reals lambda, reals alpha)
The Pareto Type 2 cumulative distribution function of y given location mu, scale lambda, and shape alpha
real
pareto_type_2_lcdf
(reals y | reals mu, reals lambda, reals alpha)
The log of the Pareto Type 2 cumulative distribution function of y given location mu, scale lambda, and shape alpha
real
pareto_type_2_lccdf
(reals y | reals mu, reals lambda, reals alpha)
The log of the Pareto Type 2 complementary cumulative distribution function of y given location mu, scale lambda, and shape alpha
R
pareto_type_2_rng
(reals mu, reals lambda, reals alpha)
Generate a Pareto Type 2 variate with location mu, scale lambda, and shape alpha; may only be used in transformed data and generated quantities blocks. For a description of argument and return types, see section vectorized PRNG functions.
Wiener First Passage Time Distribution
Probability density function
If
where
where
Which of these is used in the computations depends on which expression requires the smaller number of components
In the case where
Distribution statement
y ~
wiener
(alpha, tau, beta, delta)
Increment target log probability density with wiener_lupdf(y | alpha, tau, beta, delta)
.
y ~
wiener
(alpha, tau, beta, delta, var_delta)
Increment target log probability density with wiener_lupdf(y | alpha, tau, beta, delta, var_delta)
.
y ~
wiener
(alpha, tau, beta, delta, var_delta, var_beta, var_tau)
Increment target log probability density with wiener_lupdf(y | alpha, tau, beta, delta, var_delta, var_beta, var_tau)
.
Stan functions
real
wiener_lpdf
(reals y | reals alpha, reals tau, reals beta, reals delta)
The log of the Wiener first passage time density of y
given boundary separation alpha
, non-decision time tau
, a-priori bias beta
, and drift rate delta
.
real
wiener_lpdf
(real y | real alpha, real tau, real beta, real delta, real var_delta)
The log of the Wiener first passage time density of y
given boundary separation alpha
, non-decision time tau
, a-priori bias beta
, drift rate delta
, and inter-trial drift rate variability var_delta
.
Setting var_delta
to 0
recovers the 4-parameter signature above.
real
wiener_lpdf
(real y | real alpha, real tau, real beta, real delta, real var_delta, real var_beta, real var_tau)
The log of the Wiener first passage time density of y
given boundary separation alpha
, non-decision time tau
, a-priori bias beta
, drift rate delta
, inter-trial drift rate variability var_delta
, inter-trial variability of the starting point (bias) var_beta
, and inter-trial variability of the non-decision time var_tau
.
Setting var_delta
, var_beta
, and var_tau
to 0
recovers the 4-parameter signature above.
real
wiener_lupdf
(reals y | reals alpha, reals tau, reals beta, reals delta)
The log of the Wiener first passage time density of y
given boundary separation alpha
, non-decision time tau
, a-priori bias beta
, and drift rate delta
, dropping constant additive terms
real
wiener_lupdf
(real y | real alpha, real tau, real beta, real delta, real var_delta)
The log of the Wiener first passage time density of y
given boundary separation alpha
, non-decision time tau
, a-priori bias beta
, drift rate delta
, and inter-trial drift rate variability var_delta
, dropping constant additive terms.
Setting var_delta
to 0
recovers the 4-parameter signature above.
real
wiener_lupdf
(real y | real alpha, real tau, real beta, real delta, real var_delta, real var_beta, real var_tau)
The log of the Wiener first passage time density of y
given boundary separation alpha
, non-decision time tau
, a-priori bias beta
, drift rate delta
, inter-trial drift rate variability var_delta
, inter-trial variability of the starting point (bias) var_beta
, and inter-trial variability of the non-decision time var_tau
, dropping constant additive terms.
Setting var_delta
, var_beta
, and var_tau
to 0
recovers the 4-parameter signature above.
Boundaries
Stan returns the first passage time of the accumulation process over the upper boundary only. To get the result for the lower boundary, use