Next: , Previous: , Up: Functions and Variables for discrete distributions   [Contents][Index]

52.3.6 Discrete Uniform Random Variable

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 DiscreteUniform(1/6) distribution.

Function: pdf_discrete_uniform (x,n)

Returns the value at x of the probability function of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The pdf is

f(x,n)=1n

Categories: Package distrib ·
Function: cdf_discrete_uniform (x,n)

Returns the value at x of the distribution function of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The cdf is

F(x;n)=xn

Categories: Package distrib ·
Function: quantile_discrete_uniform (q,n)

Returns the q-quantile of a 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").

Categories: Package distrib ·
Function: mean_discrete_uniform (n)

Returns the mean of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The mean is

E[X]=n+12

Categories: Package distrib ·
Function: var_discrete_uniform (n)

Returns the variance of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The variance is

V[X]=n2112

Categories: Package distrib ·
Function: std_discrete_uniform (n)

Returns the standard deviation of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The standard deviation is

D[X]=n2123

Categories: Package distrib ·
Function: skewness_discrete_uniform (n)

Returns the skewness coefficient of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The skewness coefficient is

SK[X]=0

Categories: Package distrib ·
Function: kurtosis_discrete_uniform (n)

Returns the kurtosis coefficient of a DiscreteUniform(n) random variable, with n a strictly positive integer. To make use of this function, write first load("distrib").

The kurtosis coefficient is

KU[X]=6(n2+1)5(n21)

Categories: Package distrib ·
Function: random_discrete_uniform (n)
    random_discrete_uniform (n,m)

Returns a 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").

Categories: Package distrib · Random numbers ·

Next: , Previous: , Up: Functions and Variables for discrete distributions   [Contents][Index]

JavaScript license information