Skip to content

Cumulative Distribution Function

Definition

For a real-valued random variable XX, its cumulative distribution function is

FX(x)=P(X≤x),x∈R.F_X(x)=\mathbb{P}(X\le x),\qquad x\in\mathbb{R}.

It is nondecreasing and right-continuous, with lim⁡x→−∞FX(x)=0\lim_{x\to-\infty}F_X(x)=0 and lim⁡x→∞FX(x)=1\lim_{x\to\infty}F_X(x)=1. These limits describe the notation FX(−∞)=0F_X(-\infty)=0 and FX(∞)=1F_X(\infty)=1.


Interpretation

The CDF answers the question "what is the probability that XX is at most xx?" for every threshold xx at once. It collects probability from the left and describes the distribution of any real-valued random variable, whether its values form a list or a whole range.

Two CDFs: a staircase for the Binomial(3, 1/2) distribution with jumps of 1/8, 3/8, 3/8 and 1/8, and a smooth S-shaped curve for the standard normal distribution with its value at 1 marked.

The left panel is a staircase for X∼Bin⁡(3,12)X\sim\operatorname{Bin}(3,\tfrac{1}{2}), the number of heads in three fair tosses. FXF_X is flat between the possible values 0,1,2,30,1,2,3 and jumps there by 18,38,38,18\tfrac{1}{8},\tfrac{3}{8},\tfrac{3}{8},\tfrac{1}{8}, reaching the levels 18,12,78,1\tfrac{1}{8},\tfrac{1}{2},\tfrac{7}{8},1; each jump is the probability of that value, so P(X=1)=38\mathbb{P}(X=1)=\tfrac{3}{8}. The right panel is the CDF of the standard normal distribution, which rises without any jump and has FX(1)≈0.84F_X(1)\approx0.84.

Move xx: FX(x)F_X(x) collects all probability at or below xx. Masses give a staircase, a density a smooth curve, and the mixed example both a jump and a smooth rise.

Each property in the Definition has a probabilistic reason. FXF_X is nondecreasing because {X≤x}⊆{X≤y}\{X\le x\}\subseteq\{X\le y\} for x<yx<y. The limits 00 and 11 hold because {X≤x}\{X\le x\} shrinks to the impossible event as x→−∞x\to-\infty and grows to the whole sample space as x→∞x\to\infty. Right-continuity holds because "≤\le" includes the threshold itself, so at a jump the value is the top of the step: in the left panel FX(1)=12F_X(1)=\tfrac{1}{2}, not 18\tfrac{1}{8}.

A common slip is to ignore the difference between ≤\le and <<. In the example P(X<1)=18\mathbb{P}(X<1)=\tfrac{1}{8} while P(X≤1)=12\mathbb{P}(X\le1)=\tfrac{1}{2}; for discrete variables the endpoints matter, hence the half-open interval a<X≤ba<X\le b in the Key Results. For a discrete random variable, FX(x)F_X(x) is the sum of the PMF pX(t)p_X(t) over all values t≤xt\le x.


Key Results

  • P(a<X≤b)=FX(b)−FX(a)\mathbb{P}(a<X\le b)=F_X(b)-F_X(a).
  • P(X=x)=FX(x)−FX(x−)\mathbb{P}(X=x)=F_X(x)-F_X(x-), where FX(x−)F_X(x-) is the left limit.

Examples

  • For Bern⁡(0.3)\operatorname{Bern}(0.3), the CDF is 00 for x<0x<0, 0.70.7 for 0≤x<10\le x<1, and 11 for x≥1x\ge1.
  • For Unif⁡(0,1)\operatorname{Unif}(0,1), FX(0.4)=0.4F_X(0.4)=0.4 and P(0.2<X≤0.4)=0.2\mathbb{P}(0.2<X\le0.4)=0.2.

Prerequisites

Sources

Aliases: CDF, distribution function, cumulative distribution, c.d.f. Symbols: element of, infinity, real numbers, subset

Last updated: 20 October 2026 03:02