Exam PContinuousFree to read
Continuous uniform distribution
A value equally likely to fall anywhere in an interval.
Parameters and support
- lower endpoint —
- upper endpoint —
- Support
The formulas
- f(x)
- F(x)
- Mean
- Variance
- MGF
Memory hook. Variance is (range)²/12 — the continuous version uses the RANGE, the discrete version uses the COUNT. A U(0,1) has variance 1/12.
Where the moments come from
- .
- .
- .
- Only the WIDTH matters for the variance, which is why shifting the interval changes nothing.
Worked example
A loss is uniformly distributed on [0, 500]. Find the expected payment under a policy with a 100 ordinary deductible.
- The payment is , which is 0 below 100 and above it.
- .
- Substituting gives .
- .
Answer: 160
The mean, variance, CDF and moment generating function above are re-derived numerically from this distribution’s own density on every test run — summed over the support for a discrete distribution, integrated by quadrature for a continuous one — and compared with the closed forms printed here. A typo on this page fails the build.
Traps
- Using (b − a + 1)² − 1 over 12 — that is the DISCRETE uniform variance.
- Computing E[X] − d for an expected payment with a deductible; the payment is truncated at 0, so the answer is not the mean minus the deductible.
Related
Drill this: the Exam P question bank has original questions on this distribution, and the recall trainer builds its prompts from exactly the formulas above.