Previous Up Next

9.4.2  The uniform distribution

The probability density function for the uniform distribution: uniform uniformd

Given two values a and b with a < b, the uniform distribution on [a,b] has density function 1/(ba) for x in [a,b]. The uniform (or uniformd) command computes this density function.


Example.
Input:

uniform(2.2,3.5,2.8)

Output:

0.769230769231

The cumulative distribution function for the uniform distribution: uniform_cdf uniformd_cdf

The uniform_cdf command finds the cumulative distribution function for the uniform distribution.


Examples.

The inverse distribution function for the uniform distribution: uniform_icdf uniformd_icdf

The uniform_icdf command computes the inverse distribution for the uniform distribution.


Example.
Input:

uniform_icdf(2,3,.6)

Output:

2.6

Previous Up Next