PDF and CDF of the Uniform Distribution
What you'll learn: You'll derive the probability density and cumulative distribution functions for uniform distributions and learn how to work with them.
The Core Idea
A continuous uniform distribution spreads probability evenly across an interval [a, b]. Since every outcome in this range is equally likely, the probability density function (PDF) must be constant—a flat horizontal line that makes the total area under the curve equal 1.
The PDF Formula
For a uniform distribution on [a, b]:
Why this formula? The PDF must integrate to 1. Since we're spreading probability uniformly over length (b - a), the height must be 1/(b - a) so that height × width = 1/(b - a) × (b - a) = 1.
The CDF Formula
The cumulative distribution function (CDF) gives the probability that X ≤ x:
Derivation: For a ≤ x ≤ b, integrate the PDF from a to x:
This is the area of a rectangle from a to x, which grows linearly from 0 to 1.
Working with These Functions
- To find P(c ≤ X ≤ d): Use F(d) - F(c)
- To verify the PDF: Check ∫f(x)dx = 1 over [a,b]
- The CDF is a straight line connecting (a, 0) to (b, 1)
Key Takeaway: The uniform distribution has constant PDF = 1/(b-a) and linear CDF = (x-a)/(b-a), reflecting equal probability across the entire interval.