Uniform discrete distribution
Profile
The Discrete Uniform distribution assigns equal probability to every integer in an inclusive interval. It is the right model when an integer is selected without preference between min and max.
| Feature | Reading |
|---|---|
| Support | Support is {min, min+1,…,max}. Unlike continuous Uniform, each point has positive mass and the number of outcomes is finite. |
| Shape | It is Uniform’s discrete counterpart, but not an automatic discretization: rounding a continuous uniform does not generally yield equal masses. It also underlies simple unweighted sampling. |
Origin and terminology
Discrete equiprobability appears in games of chance, urns, and random-integer generation. Its value is making a finite outcome space explicit.
In real models
- random selection of integers, cards, or indices
- simulation of ordered categories with equal probability
Comparisons
Support is inclusive: changing max to max-1 changes outcome count and every moment.
A fair die needs exact endpoints
The Discrete Uniform distribution is the law of an ideal die whose faces carry consecutive integer labels. Both endpoints are included, so the number of possible outcomes is max-min+1. Forgetting that extra one is a common source of errors in simulation and array indexing.
Equal probability for every integer is a strong claim about the mechanism, not an automatic expression of ignorance. A random number generator may also introduce modulo bias when its native range is not a multiple of the desired number of outcomes. Beyond simulation, the model suits well-designed lotteries and randomly selected ordered categories. It does not usually fit rounded continuous measurements, whose endpoint masses follow a different rule.
Decision guide
A good candidate when: only consecutive integers between known bounds are possible and all are genuinely equally likely.
Compare it with: Categorical for unequal probabilities and continuous Uniform for nondiscrete measurements. Rounding a continuous Uniform variable does not always make endpoint integers equally likely.
References
- SciPy reference: scipy.stats.randint — definition and parameterization
- Johnson, N. L., Kemp, A. W. & Kotz, S. (2005). Univariate Discrete Distributions, 3rd ed. Wiley.
- Evans, M., Hastings, N. & Peacock, B. (2000). Statistical Distributions, 3rd ed. Wiley.
- Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed. Wiley.