How to Find the Median and Modes of a Discrete Uniform Distribution
At a glance
- 1. List the support
Write the possible values in increasing order and count how many there are.
- 2. Find the middle
For an odd count, take the central value; for an even count, identify the two central values.
- 3. State the median convention
With an even count, every value between the central pair is a median; the usual single-number answer is their midpoint.
- 4. Identify the modes
All support values are modes because each has the same probability.
A discrete uniform distribution assigns the same probability to every value in a finite support. To find its modes, compare the probabilities; they are all tied. To find its median, put the support values in order and locate the middle value or pair. The even-sized case has a convention worth spelling out: it has an interval of medians, although many calculations report the midpoint of that interval as the median.
Define the support
Suppose the possible values are consecutive integers from through , inclusive. The number of values is
and each value has probability . For example, a fair six-sided die has support , with probability for each outcome.
The same median and mode rules work for any finite support, not just consecutive integers. In that case, list the distinct support values in increasing order as .
Find the median
A number is a median of a distribution when at least half the probability is at or below it and at least half is at or above it:
For a discrete uniform distribution with ordered support , the median depends on whether is odd or even.
- Odd : The median is the single central support value, .
- Even : The two central values are and . Every real number in the interval between them is a median under the definition above.
When a problem asks for one numerical answer in the even case, the usual convention is to report the midpoint of the two central values:
For consecutive integer support , this conventional median is . If there are an odd number of values, that midpoint is itself the central support value. If there are an even number, it lies halfway between the two central values.
Find the modes
A mode is a support value with the highest probability. In a discrete uniform distribution, every support value has probability , so every value in the support is a mode. There is not one uniquely most likely value; all outcomes are equally likely.
For support , the set of modes is the entire set . This differs from some distributions that have a single mode or a small number of tied modes.
Worked example: values from 3 through 10
Let be uniform on . There are eight equally likely values, so each has probability . The ordered support is already listed, and the two central values are the fourth and fifth:
There are four values at or below 6 and four at or above 7. Thus and . Any number from 6 through 7 meets both median conditions. The full set of medians is , while the usual single-number answer is
Each of 3, 4, 5, 6, 7, 8, 9, and 10 has probability , so all eight values are modes. For a familiar example, a fair six-sided die has medians throughout (with conventional median ) and modes 1 through 6.
Why the even case has an interval of medians
With an even number of equally likely support values, exactly half lie on each side of the gap between the central pair. For any strictly between the central values, half the outcomes are at or below and half are at or above it. At either endpoint, one of these probabilities is and the other is greater than , because the endpoint itself is included. Thus every value in the closed interval between the central pair meets both median conditions. That is why the median need not be one of the possible outcomes. The midpoint is a convenient standard summary, not the only number satisfying the median definition.
Common mistakes
- Reporting only one mode: If all probabilities are equal, all support values are modes.
- Assuming the median must be an outcome: For even-sized support, the conventional median can lie between possible outcomes, as with a die’s median of 3.5.
- Confusing the median set with the conventional answer: Under the balance definition, an even-sized support has every value between the central pair as a median. If asked for the standard numerical median, give their midpoint; if asked for all medians, give the interval.
- Counting endpoints incorrectly: For integer support from through , both endpoints are included, so the number of values is , not .
References
- A First Course in Probability, 10th ed., Sheldon M. Ross
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.