Uniform Distribution (Continuous)
The Continuous Uniform distribution is the simplest of all continuous distributions. It models a scenario where every single possible decimal value within a specific range has the exact same probability density.
Core Concepts
If a random variable follows a Continuous Uniform distribution, we write:
Where:
- is the minimum possible value.
- is the maximum possible value.
Probability Density Function (PDF)
Because every value is equally likely, the PDF is a completely flat horizontal line between and . Because the total area under the line must equal exactly , the height of the line is simply divided by the width of the interval.
Cumulative Distribution Function (CDF)
The CDF grows perfectly linearly (like a straight ramp) from to between and .
Key Metrics
- Expected Value (Mean): (Exactly in the middle)
- Variance:
Real-World Examples
- Random Number Generators: The foundational
Math.random()function in programming languages generates a continuous uniform distribution between and . - Waiting for a Train: If a train comes exactly every 20 minutes, and you arrive at the station at a completely random time, your wait time is uniformly distributed between and minutes.
Interactive Visualization
Use the sliders below to adjust the minimum () and maximum () boundaries. Notice how the total width changes, and in response, the height (density) perfectly scales up or down to ensure the total area of the pink rectangle remains exactly .
Continuous Uniform Distribution
A flat density on [a, b] (all values equally likely).
Test Your Knowledge
Example: Continuous Waiting Time
A subway train arrives precisely every 15 minutes. If you arrive at the station at a totally random time, your waiting time is uniformly distributed between 0 and 15. What is the probability you have to wait more than 10 minutes?
View Step-by-Step Solution
This is a Continuous Uniform Distribution .
The PDF is
We want , which is the area under the curve from 10 to 15:
There is a 33.3% chance you will wait more than 10 minutes.