The Continuous Uniform Distribution

This lesson introduces the continuous uniform distribution on an interval [a,b][a,b]. We define its probability density function, compute probabilities of subintervals, derive formulas for the mean and variance, and solve for thresholds given a target probability.

Step 1 of 119%

Tutorial

The Uniform Density

A continuous random variable XX has a continuous uniform distribution on the interval [a,b][a,b] when it is equally likely to take any value in that interval. We write XU(a,b)X \sim U(a,b).

The probability density function (PDF) is constant on [a,b][a,b] and zero elsewhere:

f(x)={1baif axb0otherwisef(x) = \begin{cases} \dfrac{1}{b-a} & \text{if } a \le x \le b \\[3pt] 0 & \text{otherwise} \end{cases}

The height 1ba\dfrac{1}{b-a} is exactly what's needed so that the total area under the PDF equals 11.

For any subinterval [c,d][a,b][c,d] \subseteq [a,b], the probability is the area of a rectangle:

P(cXd)=cd1badx=dcba.P(c \le X \le d) = \int_c^d \frac{1}{b-a}\, dx = \frac{d-c}{b-a}.

Quick example. If XU(0,10)X \sim U(0,10), then f(x)=110f(x) = \dfrac{1}{10} on [0,10][0,10] and

P(2X5)=52100=310.P(2 \le X \le 5) = \frac{5-2}{10-0} = \frac{3}{10}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle