A continuous uniform distribution gives every value in a fixed interval the same density. Its PDF is 1/(b − a) from a to b and zero outside, where the interval’s length sets the curve’s height. That flat shape also makes the total area under the curve equal one.

Multiple Choice

What is the probability density function (PDF) of the uniform distribution defined as?

The probability density function (PDF) of a uniform distribution is defined in a very specific way. For a continuous uniform distribution defined on the interval [a, b], the PDF is constant within that interval and zero outside of it. The formula for the PDF is given by: f(x) = 1 / (b - a) for x in [a, b]. This means that the height of the density function is equal to the reciprocal of the length of the interval (b - a), ensuring that the total area under the PDF over the interval [a, b] sums to 1, which is a fundamental property of probability distributions. Since the uniform distribution assigns equal probability to all outcomes within the interval, the resulting function is flat, confirming that the correct answer outlines this characteristic accurately. The formula reflects the uniform distribution's principles, representing the equal likelihood of all values in the given range.

A uniform distribution is the probability model for a quantity that is spread evenly across a fixed interval. If the interval runs from (a) to (b), its probability density function is

[

f(x)=

\begin{cases}

\dfrac{1}{b-a}, & a\leq x\leq b,\[6pt]

0, & \text{otherwise.}

\end{cases}

]

The height is the reciprocal of the interval’s length. That simple fraction does important work: it makes the total area under the density curve equal to 1, as every probability distribution must.

Why the graph is flat

Picture a flat stretch of land between two markers. No part of the stretch is given more weight than another. That’s the basic idea behind a continuous uniform distribution: values within the interval have the same density.

Suppose a random quantity can fall anywhere between 2 and 8. The interval has length (8-2=6), so the density is (1/6) across that span and zero elsewhere. On a graph, this looks like a rectangle: its width is 6 and its height is (1/6).

The area of that rectangle is

[

6\cdot\frac{1}{6}=1.

]

That area represents the full probability of the quantity landing somewhere in the allowed interval. If the rectangle were taller, its total area would exceed 1; if it were shorter, the area would fall below 1. The interval’s length and the density’s height balance each other.

More generally, the area is

[

(b-a)\cdot\frac{1}{b-a}=1.

]

So the formula isn’t an arbitrary rule. It follows from the shape of the model and a basic requirement of probability.

Density isn’t the same as probability

Here’s a small but important detail: for a continuous random variable, the density at a single point is not the probability of that exact point. Instead, probabilities come from areas under the density curve.

For a uniform variable (X) on ([a,b]), the chance that (X) falls between (c) and (d), where (a\leq c\leq d\leq b), is

[

P(c\leq X\leq d)=\frac{d-c}{b-a}.

]

In plain terms, divide the length of the portion you care about by the length of the whole interval. If the quantity is uniform between 2 and 8, the probability it lands between 3 and 5 is

[

\frac{5-3}{8-2}=\frac{2}{6}=\frac{1}{3}.

]

The same result comes from calculating the rectangle’s area over that smaller range: width 2 times height (1/6).

A single exact value, such as (X=4), has probability 0 in a continuous model. That may sound odd at first. Yet it doesn’t mean 4 is impossible; it means a single point has no width, so the area above it is zero. A narrow interval around 4 can still have a positive probability.

What “equally likely” really means

People often say that a uniform distribution makes all values equally likely. That’s a useful shortcut, but it needs a little care. For a continuous variable, it’s equal-width intervals that have equal probabilities—not individual points.

For example, on ([2,8]), the interval from 2 to 3 has the same probability as the interval from 6 to 7. Each spans one unit, so each has probability (1/6). But the interval from 2 to 4 has twice that probability because it is twice as wide.

This distinction is useful whenever a model describes a measurement, a waiting time, or a location. Uniformity means there is no preference for one part of the range over another, provided the parts being compared have the same width.

The cumulative distribution tells the same story

The cumulative distribution function, or CDF, gives the probability that (X) is at most a given value. For a uniform variable on ([a,b]), it is

[

F(x)=

\begin{cases}

0, & x<a,\[4pt]

\dfrac{x-a}{b-a}, & a\leq x\leq b,\[6pt]

1, & x>b.

\end{cases}

]

Within the interval, the CDF rises in a straight line. At (a), it starts at 0; at (b), it reaches 1. The slope of that line is (1/(b-a))—the same value as the PDF’s height.

The CDF also makes interval probabilities easy to find. Since (P(c<X\leq d)=F(d)-F(c)), subtracting the two cumulative probabilities gives the same length-over-total-length result. It’s two views of one model: the PDF shows how probability is spread locally, while the CDF tracks how much has accumulated so far.

A few useful facts about the model

For (X) uniform on ([a,b]), the mean is the midpoint:

[

E[X]=\frac{a+b}{2}.

]

This makes intuitive sense: the distribution is balanced around the center. Its variance is

[

\operatorname{Var}(X)=\frac{(b-a)^2}{12}.

]

The wider the interval, the more spread out the values can be. Notice that variance depends on the interval’s length, while the mean depends on its location and endpoints.

The uniform model also has a handy connection to computer simulation. Many software tools can generate a random value evenly across an interval. A value generated on ([0,1]) can be shifted and stretched to another interval using

[

X=a+(b-a)U,

]

where (U) is uniform on ([0,1]). If (U) is 0.3 and the target interval is ([10,20]), then (X=10+10(0.3)=13). The scale changes, but the even spread remains.

Where a uniform model can help

Uniform distributions appear when a value is reasonably modeled as falling anywhere within known limits without favoring one part of the range. For instance, a simplified model might treat a random arrival time within a fixed window as uniform, or represent an uncertain measurement that is known only to lie between two bounds.

In actuarial work, the model can be useful as a first approximation when information is limited. It offers a clear way to represent uncertainty and calculate expected values or interval probabilities. But a flat density is an assumption, not a universal fact. Real claim sizes, lifetimes, and payment delays often cluster in some ranges more than others. A model should reflect the behavior of the quantity, not merely make the calculations tidy.

That’s the central idea behind the PDF (1/(b-a)): the density stays constant inside the interval, and its height adjusts to the interval’s width. A long interval needs a low density; a short interval needs a higher one. Together, they form a rectangle with total area 1—and a compact, useful picture of even uncertainty.