Continuous Distributions: Uniform and Exponential
Work with densities and areas instead of point probabilities, and use the uniform and exponential distributions for waiting times and lifetimes.
Welcome back!
Step 1 of 14Learn
Probability as area
What's the probability that a randomly chosen adult is exactly 170 cm tall, to infinitely many decimal places? Zero. There are infinitely many possible heights, and any single exact value has no probability of its own. For continuous random variables, the useful questions are about intervals: the probability of a height between 169.5 and 170.5 cm.
Continuous variables are described by a probability density function (PDF) f(x). Probabilities are areas under the curve:
P(a ≤ X ≤ b) = area under f(x) from a to b
(In calculus terms, the integral of f from a to b.) A valid density is never negative, and the total area under it is 1.
Two consequences trip people up:
- P(X = a) = 0 for any single value, so P(X < a) and P(X ≤ a) are the same.
- A density can exceed 1. It's a probability per unit, not a probability. A distribution squeezed into an interval 0.1 wide must have density around 10 there so its area is 1.
The CDF works exactly as before: F(x) = P(X ≤ x), the area to the left of x. Then P(a < X ≤ b) = F(b) − F(a). Most practical calculations with continuous distributions come down to finding CDF values, from a formula, a table or software.
Means and variances are defined as for discrete variables, with sums replaced by integrals. You won't need to integrate here; the formulas for each standard distribution are given.
Step 2 of 14Practice · True or false
For a continuous random variable, the value of the density f(x) at a point is the probability that X equals x.
Step 3 of 14Chart
Shrink the interval, shrink the probability
Probability that a height lands within a window around 170 cm. As the window narrows toward a single point, the probability heads to 0.
Step 4 of 14Learn
The uniform distribution
The simplest continuous distribution spreads probability evenly over an interval [a, b]. Its density is a flat rectangle of height 1/(b − a), so the area is 1.
- P(c ≤ X ≤ d) = (d − c)/(b − a) for any sub-interval inside [a, b]: probability is proportional to length.
- Mean = (a + b)/2, the midpoint.
- Variance = (b − a)2 / 12, so SD = (b − a)/√12 ≈ 0.289(b − a).
Example. A bus comes every 12 minutes, and you arrive at a random time without checking the schedule. Your wait W is Uniform(0, 12). The mean wait is 6 minutes. The probability of waiting more than 8 minutes is (12 − 8)/12 = 1/3. The SD is 12/√12 ≈ 3.46 minutes.
Uniform distributions show up in rounding errors (a value rounded to the nearest unit has an error uniform on −0.5 to 0.5), in random number generators (most produce Uniform(0, 1) numbers, which are then transformed into other distributions) and in "no information" situations where any point in a range is equally plausible.
Common mistake: assuming a uniform distribution where it doesn't belong. If buses bunch together, as they often do on busy routes, your average wait is longer than half the scheduled gap, because you're more likely to arrive during one of the long gaps.
Step 5 of 14Practice · Work it out
A train arrives every 20 minutes and you show up at a random time. What is the probability, in percent, that you wait between 5 and 9 minutes?
Step 6 of 14Learn
The exponential distribution
How long until the next call arrives at a help desk? Until a radioactive atom decays? Until a component with no wear-out fails? If events happen as a Poisson process with rate λ per unit time, the waiting time between them has an exponential distribution.
- Density: f(x) = λ·e^(−λx) for x ≥ 0
- Survival function: P(X > t) = e^(−λt)
- CDF: P(X ≤ t) = 1 − e^(−λt)
- Mean = 1/λ, and SD = 1/λ as well
The link to the Poisson is direct: "the wait exceeds t" means "zero events in time t," and for a Poisson count with mean λt, P(0) = e^(−λt).
Example. Calls arrive at 12 per hour, so λ = 0.2 per minute and the mean wait is 5 minutes. P(no call for 10 minutes) = e^(−0.2 × 10) = e^(−2) ≈ 0.135.
The median is where P(X > t) = 0.5: t = ln 2 / λ ≈ 0.693/λ. For radioactive decay, this is the half-life. The median is less than the mean because the distribution has a long right tail: most waits are short, but occasional long ones pull the average up.
Like the geometric distribution, the exponential is memoryless: if you've already waited 10 minutes, the remaining wait has the same distribution as a fresh start. That makes it right for random arrivals and radioactive decay, and wrong for things that wear out, like car tires or people.
Step 7 of 14Explore
Exponential waiting times
The curve is the exponential density with rate λ events per minute. Area under the curve beyond a time t is the chance of waiting longer than t. Notice how the mean (1/λ) sits to the right of the median.
- Mean wait 1/λ
- 5 min
- Median wait ln2/λ
- 3.47 min
- P(wait > 10 min)
- 0.1353
Step 8 of 14Practice · Work it out
A type of LED fails at a constant rate, with a mean lifetime of 50,000 hours (exponential). What is the probability, as a decimal to three places, that one lasts more than 100,000 hours?
Step 9 of 14Chart
Share of LEDs still working (mean life 50,000 h)
The exponential survival curve e^(−t/50,000). It never hits zero: about 13.5% outlast twice the mean.
| Hours | Still working |
|---|---|
| 0 | 100% |
| 25k | 60.7% |
| 50k | 36.8% |
| 75k | 22.3% |
| 100k | 13.5% |
| 150k | 5% |
| 200k | 1.8% |
Step 10 of 14Note
Step 11 of 14Practice · Match the pairs
Match each quantity to its value for an exponential waiting time with rate λ = 0.5 per minute.
Tap an answer, then tap the place where it belongs (or drag it there).
- Mean wait
- Standard deviation
- Median wait
- P(wait > 4 minutes)
Step 12 of 14Compare
Uniform vs exponential at a glance
| Aspect | Uniform(a, b) | Exponential(λ) |
|---|---|---|
| Shape of density | Flat rectangle | Starts high, decays |
| Range | Only between a and b | Any time t ≥ 0 |
| Mean | (a + b)/2 | 1/λ |
| Memoryless? | No | Yes |
| Typical use | Arrival at a random moment | Waiting for a random event |
Step 13 of 14Practice · What would you do?
What would you do?
A customer has already been on hold for 8 minutes. Hold times at this call center are well described by an exponential distribution with a mean of 5 minutes. The customer says, "I've waited so long, I must be almost at the front." What is the expected additional wait?
Step 14 of 14Practice · Choose one
X is Uniform(0, 10). What is the variance of X?
Lesson complete!