Click or press any key to close help Help screen describing the interactive elements

Suppose we select a point X at random from an interval [0, 1], where the probability that a point is in any subinterval of [0, 1] only depends on the length of the subinterval. X has a standard uniform distribution, with a constant probability density of 1 over the interval [0, 1] and zero everywhere else.

Probability Density Function

f ( x ) = 1
F ( x ) = { 0 if x < 0 x if 0 x < 1 1 if x 1

Support

0 x 1

Mean

Variance

Example
A number chosen at random and with equal probability from anywhere in the interval [0, 1] has a standard uniform distribution.
You arrive at a bus stop for a bus that runs every hour, but don't know when the previous bus left. The time spent waiting for the next bus has a standard uniform distribution.
A spinner is spun randomly until it comes to rest. The position of the spinner as a fraction of a full circle has a standard uniform distribution.

X ∼ Standard Uniform

Chart of the standard uniform distribution Chart area for displaying the standard uniform pdf, cdf, and simulation

E(X) = , Var(X) =

The standard uniform distribution is central to random number generation. If U has a standard uniform distribution and X has cdf FX(x), then FX−1(U) will have the distribution FX. In this way, we can generate a random sample from any distribution for which FX−1 is known, given a standard uniform random sample.

The standard uniform distribution is central to random number generation. If U has a standard uniform distribution and X has cdf FX(x), then FX−1(U) will have the distribution FX. In this way, we can generate a random sample from any distribution for which FX−1 is known, given a standard uniform random sample.

The illustration above shows a point X chosen randomly and with uniform probability from the interval [0, 1]. If the probability that X lies in any subinterval I equals the length of I, then X is a standard uniform random variable.

The simulation above shows a point X chosen randomly and with uniform probability from the interval [0, 1]. The histogram accumulates the results of each simulation.

Y = max Xᵢ ∼ Beta(n, 1) min Xᵢ ∼ Beta(1, n) X(j) ∼ Beta(j, n − j + 1) Xⁿ ∼ Beta(1/n, 1) −βlog(1 − X) ∼ Exponential(β) log(X₁/X₂) ∼ Laplace(0, 1) tan(π(X − ½)) ∼ Standard Cauchy log(X/(1 − X)) ∼ Standard Logistic 1/X ∼ Standard Pareto a + (b − a)X ∼ Uniform(a, b)

Chart of the related distribution Chart area for displaying the related pdf, cdf, and simulation

E(Y) = , Var(Y) =