Skip to content
Part IA Easter Term

Cumulative Distribution Functions

Definition

The cumulative distribution function (CDF) of a random variable XX is:

F(x)=P(Xx)F(x) = P(X \leq x)

It gives the probability that XX is less than or equal to xx.

Why CDFs?

The CDF has advantages over the PMF/PDF:

  1. It exists for all random variables (discrete, continuous, or mixed)
  2. It completely determines the distribution
  3. It can be estimated empirically from data
  4. Probabilities are computed by subtraction rather than summation

Properties

Every CDF FF satisfies:

1. Non-decreasing

If a<ba < b, then F(a)F(b)F(a) \leq F(b).

Reason: As xx increases, we accumulate more probability.

2. Limits

limxF(x)=0,limx+F(x)=1\lim_{x \to -\infty} F(x) = 0, \quad \lim_{x \to +\infty} F(x) = 1

3. Right-Continuous

limyxF(y)=F(x)\lim_{y \downarrow x} F(y) = F(x)

For discrete RVs, this means the CDF jumps at the value, not before.

Bounds

0F(x)1 for all x0 \leq F(x) \leq 1 \text{ for all } x

Computing Probabilities

Using the CDF:

P(a<Xb)=F(b)F(a)P(a < X \leq b) = F(b) - F(a)

P(X>x)=1F(x)P(X > x) = 1 - F(x)

P(X<x)=F(x) (left-limit)P(X < x) = F(x^-) \text{ (left-limit)}

For discrete RVs with jump at aa:

P(X=a)=F(a)F(a)P(X = a) = F(a) - F(a^-)

The size of the jump at aa equals P(X=a)P(X = a).

Example: Fair Die

For a fair die, the possible outcomes are 1,2,3,4,5,6\\{1, 2, 3, 4, 5, 6\\}.

F(x)={0x<1161x<2262x<3363x<4464x<5565x<61x6F(x) = \begin{cases} 0 & x < 1 \\ \frac{1}{6} & 1 \leq x < 2 \\ \frac{2}{6} & 2 \leq x < 3 \\ \frac{3}{6} & 3 \leq x < 4 \\ \frac{4}{6} & 4 \leq x < 5 \\ \frac{5}{6} & 5 \leq x < 6 \\ 1 & x \geq 6 \end{cases}

This is a step function: flat between values, jumps at each possible outcome.

CDF for fair die

Example: Dice Sum

For sum of two dice, X{2,3,,12}X \in \{2, 3, \ldots, 12\}.

F(6)=P(X6)=1+2+3+4+536=1536=512F(6) = P(X \leq 6) = \frac{1+2+3+4+5}{36} = \frac{15}{36} = \frac{5}{12}

F(7)=F(6)+P(X=7)=1536+636=2136=712F(7) = F(6) + P(X = 7) = \frac{15}{36} + \frac{6}{36} = \frac{21}{36} = \frac{7}{12}

Relation to PMF

For discrete random variables:

F(x)=yxp(y)F(x) = \sum_{y \leq x} p(y)

Conversely:

p(x)=F(x)F(x)=P(X=x)p(x) = F(x) - F(x^-) = P(X = x)

The PMF is the “derivative” of the CDF (in discrete sense).

Example: Geometric CDF

For XGeo(p)X \sim \text{Geo}(p) (geometric distribution):

F(n)=P(Xn)=1(1p)nF(n) = P(X \leq n) = 1 - (1-p)^n

Derivation: The event XnX \leq n is equivalent to “at least one success in first nn trials”, which has probability 1P(no successes)=1(1p)n1 - P(\text{no successes}) = 1 - (1-p)^n.

Percentiles

The ppth percentile (or quantile) is the value xpx_p such that:

F(xp)=pF(x_p) = p

Or more carefully: inf{x:F(x)p}\inf\{x : F(x) \geq p\}.

Example: The median is the 50th percentile: F(x0.5)=0.5F(x_{0.5}) = 0.5.

Empirical CDF

Given data x1,x2,,xnx_1, x_2, \ldots, x_n, the empirical CDF is:

F^(x)=1n{i:xix}\hat{F}(x) = \frac{1}{n} \cdot |\{i : x_i \leq x\}|

This is the proportion of observations at or below xx.

By the Glivenko-Cantelli theorem, as nn \to \infty, the empirical CDF converges uniformly to the true CDF.

Summary

PropertyDescription
DefinitionF(x)=P(Xx)F(x) = P(X \leq x)
Monotonicitya<bF(a)F(b)a < b \Rightarrow F(a) \leq F(b)
LimitsF()=0F(-\infty) = 0, F(+)=1F(+\infty) = 1
Jump sizeP(X=x)=F(x)F(x)P(X = x) = F(x) - F(x^-)
Interval probP(a<Xb)=F(b)F(a)P(a < X \leq b) = F(b) - F(a)