Advertisement

Uniform distribution calculator

Assign equal density throughout a bounded interval. Wider subintervals receive proportionally more probability.

Calculator

Value
1.000000
Density or probability mass
0.100000
P(X ≤ x)
10.000000%
P(X > x)
90.000000%
Selected probability
10.000000%
Mean
5.000000
Variance
8.333333
Standard deviation
2.886751

Advertisement

How this calculator works

All equal-width intervals within the support have equal probability. Density is the reciprocal of the support width, and cumulative probability increases linearly. Interval bounds outside the support contribute no extra probability. Equal endpoints are excluded because they describe a point mass rather than a continuous density.

Formula

f(x) = 1/(b-a) on [a,b]; F(x) = (x-a)/(b-a) within the support; E[X] = (a+b)/2; Var[X] = (b-a)²/12.

Worked example

For [2, 8], density is 1/6, mean is 5 and variance is 3. The interval [3, 5] contains probability 2/6 = 1/3.

Advertisement

Frequently asked questions

Does every exact value have the same probability?

Every exact value has probability zero. Equal density means equal-width intervals have equal probability.

Are endpoints included?

Including or excluding a single endpoint makes no difference to continuous probability.

Can bounds be negative?

Yes, provided the maximum is greater than the minimum.

Sources

Advertisement