pymc.Uniform#

class pymc.Uniform(name, *args, rng=None, dims=None, initval=None, observed=None, total_size=None, transform=UNSET, **kwargs)[source]#

Continuous uniform log-likelihood.

The pdf of this distribution is

\[f(x \mid lower, upper) = \frac{1}{upper-lower}\]

(Source code, png, hires.png, pdf)

../../../_images/pymc-Uniform-1.png

Support

\(x \in [lower, upper]\)

Mean

\(\dfrac{lower + upper}{2}\)

Variance

\(\dfrac{(upper - lower)^2}{12}\)

Parameters
lowertensor_like of float, default 0

Lower limit.

uppertensor_like of float, default 1

Upper limit.

Methods

Uniform.__init__(*args, **kwargs)

Uniform.dist([lower, upper])

Creates a tensor variable corresponding to the cls distribution.

Uniform.logcdf(lower, upper)

Compute the log of the cumulative distribution function for Uniform distribution at the specified value.

Uniform.moment(size, lower, upper)

Attributes

bound_args_indices

rv_class

rv_op