Statistics[Distributions]
DiscreteUniform
discrete uniform distribution
Calling Sequence
Parameters
Description
Examples
References
DiscreteUniform(a, b)
DiscreteUniformDistribution(a, b)
a
-
lower bound parameter
b
upper bound parameter
The discrete uniform distribution is a discrete probability distribution with probability function given by:
f⁡t=0t<a1b−a+1t≤b0otherwise
subject to the following conditions:
a≤b
Note that the DiscreteUniform command is inert and should be used in combination with the RandomVariable command.
with⁡Statistics:
X≔RandomVariable⁡DiscreteUniform⁡a,b:
ProbabilityFunction⁡X,u
0u<a1b−a+1u≤b0otherwise
ProbabilityFunction⁡X,4
04<a1b−a+14≤b0otherwise
Mean⁡X
a2+b2
The variance of X is a somewhat messy expression, because of all the ceil and floor functions.
Variance⁡X
a212+b212+b6−a⁢b6−a6
If we know that a and b are integers, we can apply these assumptions to make the expression easier to read.
Variance⁡Xassuminga::integer,b::integer
112⁢a2+112⁢b2+16⁢b−16⁢a⁢b−16⁢a
Evans, Merran; Hastings, Nicholas; and Peacock, Brian. Statistical Distributions. 3rd ed. Hoboken: Wiley, 2000.
Johnson, Norman L.; Kotz, Samuel; and Balakrishnan, N. Continuous Univariate Distributions. 2nd ed. 2 vols. Hoboken: Wiley, 1995.
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
See Also
Statistics
Statistics[Distributions][Uniform]
Statistics[RandomVariable]
Download Help Document