Uniform distribution

These functions are for the uniform distribution on [a, b].

mpsci.distributions.uniform.cdf(x, a=0, b=1)

Uniform distribution cumulative distribution function.

mpsci.distributions.uniform.entropy(a=0, b=1)

Entropy of the uniform distribution.

mpsci.distributions.uniform.invcdf(p, a=0, b=1)

Uniform distribution inverse CDF.

This function is also known as the quantile function or the percent point function.

mpsci.distributions.uniform.invsf(p, a=0, b=1)

Unifiorm distribution inverse survival function.

mpsci.distributions.uniform.logpdf(x, a=0, b=1)

Logarithm of the PDF of the uniform distribution.

mpsci.distributions.uniform.mean(a=0, b=1)

Mean of the uniform distribution.

mpsci.distributions.uniform.median(a=0, b=1)

Median of the uniform distribution.

mpsci.distributions.uniform.mle(x)

Uniform distribution maximum likelihood parameter estimation.

Returns (a, b).

mpsci.distributions.uniform.mom(x)

Method of moments parameter estimation for the uniform distribution.

Returns (a, b).

mpsci.distributions.uniform.noncentral_moment(n, a=0, b=1)

n-th noncentral moment of the uniform distribution.

n must be a nonnegative integer.

mpsci.distributions.uniform.pdf(x, a=0, b=1)

Uniform distribution probability density function.

mpsci.distributions.uniform.sf(x, a=0, b=1)

Uniform distribution survival function.

mpsci.distributions.uniform.support(a=0, b=1)

Support of the uniform distribution.

mpsci.distributions.uniform.var(a=0, b=1)

Variance of the uniform distribution.