Next: Hypergeometric Random Variable, Previous: Geometric Random Variable, Up: Functions and Variables for discrete distributions [Contents][Index]
The Discrete uniform distribution is a discrete probablity distribution where a finite number of values are equally likely to occur. The values are \(1,2,3,...,n\).
For example throwing a fair die of 6 sides numbered 1 through 6 follows a \({\it DiscreteUniform}(1/6)\) distribution.
Returns the value at x of the probability function of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The pdf is
Returns the value at x of the distribution function of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The cdf is
Returns the q-quantile of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer; in other words, this is the inverse of cdf_discrete_uniform. Argument q must be an element of \([0,1]\). To make use of this function, write first load("distrib").
Returns the mean of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The mean is
Returns the variance of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The variance is
Returns the standard deviation of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The standard deviation is
Returns the skewness coefficient of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The skewness coefficient is
Returns the kurtosis coefficient of a
\({\it DiscreteUniform}(n)\)
random variable, with \(n\) a strictly positive integer. To make use of this function, write first load("distrib").
The kurtosis coefficient is
Returns a
\({\it DiscreteUniform}(n)\)
random variate, with \(n\) a strictly positive integer. Calling random_discrete_uniform with a second argument m, a random sample of size m will be simulated.
This is a direct application of the random built-in Maxima function.
See also random. To make use of this function, write first load("distrib").