Continuous Distributions: the PDF and the CDF
For continuous data, probability is the area under a curve — meet the density function and its running-total partner, the CDF.
From bars to a smooth curve
Roll two dice and you can list every outcome and give each one its own chance. But height, waiting time, or temperature can land on any value in a range — 1.5 cm, 1.500001 cm, anything in between. There are infinitely many possibilities, so we can no longer hand each exact value its own slice of probability.
Instead we describe a continuous variable with a smooth curve called a probability density function, or PDF, written \( f(x) \). The trick to reading it is the whole lesson: for continuous data, probability is area under the curve, not height.
Why the chance of an exact value is zero
Ask for the probability that a person is exactly 180 cm tall — not 180.0001, not 179.9999, but 180.000... forever. That interval has zero width, so the area above it is zero. For any continuous variable and any single value \( c \), we get \( P(X = c) = 0 \).
This has a handy side effect. Because the endpoints carry no area, it makes no difference whether you write \( \le \) or \( < \): for continuous variables \( P(X \le b) = P(X < b) \).
The running total: the CDF
Working out a fresh area for every interval would be tedious, so statisticians keep a running total: start at the far left and accumulate the area as you sweep right. That running total is the cumulative distribution function, or CDF, written \( F(x) \).
\( F(x) \) answers one question: what is the probability that \( X \) is at most \( x \)? It starts at 0 on the far left, only ever climbs, and levels off at 1 on the far right — it can never dip, because area is never negative.
Try it: shade the area, watch the total
The tool below draws a bell-shaped density. Drag the two bounds a and b to pick an interval; the solid shaded region is \( P(a < X < b) \), found as the true area under that curve. The faint shading stretching off to the left is the CDF \( F(b) = P(X \le b) \) — the running total of area up to b.
Watch two things as you drag. Pull a and b together and the shaded probability shrinks toward 0, even where the curve is tall — a hint of why a single point carries no probability. And the taller the curve over your interval, the faster area piles up there.
- An interval probability is a difference of CDF values: \( P(-1 \le X \le 1) = F(1) - F(-1) \).
- Substitute the given running totals: \( 0.841 - 0.159 = 0.682 \).
- For the exact value, remember a single point has zero width, so its area is zero: \( P(X = 1) = 0 \).
Check your understanding
- For continuous variables, probability is area under the density curve (the PDF) — the height alone is not a probability.
- The total area under any PDF is 1, and P(X = c) = 0 for every single exact value c.
- Because endpoints carry no area, ≤ and < give the same probability for continuous variables.
- The CDF F(x) = P(X ≤ x) is the running total of area to the left of x; it climbs from 0 to 1 and never decreases.
- Any interval probability is a subtraction of CDF values: P(a ≤ X ≤ b) = F(b) − F(a).