The discrete-uniform probability density function is then given by for all , where to for the set of allowed values of . The discrete-uniform distribution function is The discrete-uniform probability density function, as shown in the following figure, is used when a specific set of discrete values are allowed for a random variable, each with equal probability. In the following example, the allowed values for are 1, 2, 4, and 8.5. |