Uniform distribution

Uniform distribution: use lower bound, upper bound, observation. Review the formula, worked example and calculation steps.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
CDF = clamp[(x−a)/(b−a), 0, 1]

Variables & units

Lower bound
Numeric value · minimum -1000000000000, maximum 1000000000000
Upper bound
Numeric value · minimum -1000000000000, maximum 1000000000000
Observation
Numeric value · minimum -1000000000000, maximum 1000000000000

Worked example

For U(0,10), P(X≤4)=0.4.

Assumptions

Continuous uniform distribution with constant density on the stated interval.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Practice with an example

Use the default input values to find the answer. The reset icon restores those values.

Calculated on your device. Your latest 100 calculations stay in this browser.