The table below collects the full anatomy of the discrete uniform distribution into a single reference card — its parameters and support, the PMF and CDF, the mean and variance formulas, mode and median behavior, and the canonical fair-die example.
| Aspect |
Formula / statement |
Note / example |
| Parameters |
a (min), b (max); n = b − a + 1 values |
a and b are integers with a ≤ b |
| Support |
{a, a + 1, ..., b} |
finite, equally spaced integers |
| PMF |
P(X = k) = 1 / (b − a + 1) = 1 / n for every k in the support |
every value carries the same probability mass |
| CDF |
F(x) = (⌊x⌋ − a + 1) / (b − a + 1) on [a, b]; 0 below a; 1 above b |
step function jumping by 1 / n at each integer |
| Expected value |
E[X] = (a + b) / 2 |
midpoint of the range; not always an attainable value |
| Variance |
Var(X) = ((b − a + 1)² − 1) / 12 = (n² − 1) / 12 |
grows quadratically with the range width |
| Mode and median |
every value is a mode; median = (a + b)/2 (interval when n is even) |
distribution is fully symmetric and flat |
| Canonical example |
fair six-sided die: a = 1, b = 6, n = 6 |
E[X] = 3.5, Var(X) = 35/12 ≈ 2.92, σ ≈ 1.71 |