Skip to content

Mathematics · Ch 14 — Probability Distributions

Cumulative Distribution Functions (c. d. f.)

14.4.2

Cumulative Distribution Functions (c. d. f.)

The cumulative distribution function of a continuous random variable extends the discrete definition in the natural way, replacing the sum by an integral. If XX is a continuous random variable with p.d.f. f(x)f(x) on (a,b)(a,b), its c.d.f. is F(x)=∫axf(t) dtF(x) = \int_a^x f(t)\,dt for a<x<ba<x<b. While a discrete c.d.f. is a step function, a continuous c.d.f. is always a non-decreasing continuous function.

Worked examples.

Example 3. For f(x)=3x2f(x)=3x^2, 0<x<10<x<1 (Example 1 of section 7.4.1), find F(x)F(x).

F(x)=∫0x3t2 dt=[t3]0x=x3F(x) = \int_0^x 3t^2\,dt = \left[t^3\right]_0^x = x^3.

Example 4. For f(x)=x3/4f(x)=x^3/4, 0<x<40<x<4, find F(x)F(x).

F(x)=∫0xt34 dt=[t416]0x=x416F(x) = \int_0^x \dfrac{t^3}{4}\,dt = \left[\dfrac{t^4}{16}\right]_0^x = \dfrac{x^4}{16}.

Example 5. XX has p.d.f. f(x)=x+1f(x) = x+1 for −1<x<0-1<x<0 and f(x)=1−xf(x) = 1-x for 0≤x<10\le x<1. Find the c.d.f. F(x)F(x).

The density is defined piecewise, so FF is built piecewise too. For −1<x≤0-1<x\le0: F(x)=∫−1x(t+1) dt=[t22+t]−1x=x22+x−(12−1)=x22+x+12=(x+1)22F(x) = \int_{-1}^x (t+1)\,dt = \left[\dfrac{t^2}{2}+t\right]_{-1}^x = \dfrac{x^2}{2}+x-\left(\dfrac12-1\right) = \dfrac{x^2}{2}+x+\dfrac12 = \dfrac{(x+1)^2}{2}; in particular F(0)=1/2F(0)=1/2. For 0<x<10<x<1: F(x)=F(0)+∫0x(1−t) dt=12+[t−t22]0x=12+x−x22F(x) = F(0) + \int_0^x (1-t)\,dt = \dfrac12 + \left[t-\dfrac{t^2}{2}\right]_0^x = \dfrac12+x-\dfrac{x^2}{2}. Collecting every piece: F(x)=0F(x)=0 for x≤−1x\le-1; F(x)=(x+1)22F(x)=\dfrac{(x+1)^2}{2} for −1<x≤0-1<x\le0; F(x)=12+x−x22F(x)=\dfrac12+x-\dfrac{x^2}{2} for 0<x<10<x<1; F(x)=1F(x)=1 for x≥1x\ge1. The way FF accumulates is illustrated in Fig. 7.1, which shows the triangular density ff itself: F(x)F(x) is the area under this triangle from t=−1t=-1 up to t=xt=x (the shaded region), growing from 00 at x=−1x=-1, reaching exactly 1/21/2 at x=0x=0 (half of the triangle's total area of 11), and climbing to 11 at x=1x=1 once the whole triangle is covered — matching the piecewise formula just derived. …

Figure 1Fig. 7.1 — the triangular probability density function f(t) (f=t+1 on (−1,0), f=1−t on (0,1)); the shaded area from t=−1 up to t=x is the cumulative distribution F(x)=P(X≤x).
Fig. 1 — Fig. 7.1 — the triangular probability density function f(t) (f=t+1 on (−1,0), f=1−t on (0,1)); the shaded area from t=−1 up to t=x is the cumulative distribution F(x)=P(X≤x).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. Fig. 7.1 sketches the graph of the piecewise cumulative distribution function derived in the worked example beside it, for a density that rises linearly on (-1, 0) and falls linearly on (0, 1): the c.d.f. is 0 for x <= -1, climbs along the curve (x+1)^2/2 for -1 < x <= 0 reaching 1/2 at x = 0, then continues along 1/2 + x - x^2/2 for 0 < x < 1 up to 1, and stays flat at 1 for x >= 1 — a single continuous, non-decreasing curve from 0 to 1 with no jumps, unlike a …