Exam P · Discrete Distributions · Free Lesson

Discrete Uniform Random Variables

Free SOA Exam P (Probability) lesson in Discrete Distributions. 10 min read, ~1,460 words.

A raffle draws an integer from 5 to 20, each equally likely. Its variance is 21.25. Reach for the continuous uniform formula and you get 18.75, off by 12%. The discrete uniform has its own variance formula, and the difference is tested.

A discrete uniform random variable takes each integer in {a,a+1,…,b} \{a, a+1, \ldots, b\} with equal probability. Let k=b−a+1 k = b - a + 1 be the number of values.

P(X=x)=1k,x∈{a,a+1,…,b}P(X=x) = \frac{1}{k}, \quad x \in \{a, a+1, \ldots, b\}

The mean is the midpoint, and the variance depends only on the count of values:

E[X]=a+b2,Var(X)=k2−112E[X] = \frac{a+b}{2}, \quad \text{Var}(X) = \frac{k^2 - 1}{12}

A clean way to find the variance is to shift to the standard set {1,2,…,k} \{1, 2, \ldots, k\} , which has the same spread; shifting changes the mean but never the variance.

HIGH-FREQUENCY: The discrete uniform variance is (k2−1)/12 (k^2-1)/12 with k k the COUNT of values, not the continuous (b−a)2/12 (b-a)^2/12 .

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

The instant you see "equally likely integers," write down k=b−a+1 k = b - a + 1 , then E=(a+b)/2 E = (a+b)/2 and Var=(k2−1)/12 \text{Var} = (k^2-1)/12 . The trap is always the continuous formula sneaking in. "Count the values, then (k2−1)/12 (k^2-1)/12 ." Discrete uses the count; continuous uses the width. "Midpoint mean" holds for both.

The full lesson (about 1,460 words, 10 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free Exam P lessons or jump into free Exam P practice questions.