The Uniform Distribution
When every value in is equally likely, the density is a flat rectangle. Then a probability is just the fraction of the interval you're asking about: width times height, no calculus needed.
What the symbols mean
- Smallest value
Left end of the interval.
- Largest value
Right end of the interval.
- Height
Chosen so the rectangle's area is 1.
Explanation
A uniform distribution is simply one where every value in a range is equally likely, like your wait for a bus that comes every 20 minutes when you show up at a random time. "Uniform" means the same everywhere: the density curve is perfectly flat. So the chance of landing in a piece of the range is just how big that piece is. The formulas look like three different things, but each is simple. (the height, chosen so the rectangle's area comes out to 1), (the middle of the interval, where it balances) and (the spread, which grows with the width). The is the only odd-looking part, and you'll see where it comes from in the practice problems.
Probabilities are proportions of the interval. This is the simplest density there is, so it's a good place to see the "probability is area" idea from the last lesson in action. A rectangle's area is width times height, so for . Notice that only the width of the window matters, not where it sits.
Percentiles are just as easy: the th percentile sits a fraction of the way from to .
See it
Worked examples
A bus comes every 20 minutes, so your wait is uniform on . Find .
- 1
The window from 0 to 5 is a quarter of the whole interval: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Waits are uniform on minutes. Find .
Find .
Find the mean wait.
Find the standard deviation of the wait.
Find the 90th percentile of the wait.
A train comes every 15 minutes and you arrive at a random time. What's the probability you wait more than 10 minutes?
Use the integral to find the variance of a uniform wait on .
The hardest one here. Get it, and you've got this lesson.
Two friends each arrive at a café at a uniformly random time between 12:00 and 1:00, independently, and each waits 15 minutes for the other before leaving. What's the probability they meet?
Where it's used
Random number generators produce uniform values, which simulations then transform into every other distribution; rounding errors are often modeled as uniform.