Overview
In a continuous uniform distribution, every value between a minimum and maximum is equally likely, like a random arrival time within an hour.
Enter a value x and the minimum a and maximum b.
Worked examples
| Inputs | Result |
|---|---|
| x34Minimum (a)10Maximum (b)60 | Uniform PDF: 0.02CDF: 0.48Mean: 35Variance: 208.33 |
Show 2 more examples
| x7.5Minimum (a)0Maximum (b)15 | Uniform PDF: 0.07CDF: 0.5Mean: 7.5Variance: 18.75 |
| x0.3Minimum (a)0Maximum (b)1 | Uniform PDF: 1CDF: 0.3Mean: 0.5Variance: 0.08 |
Uniform PDF by maximum
With the calculator's starting values, the uniform PDF is 0.02. The table shows how it changes with the maximum.
| Maximum (b) | Uniform PDF |
|---|---|
| 30 | 0 |
| 40 | 0.03 |
| 50 | 0.03 |
| 60starting value | 0.02 |
| 70 | 0.02 |
| 80 | 0.01 |
| 90 | 0.01 |
Other inputs: x: 34 · Minimum: 10 a. Change them in the calculator above for your own numbers.
How it works
The PDF is constant, 1 ÷ (b − a), inside the range and 0 outside it. The CDF, the chance of a value up to x, rises in a straight line from 0 at a to 1 at b. The mean is the midpoint, and the variance is (b − a)² ÷ 12.
The formula
| a, b | Minimum and maximum |
Practical tips
- With a range of 10 to 60, P(X ≤ 34) is 0.48, and the mean is 35.
- A bus that comes every 15 minutes, with your arrival random, means an average wait of 7.5 minutes.
- The chance of any single exact value is 0. Only ranges have probability.
Frequently asked questions
What's the chance of a value between two points?
Their distance apart divided by b − a.
What's the standard deviation?
(b − a) ÷ √12, about 0.289 × the range.
Is a die roll uniform?
Yes, but it's discrete, with whole numbers only. This calculator is for continuous values.