Explanation
The continuous uniform distribution assigns exactly the same probability density to every value within the interval [a, b] and zero probability outside of it. It is the model that expresses total ignorance about which value is more likely within that range: if you only know that something will occur between a and b but have no reason to prefer any particular value, the uniform distribution is the natural choice. It is used as the base distribution in random number generators, in Monte Carlo simulation (where it is transformed via the inverse CDF to obtain other distributions), and in robust optimization models. Its mean is (a + b) / 2, its variance is (b − a)² / 12 and its cumulative distribution function is linear: F(x) = (x − a) / (b − a).
Formula
\( f(x)=\frac{1}{b-a},\quad a\le x\le b \)
Parameters
- a: lower bound of the interval. It can be any real number.
- b: upper bound of the interval. It must satisfy b > a.
- x: value at which the PDF or CDF is evaluated, within the interval [a, b].
Worked example
Situation: The temperature of a server room is controlled so that it fluctuates uniformly between \(a = 2\)°C and \(b = 10\)°C. Any temperature within that range is equally likely. Let \(X \sim \text{Uniform}(2, 10)\).
Question 1: What is the probability that the temperature is between 4°C and 7°C, that is, \(P(4 \leq X \leq 7)\)?
Solution: For the uniform distribution, the probability of an interval is proportional to its relative length: \[ P(4 \leq X \leq 7) = \frac{7 - 4}{10 - 2} = \frac{3}{8} = 0.375 \] There is a 37.5% probability that the temperature falls within that range.
Question 2: What is the 75th percentile? That is, what temperature \(x\) satisfies \(P(X \leq x) = 0.75\)?
Solution: We use the closed-form quantile formula of the uniform distribution: \[ x = a + p \cdot (b - a) = 2 + 0.75 \times (10 - 2) = 2 + 0.75 \times 8 = 2 + 6 = 8 \text{ °C} \] The 75th percentile is 8°C: 75% of the time the temperature does not exceed 8°C.
Interpretation: The mean of the distribution is \((a + b)/2 = 6\)°C. The uniform distribution is the distribution of maximum uncertainty within a fixed interval: all values are equally plausible, with no bias toward the center or the extremes.