Mean and Variance of the Discrete Uniform Distribution
Compute the expected value and variance of a discrete uniform random variable on a set of consecutive integers using closed-form formulas.
Step 1 of 119%
Tutorial
Mean of a Discrete Uniform Distribution
Suppose is a discrete uniform random variable on the consecutive integers so that each of the values has probability
The mean of is the midpoint of the smallest and largest values:
For example, if is the result of rolling a fair six-sided die, then is discrete uniform on and