The uniform distribution, explained
By Jude Wallis · Updated
A uniform distribution spreads probability evenly. Discrete uniform: a fair die, where each of the 6 faces has probability 1/6. Continuous uniform: a flat density curve over an interval, where probability is area, so P(3 < X < 7) on [0, 10] is 4/10 = 0.4. The mean is the midpoint.
AP Statistics: Unit 2 (topics 2.8 Introduction to Random Variables and Probability Distributions, 2.9 Parameters of Random Variables, 2.11 The Normal Distribution). The Fall 2026 AP Statistics framework names approximately uniform as a distribution shape in Unit 1 (topic 1.6) but does not list the uniform as a probability model, so treat the continuous uniform as college-level background; the machinery used here, discrete probability distributions (2.8), expected value and standard deviation of a random variable (2.9), and continuous random variables (2.11), is all Unit 2 content.
What a uniform distribution is
A uniform distribution spreads probability evenly, so no outcome is favored over any other. Graphed, it is flat: in the Fall 2026 AP framework, a distribution whose frequencies are all about the same, with no prominent peak, is called approximately uniform.
There are two versions, and mixing them up causes most of the trouble students have here. The discrete uniform applies to a countable list of outcomes, such as the six faces of a fair die, and gives each outcome the same probability. The continuous uniform applies to every value in an interval, such as any real number between 0 and 10, and gives each equal-width slice of that interval the same probability.
The distinction matters because probability is computed differently in each case. For a discrete uniform you add up probabilities of individual outcomes. For a continuous uniform you measure area under a flat curve, and no individual value carries any probability at all. If the discrete and continuous split is new, see discrete vs continuous variables.
The discrete uniform: a fair die
Let be the number showing on one roll of a fair six-sided die. A probability distribution lists every possible value with its probability, and here all six probabilities are equal.
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| 1/6 | 1/6 | 1/6 | 1/6 | 1/6 | 1/6 |
Two checks confirm this is a legitimate probability distribution. Every probability is between 0 and 1, and the probabilities add to , which the AP framework requires of any discrete probability distribution.
Probabilities of events come from counting outcomes. , and . In general, for of equally likely outcomes the probability is , which is the reason the fair-die model shows up constantly in probability questions.
The mean of a discrete uniform
The mean of a random variable is its expected value, written or (mu-sub-X), and the AP formula is a weighted sum:
Read that as: multiply each possible value by its probability and add the results. For the fair die, every probability is , so
The expected value is 3.5 even though no face shows 3.5, because it is a long-run average rather than a prediction of one roll. There is also a shortcut worth knowing: for a discrete uniform on consecutive whole numbers from to , symmetry puts the mean at the midpoint, . For the die that gives , matching the formula. You can check work like this in the expected value calculator.
The continuous uniform: probability is area
A continuous random variable can take any value in an interval, and every interval inside its domain has a probability attached. You cannot list the outcomes, so probability is represented by area under a density curve instead of by a table.
For a continuous uniform on the interval from to , the density curve is a horizontal line, a rectangle sitting on the interval. Total probability must equal 1, so the rectangle's area must equal 1. Its width is , which forces its height to be
Every probability is then just a smaller rectangle. For any two values and inside the interval, the chance that lands between them is that piece's width times the height:
So probability under a continuous uniform is pure proportion. Ask what fraction of the total width your target region covers, and that fraction is the probability.
One consequence catches people out. A single point has width 0, so the rectangle above it has area , and the probability of hitting one exact value is 0. That is not saying the value is impossible; it is saying that a point carries no area, which is true under every continuous model rather than just this one.
The practical consequence saves you time. Because the endpoints contribute nothing, and are the same number. You never have to worry about whether an inequality is strict when the variable is continuous.
Discrete variables are the opposite. and differ for a die, because the single outcome 4 carries a real probability of . Checking whether the endpoint counts is one of the first things to settle in any discrete probability question.
The mean and spread of a continuous uniform
A flat curve is symmetric about its middle, so the mean sits at the midpoint of the interval:
The median is the same value, since half the area lies on each side. For a uniform on 0 to 10 the mean and median are both .
The spread has a formula too. The standard deviation, written (sigma), of a continuous uniform on to is , which for the interval 0 to 10 gives . Treat that one as background: the uniform is not a named probability model in the Fall 2026 AP framework, which builds its continuous work around the normal distribution instead.
Uniform vs normal: random does not mean bell-shaped
Students often assume that anything random is normally distributed, and the uniform distribution is the cleanest counterexample. Both shapes are symmetric, and both put the mean and median at the center, so on those two features they agree completely. Everything else differs.
| Feature | Continuous uniform on 0 to 10 | Normal |
|---|---|---|
| Shape | Flat rectangle | Unimodal and bell-shaped |
| Possible values | Only 0 to 10 | Any real number |
| Values near the center | No more likely than any others | Much more likely than extremes |
| Mean and median | Both 5 | Both equal to |
The row that matters most is the third one. Under a normal model, values near the mean are more likely than values far out in the tails, which is what makes z-scores and the empirical rule useful. Under a uniform model on 0 to 10, the slice from 0 to 1 and the slice from 4.5 to 5.5 both have probability 0.1, so no region is unusual and a z-score tells you much less.
There is a bridge between the two, and it is one of the better surprises in the course. Take repeated samples from a uniform population and the distribution of the sample means becomes approximately normal as the sample size grows. The population shape does not have to be normal for the central limit theorem to deliver a normal sampling distribution.
Where uniform distributions actually turn up
Random number generators produce continuous uniform values between 0 and 1, which is why simulations start there. Assigning digits 0 through 9 to outcomes in a simulation uses a discrete uniform, and so does any fair draw: a shuffled deck, a lottery ball, a randomly chosen row of a random digit table.
Random assignment in an experiment leans on the same idea. Every subject is equally likely to land in each treatment group, which is what balances other variables across the groups on average.
One warning about real data. A histogram that looks roughly flat is described as approximately uniform, but that is a description of a sample, not a claim that the underlying model is uniform. Small samples produce lumpy graphs, so treat a flat-looking histogram as weak evidence and check what the data-generating process actually was.
Common mistakes
- Using the density height as a probability. The height on 0 to 10 is 0.1, but that is not the chance of any outcome; probability comes from multiplying height by width.
- Forgetting to divide by the total width. is , not 4.
- Counting endpoints in the continuous case. There is no difference between and when the variable is continuous.
- Assuming a value outside the interval has some small chance. Outside to the density is 0, so the probability is exactly 0.
- Reaching for the empirical rule. The 68-95-99.7 percentages belong to the normal curve and are wrong for a flat one.
- Confusing uniform with random. Random means governed by chance; uniform means every equal-width slice is equally likely, which is one particular way for chance to behave.
Continuous uniform on 0 to 10
A campus print kiosk releases each queued job at a moment that is equally likely to fall anywhere in the 10 minutes after you press send. Let be your wait in minutes, so is uniform on the interval from 0 to 10. Find the height of the density curve, , , and the mean wait.
Identify the endpoints: and , so the total width is minutes.
Height of the density curve: per minute.
Check total area: width times height , as any density curve requires.
: the region you want runs from 3 to 7, a width of minutes.
Its area is width times height . As a proportion of the whole interval, .
: the region runs from 8 to 10, a width of , so the probability is .
Mean: the midpoint of the interval, minutes.
Sanity check on the two probabilities: 4 minutes out of 10 is 40% of the interval and 2 minutes out of 10 is 20%, which match 0.4 and 0.2.
The density height is 0.1 per minute, , , and the mean wait is 5 minutes. Because is continuous, is also 0.4.
Discrete uniform: the mean and standard deviation of a fair die
Let be the result of one roll of a fair six-sided die, so for each of . Find and .
Expected value: .
The values add to , so .
Cross-check with the midpoint shortcut for consecutive whole numbers: , which agrees.
Standard deviation uses . Start with the squared deviations from 3.5.
, , , , , .
They add to .
Each carries weight , so the variance is .
Take the square root of the exact variance rather than of the rounded 2.9167: .
and . These are parameters of the probability distribution, not statistics from data, so they use and rather than (x-bar) and .
Frequently asked questions
Is the uniform distribution on the AP Statistics exam?
Approximately uniform appears in Unit 1 as a shape you use when describing a distribution. The uniform is not one of the named probability models in the Fall 2026 framework, which builds Unit 2 around discrete probability distributions, the binomial, and the normal. The reasoning here still supports those topics, since equally likely outcomes drive basic probability.
Why does a continuous uniform give probability 0 to a single value?
Probability is area under the density curve, and a single point has width 0, so its area is 0. This is a feature of every continuous model, not just the uniform, and it is why strict and non-strict inequalities give the same answer for continuous variables.
What is the difference between a discrete and a continuous uniform distribution?
A discrete uniform has a countable list of outcomes, each with the same probability, such as 1/6 for each face of a fair die. A continuous uniform covers every value in an interval, and probability comes from the width of a region rather than from individual outcomes.
Does a flat histogram mean the data are uniformly distributed?
It means the sample looks approximately uniform, which is a description rather than a conclusion about the underlying process. Small samples produce lumpy graphs, so check how the data were generated before claiming a uniform model.