A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Cumulative Distribution Functions

College Depth 89 in the knowledge graph ☐ I know this ☆ Set as goal
1,600topics build on this
410prerequisites beneath it
See this on the map →
Probability Density FunctionsProbability Mass Functions→→Moment Generating Functions
cdf probability distributions

Core Idea

The cumulative distribution function (CDF), F(x) = P(X ≤ x), gives the probability that a random variable is at most x. The CDF is always non-decreasing, approaches 0 as x → -∞ and 1 as x → +∞. For continuous variables, the PDF is the derivative of the CDF.

How It's Best Learned

Sketch CDFs and relate them to PMFs/PDFs. Note that CDF is always increasing. Calculate probabilities using the CDF: P(a < X ≤ b) = F(b) - F(a). Compare the CDF to histograms of empirical data.

Common Misconceptions

Confusing CDF with PDF (CDF is cumulative, always increasing). Thinking F(x) = f(x) for continuous variables (F'(x) = f(x)). Not recognizing that CDF works for both discrete and continuous variables.

Explainer

The cumulative distribution function unifies discrete and continuous random variables under one umbrella. You already know the PMF, which assigns probabilities to individual values, and the PDF, which gives probability density. The CDF F(x) = P(X ≤ x) works for both: it accumulates all the probability to the left of and including x. Think of it as a running total — starting at 0 on the far left, climbing as x increases, and reaching 1 on the far right.

For a discrete variable — say a fair die with values 1 through 6 — F(3) = P(X ≤ 3) = 1/2, the sum of PMF values at x = 1, 2, 3. The CDF of a discrete variable is a staircase function: flat between the support values, with an upward jump at each support point. The jump height at each point equals exactly the PMF value there — the probability of that specific outcome. For a continuous variable — say a uniform distribution on [0, 1] — F(x) = x for 0 ≤ x ≤ 1, a smooth ramp. The relationship F'(x) = f(x) recovers the PDF as the derivative of the CDF.

The CDF is the right tool for computing interval probabilities: P(a < X ≤ b) = F(b) − F(a) for any distribution, discrete or continuous. The careful use of strict vs. non-strict inequalities matters for discrete distributions. P(X < b) = F(b⁻) (the left-hand limit of F at b), while P(X ≤ b) = F(b). The difference is P(X = b), the PMF value at b. For continuous distributions, this distinction disappears since P(X = b) = 0 for any single point — the CDF has no jumps, and left and right limits agree everywhere.

The CDF also enables the quantile function (the inverse CDF), which builds toward your next topic. The p-th quantile is the smallest x with F(x) ≥ p — for example, the median is the 0.5 quantile. For continuous, strictly increasing CDFs this is simply F⁻¹(p). This inverse relationship powers inverse transform sampling: to generate a random sample from any distribution with known CDF, generate U ~ Uniform(0,1) and return F⁻¹(U). The resulting variable has the correct distribution, since P(F⁻¹(U) ≤ x) = P(U ≤ F(x)) = F(x). The CDF thus sits at the center of probability theory — it characterizes the distribution, computes probabilities, connects discrete and continuous cases, and generates random samples.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Cumulative Distribution Functions

Longest path: 90 steps · 410 total prerequisite topics

Prerequisites (2)

Leads To (1)