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 with equal probability. Let be the number of values.
The mean is the midpoint, and the variance depends only on the count of values:
A clean way to find the variance is to shift to the standard set , which has the same spread; shifting changes the mean but never the variance.
HIGH-FREQUENCY: The discrete uniform variance is with the COUNT of values, not the continuous .
Common mistakes
- Using for the discrete uniform. That is the continuous formula. The discrete variance is with the count of values. For : 21.25, not 18.75.
- Miscounting . The set has values, not . For , , not 15.
- Scaling variance by instead of . . For , multiply the variance by 10,000, not 100.
Bottom line
- Discrete uniform on : equally likely values, each with probability .
- Mean: , the midpoint, regardless of the count .
- Variance: , where is the COUNT of values.
- Watch the trap: the continuous uniform uses . These differ.
Exam shortcut
The instant you see "equally likely integers," write down , then and . The trap is always the continuous formula sneaking in. "Count the values, then ." 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
- 2a
- 2b
- 2c
- 2d
- 2e
- 2f
Browse all free Exam P lessons or jump into free Exam P practice questions.