Definition
The cumulative distribution function (CDF) of a random variable X is:
F(x)=P(X≤x)
It gives the probability that X is less than or equal to x.
Why CDFs?
The CDF has advantages over the PMF/PDF:
- It exists for all random variables (discrete, continuous, or mixed)
- It completely determines the distribution
- It can be estimated empirically from data
- Probabilities are computed by subtraction rather than summation
Properties
Every CDF F satisfies:
1. Non-decreasing
If a<b, then F(a)≤F(b).
Reason: As x increases, we accumulate more probability.
2. Limits
limx→−∞F(x)=0,limx→+∞F(x)=1
3. Right-Continuous
limy↓xF(y)=F(x)
For discrete RVs, this means the CDF jumps at the value, not before.
Bounds
0≤F(x)≤1 for all x
Computing Probabilities
Using the CDF:
P(a<X≤b)=F(b)−F(a)
P(X>x)=1−F(x)
P(X<x)=F(x−) (left-limit)
For discrete RVs with jump at a:
P(X=a)=F(a)−F(a−)
The size of the jump at a equals P(X=a).
Example: Fair Die
For a fair die, the possible outcomes are 1,2,3,4,5,6.
F(x)=⎩⎨⎧061626364651x<11≤x<22≤x<33≤x<44≤x<55≤x<6x≥6
This is a step function: flat between values, jumps at each possible outcome.

Example: Dice Sum
For sum of two dice, X∈{2,3,…,12}.
F(6)=P(X≤6)=361+2+3+4+5=3615=125
F(7)=F(6)+P(X=7)=3615+366=3621=127
Relation to PMF
For discrete random variables:
F(x)=∑y≤xp(y)
Conversely:
p(x)=F(x)−F(x−)=P(X=x)
The PMF is the “derivative” of the CDF (in discrete sense).
Example: Geometric CDF
For X∼Geo(p) (geometric distribution):
F(n)=P(X≤n)=1−(1−p)n
Derivation: The event X≤n is equivalent to “at least one success in first n trials”, which has probability 1−P(no successes)=1−(1−p)n.
Percentiles
The pth percentile (or quantile) is the value xp such that:
F(xp)=p
Or more carefully: inf{x:F(x)≥p}.
Example: The median is the 50th percentile: F(x0.5)=0.5.
Empirical CDF
Given data x1,x2,…,xn, the empirical CDF is:
F^(x)=n1⋅∣{i:xi≤x}∣
This is the proportion of observations at or below x.
By the Glivenko-Cantelli theorem, as n→∞, the empirical CDF converges uniformly to the true CDF.
Summary
| Property | Description |
|---|
| Definition | F(x)=P(X≤x) |
| Monotonicity | a<b⇒F(a)≤F(b) |
| Limits | F(−∞)=0, F(+∞)=1 |
| Jump size | P(X=x)=F(x)−F(x−) |
| Interval prob | P(a<X≤b)=F(b)−F(a) |