03 · UNDERSTAND THE METHOD
How the continuous uniform probability calculator works
A continuous uniform distribution assigns constant probability density over a finite interval. This calculator determines how much of an event interval overlaps the distribution’s support, then divides that overlap length by the complete support length. Event bounds may extend outside the support; those portions contribute no probability. The method makes clear that probability depends on interval width, rather than on one endpoint value alone.
The formula and its variables
- a,b
- Strictly ordered distribution support bounds.
- l,h
- Ordered event interval bounds.
The calculation, step by step
- Enter support bounds with a smaller than b. Then enter the event lower and upper bounds in their correct order.
- Clip the event interval to the distribution support. If the clipped upper endpoint is below the lower one, use zero overlap length.
- Divide overlap length by b−a. Read the resulting event share and complementary probability.
A worked example
For a distribution on 0 through 10 and event 2 through 6, overlap length is four and total length is ten. The probability is 0.4, or 40%. An event from −5 through 2 overlaps only zero through two, giving 20%. An event covering the entire support has probability one even if its bounds extend farther.
| Distribution lower bound a | 0 |
|---|---|
| Distribution upper bound b | 10 |
| Event lower bound | 2 |
| Event upper bound | 6 |
| Uniform interval probability | 40% |
How to read the result and visual
Uniformity means equal-length subintervals have equal probabilities, not that every exact real value has a positive probability. A point interval has length zero and therefore probability zero. The density is 1/(b−a), while the integrated probability is dimensionless. Clipping prevents probability outside the possible value range from being counted.
Assumptions, rounding, and limitations
The support must have positive length, and both event bounds must be ordered. A continuous uniform model is different from a discrete uniform integer draw. The calculator does not infer a distribution from minimum and maximum observations or test uniformity. Unequal-density processes require another probability model.
Frequently asked questions
What happens when the event lies outside the support?
Its overlap is zero and the event probability is zero.
Does an exact endpoint have positive probability?
No. Individual points have zero probability in a continuous distribution.