Discrete Uniform Distribution
Counting Equally Likely Discrete Outcomes
Define the support before calculating
A discrete uniform random variable has a finite collection of possible values, and each value has the same probability. If the support has n values, every individual probability is 1/n. Inclusive counting matters: for consecutive integer endpoints a through b, the count is b − a + 1, not merely the difference of endpoints.
For consecutive integers, symmetry gives the mean directly: the expected value is the midpoint, (a + b)/2. The variance is (n2 − 1)/12. These formulas apply to equally spaced consecutive integer values; for an arbitrary equally likely set, compute the average of the listed values and the average squared deviation instead.
Do not import continuous-uniform intuition without checking the model. A discrete probability is a count divided by the total number of allowable outcomes, so endpoints can carry probability and an interval event includes only the listed integers that satisfy it.
A fair spinner returns one of the integers 1 through 6 with equal probability. What is E[X]?
X is equally likely to be any integer from 4 through 10. What is Var(X)?