probability distributions
Uniform Distribution
You should know: continuous probability distributions
Overview
The continuous uniform distribution on an interval [a,b] assigns equal probability density to every point in the interval, meaning any subinterval of a given length is equally likely regardless of where it sits within [a,b]. Its probability density function is f(x) = 1/(b-a) for a ≤ x ≤ b and 0 elsewhere, reflecting 'no value is more likely than any other' within the range. The mean is the midpoint (a+b)/2, and the variance is (b-a)²/12. The uniform distribution is fundamental in simulation, since most random number generators produce values that approximate Uniform(0,1), which can then be transformed into samples from other distributions.
Intuition
Picture spinning an idealized fair wheel marked continuously from a to b — no notch is more likely to be landed on than any other. The density is perfectly flat (a horizontal line) across the interval, so the probability of landing in any subinterval depends ONLY on its length, not its position. A 2-unit-wide slice near the left edge is exactly as likely as a 2-unit-wide slice near the right edge or the middle. This 'flatness' is what makes the uniform distribution the natural building block for computer-generated randomness — it's the blank canvas from which other distributions are constructed.
Formal Definition
For a continuous random variable X uniformly distributed on [a,b]:
Worked Examples
Apply the mean formula.
Apply the variance formula.
Answer: E[X] = 6, Var(X) = 16/3 ≈ 5.33.
Practice Problems
X is uniform on [0,1] (the standard uniform distribution). Find E[X] and Var(X).
X is uniform on [10, 30]. Find P(X > 25).
A subway train arrives every 12 minutes, and your arrival time is uniform over that 12-minute window (i.e., your wait time is uniform on [0,12]). Find your expected wait time and the probability you wait less than 3 minutes.
Quiz
Summary
- The uniform distribution on [a,b] has constant density f(x) = 1/(b-a), meaning every point is equally likely.
- Mean is the midpoint (a+b)/2; variance is (b-a)²/12.
- It underlies computer random number generation, since Uniform(0,1) samples can be transformed into samples from other distributions.
Mathematics