A cumulative distribution function answers a single running-total question: "What is the chance my random number lands at or below this point?" As you slide a marker from the far left to the far right, the CDF is the growing tally of probability you have swept past — starting at 0, ending at 1, and never going backwards.
Before you can trust that one sentence, you need the vocabulary hidden inside it. This page builds every symbol the parent CDF note uses, from absolute zero, in the order that each one depends on the last. Nothing is used before it is drawn.
An event is any yes/no question about the result of a chance experiment — a collection of outcomes we can point to and ask "did it happen?" For a die roll, "the result is even" is an event (it groups the outcomes 2 , 4 , 6 ); "the result is 3 " is an event too.
The picture. Imagine a bar completely filled with paint. The paint is all the certainty in the world — it sums to 1 . Any event grabs a slice of that bar. A big slice = likely; a thin sliver = unlikely.
Why the topic needs it. Everything on this page is ultimately a number produced by P ( … ) . The running total we are chasing will just be a particular probability, so we must first be comfortable that every P lives on a [ 0 , 1 ] ruler. We cannot yet write the CDF's defining formula — it needs the symbols built in sections 2 and 3 first.
Definition Random variable
A random variable , written with a capital letter like X , is a quantity whose value is not fixed — it is chosen by some chance process. You don't know its value until the experiment happens.
The picture. Think of X as a labelled dial that a random spin will land somewhere on. Rolling a die: X is the face that shows up. Measuring where a bullet lands: X is the distance in metres.
X vs little x
This trips up everyone, so pin it now:
Big X = the whole random machine ("the die roll", before you look).
Little x = a specific number you plug in ("the value 3").
We will soon build a question of the form "did X land at or below x ?" — but that needs the comparison symbol of section 3, so hold on.
See Random Variables for the full treatment.
Big X versus little x Big X is the random machine (its value unknown until the experiment); little x is a fixed number you plug in.
Definition Less-than-or-equal
a ≤ b means "a is smaller than b , or exactly equal to it." The little bar under < is the word "or equal."
Now — with P , X , x and ≤ all defined — we can finally read the event X ≤ x : the random outcome X turned out to be less than or equal to the fixed number x .
The picture. On a number line, X ≤ x means X landed anywhere in the shaded region to the left of (and including) the marker x .
X ≤ x in plain wordsthe random outcome X turned out to be less than or equal to the fixed number x .
Every ingredient is now on the table: a probability P , a random machine X , a fixed plug-in value x , and the event X ≤ x . Snap them together.
Definition Cumulative distribution function
The cumulative distribution function of a random variable X is the function
F X ( x ) = P ( X ≤ x ) .
In words: F X ( x ) is the probability that the random machine X lands at or below the fixed value x . Its input x is any real number; its output is a probability, so it always lies in [ 0 , 1 ] .
Why P ( X ≤ x ) and not P ( X = x ) or P ( X < x ) ? We want a running total , not a single spot. Using ≤ (the "or equal" bar) means "everything up to and including x ." That choice is exactly what makes the CDF right-continuous (section 9) and what makes a die's CDF jump at each face value. Every subtlety in the parent note traces back to this one bar.
Definition Discrete random variable
X is discrete if it can only land on separated, countable values — like 1 , 2 , 3 , 4 , 5 , 6 on a die. There are gaps between allowed values.
Definition Continuous random variable
X is continuous if it can land anywhere in a range , with no gaps — like the exact distance a bullet travels, which could be 50.0 or 50.0001 metres.
The picture. Discrete = a row of separate poles you can stand on. Continuous = a smooth ramp you can stand anywhere on.
Intuition A third case exists: mixed distributions
The two flavours above are the ones the parent note uses, but they are not the whole world. A mixed random variable does both at once — smooth in some stretches, with a probability lump stuck at one or more single points. Example: rainfall on a given day is exactly 0 with some positive chance (a lump, like a discrete value) but any positive amount is spread continuously. Its CDF is a ramp with a sudden vertical jump where the lump sits. (There are even stranger "singular" cases, but you will not need them here.) The key takeaway: the CDF definition F X ( x ) = P ( X ≤ x ) works for all of these — discrete, continuous, and mixed — which is exactly why the CDF is the universal tool.
Common mistake "So a continuous CDF is a smooth curve and a discrete one is a curve too?"
No. A discrete CDF is a staircase (flat, then jump, then flat). A continuous CDF is a smooth ramp . A mixed one is a ramp with a jump. Same idea (running total), different shape — because probability arrives in lumps , continuously , or both.
Definition Probability mass function
For a discrete X , the PMF p X ( x ) = P ( X = x ) is the probability that X equals exactly the value x . Each allowed value carries a "lump" of probability, and all lumps add to 1 .
The picture. A row of vertical sticks, one per allowed value; the height of each stick is its probability. For a fair die every stick has height 6 1 .
Why the topic needs it. The discrete CDF is literally the running sum of these lumps: F X ( x ) = ∑ x i ≤ x p X ( x i ) . Section 7 explains that ∑ symbol.
x i ≤ x ∑ p X ( x i ) is an instruction: "go through every allowed value x i that is ≤ x , and add up its probability." The big Greek Σ (sigma) just means "sum."
Worked read-aloud (fair die, F X ( 3.7 ) ). The values ≤ 3.7 are 1 , 2 , 3 . So the sum is
x i ≤ 3.7 ∑ p X ( x i ) = x i = 1 6 1 + x i = 2 6 1 + x i = 3 6 1 = 6 3 = 0.5.
That is exactly the parent note's staircase example — now every symbol in it is earned.
Definition Probability density function
For a continuous X , the PDF f X ( x ) is not a probability — it is a density , a "how-much-probability-per-unit-length" at the point x . Probability only appears when you take an area under this curve.
Intuition Why density and not probability?
A continuous X can hit infinitely many values, so any single exact value has probability 0 (you'll never hit exactly 50.00000 … ). Instead we ask "how thickly is probability packed near x ?" That thickness is the density. This is why the parent warns a PDF can be greater than 1 — density is not a probability.
The picture. A smooth curve. The shaded area under it between two points is the probability of landing in that stretch. Total area under the whole curve = 1 .
See Probability Distributions for the zoo of PMFs and PDFs.
∫ − ∞ x f X ( t ) d t is the continuous cousin of ∑ . Where ∑ adds up separate lumps, ∫ adds up the area of infinitely many infinitely-thin slices under the PDF curve, from the far left (− ∞ ) up to x .
∑ becomes ∫
Slice the area under a curve into thin rectangles of width d t and height f X ( t ) . Each rectangle's area is f X ( t ) d t — a tiny lump of probability. Add them all (∫ ) and you get the total area. That is why the discrete formula (sum of lumps) and the continuous formula (integral) are the same idea in two costumes.
− ∞ (negative infinity ) means "start from the far, far left, before any value is possible."
t is a dummy variable — a placeholder we slide from − ∞ up to x . We use t (not x ) so the moving slider isn't confused with the fixed endpoint x .
A limit is the value a quantity approaches as its input heads somewhere. The two edge limits of every CDF are:
lim x → − ∞ F X ( x ) = 0 and lim x → ∞ F X ( x ) = 1.
The first reads "as x marches off to the left forever, the running total settles to 0 "; the second, "as x marches off to the right forever, it settles to 1 ."
The picture. Walk the marker rightward. You have now passed every possible outcome, so you have swept up all the probability — the tally reads 1 . Walk it leftward past everything, and you've passed no outcomes — the tally reads 0 . Both edges matter: a CDF must start at 0 on the far left and finish at 1 on the far right.
Definition The superscript
+ and right-continuity
In h → 0 + lim , the small plus on the 0 means "let h shrink to 0 from the positive side only " — h stays a tiny positive number (0.1 , then 0.01 , then 0.001 , …) and never goes negative. So x + h approaches x from the right (from slightly bigger values).
lim h → 0 + F X ( x + h ) = F X ( x )
means: sneaking up on a point from its right side lands you exactly on the CDF's value at that point. In a staircase this is why each step includes its right edge — a direct consequence of the ≤ from section 4.
Definition Inverse / quantile function
F X − 1 ( p ) answers the reversed question. The CDF takes a value x and returns a probability p ; the inverse takes a probability p and returns a value x . The little "− 1 " means "undo" , not "one over".
Because a CDF can be flat (a stretch where it doesn't rise) or jump , there can be many x — or seemingly none — hitting a given height p exactly. The robust definition that always works is
F X − 1 ( p ) = inf { x : F X ( x ) ≥ p } ,
read as "the smallest value x whose running total has reached at least p ." Here inf (infimum ) just means "the leftmost such x ." When the CDF is a clean rising ramp with no flats or jumps, this reduces to the simple "read across, drop down" you'd expect.
The picture. On the CDF graph: pick a height p on the vertical axis, slide right until you first touch the curve, then drop straight down to the horizontal axis — that landing point is F X − 1 ( p ) . The "first touch" is what the inf guarantees when the curve is flat or jumps.
F X − 1 ( 0.5 ) = the median (half the probability below it).
F X − 1 ( 0.95 ) = the 95th percentile.
This feeds Quantile Functions and Inverse Transform Sampling .
Event a yes or no question
Probability P a number in 0 to 1
The relation X less-or-equal x
Limits 0 at left 1 at right
Inverse CDF quantiles via inf
Downstream, the CDF powers Empirical Distribution , the Kolmogorov-Smirnov Test , Copulas , Survival Analysis , and Expected Value and Variance .
Test yourself — cover the right side and answer out loud.
I can say what an "event" is A yes/no question about a chance experiment — a collection of outcomes we can ask "did it happen?"
I can say in one sentence what P ( event ) means and its range A number in [ 0 , 1 ] measuring how likely an event is; 0 impossible, 1 certain.
I can tell big X from little x Big X is the random machine; little x is a fixed number you plug in.
I can read the event X ≤ x aloud The random outcome X landed at or below the fixed value x .
I can state the CDF definition F X ( x ) = P ( X ≤ x ) — the probability that X lands at or below x ; output always in [ 0 , 1 ] .
I know the difference between discrete, continuous, and mixed X Discrete lands on separated countable values; continuous lands anywhere in a range; mixed does both, giving a ramp with jumps.
I know what a PMF p X ( x ) gives The probability that X equals exactly x — a lump; all lumps sum to 1 .
I know why a PDF f X ( x ) is not a probability It is a density; probability only appears as area under it, so it can exceed 1 .
I can explain why ∑ and ∫ are the same idea Both accumulate probability — ∑ adds discrete lumps, ∫ adds smooth area slices.
I know both edge limits of a CDF and why lim x → − ∞ F X ( x ) = 0 (passed nothing) and lim x → ∞ F X ( x ) = 1 (passed everything).
I know what the + in h → 0 + means Let h shrink to 0 from the positive side only, so we approach from the right — this is right-continuity.
I can give the robust definition of F X − 1 ( p ) inf { x : F X ( x ) ≥ p } , the smallest x whose running total reaches at least p — needed at flats and jumps.
I know what F X − 1 ( 0.5 ) is The median — the value with half the probability below it.